Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mloginfo: Improve --clients such that it includes more info for each Driver x Version x Application that has connected. #850

Closed
akung0324 opened this issue Mar 13, 2022 · 0 comments
Milestone

Comments

@akung0324
Copy link
Contributor

akung0324 commented Mar 13, 2022

Expected behavior

For each Driver Name and Driver Version (2-tuple) or Driver Name and Driver Version and Application Name (3-tuple) that connects list not only the IPs that have connected but also the database users that have authenticated. Also include the number of connections and authentications where relevant.

The Application Name is optional in the client data which is logged which is why the information provided will sometimes just be for the Driver Name and Driver Version (2-tuple).

Example Output (New Behavior)

Driver: PyMongo | Version: 3.8.0

  • DB Users (2): adv-monitoring@admin (1 auths), monitoring@admin (15 auths)
  • IPs (5): 127.0.0.1 (27 conns), 10.118.120.0 (16 conns), 10.118.67.176 (9 conns), 10.118.63.36 (9 conns), 10.118.25.211 (9 conns)

Driver: mongo-go-driver | Version: v1.3.4 | App: MongoDB Backup Module v11.5.1.7087

  • DB Users (1): backups@admin (1 auths)
  • IPs (1): 10.118.120.0 (1 conns)

Actual/current behavior

Currently the --clients option outputs the list of IP addresses that has connected for each Driver Name and Driver Version (2-tuple). It does not provide any information about the application names connecting (if provided) or the database users that have authenticated.

Example Output (Existing Behavior)

Driver:Version - Unique connections
PyMongo:3.8.0 : ['10.118.67.176', '10.118.120.0', '10.118.63.36', '10.118.25.211']
mongo-go-driver:v1.3.4 : ['10.118.120.0']

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants