Skip to Main Content

MongoByte MongoDB Logo

Welcome to the new MongoDB Feedback Portal!

{Improvement: "Your idea"}
We’ve upgraded our system to better capture and act on your feedback.
Your feedback is meaningful and helps us build better products.

Status Submitted
Categories Enterprise Advanced
Created by Guest
Created on Nov 29, 2021

list who is connected to a cluster

Hello, On a sharded instance, I try to identify the connected physical people. It is not easy. I cannot identify my own connection. 😦 Can we have a command to find out who is connected to the platform (excluding host2host connections, backup process, ...)? The closest command but not complete and friendly : use config DBQuery.shellBatchSize = 300 db.system.sessions.aggregate( [ { $listSessions: { allUsers: true } }, { $project: { _id: 0, "user":"$user.name" } } , { $group : { _id: {"user": "$user" }, count: { $sum: 1 } } }, ]) Regards Jerome