[SERVER-51489] Add client IP be added to slow query log lines in server logs Created: 12/Oct/20  Updated: 29/Oct/23  Resolved: 26/Nov/20

Status: Closed
Project: Core Server
Component/s: Diagnostics, Logging
Affects Version/s: None
Fix Version/s: 4.9.0

Type: Improvement Priority: Minor - P4
Reporter: Justin Costello Assignee: Amirsaman Memaripour
Resolution: Fixed Votes: 0
Labels: sa-groomed
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Documented
is documented by DOCS-14022 Investigate changes in SERVER-51489: ... Closed
Related
Backwards Compatibility: Fully Compatible
Sprint: Service arch 2020-11-30
Participants:

 Description   

Can client IP be added to the slow operation lines in the server logs? This could help in reducing log post processing for some customers who require both of these details.



 Comments   
Comment by Githook User [ 25/Nov/20 ]

Author:

{'name': 'Amirsaman Memaripour', 'email': 'amirsaman.memaripour@mongodb.com', 'username': 'samanca'}

Message: SERVER-51489 Add client IP to slow query log lines in server logs
Branch: master
https://github.com/mongodb/mongo/commit/0bd81777cbfab4c626782b1bd6d82e034ef23378

Comment by Bruce Lucas (Inactive) [ 16/Nov/20 ]

As I understand it the request is only for slow operation log lines, i.e. log id 51803.

Comment by Garaudy Etienne [ 16/Nov/20 ]

bruce.lucas what log lines would it be useful to know client IP? (we don't want to add it to every log line unless necessary)

Comment by Bruce Lucas (Inactive) [ 12/Oct/20 ]

It would be good if this were consistent with the way that we log client IPs in other contexts like NETWORK and ACCESS components. Not sure that those are consistent with each other, so we may want to fix that too - it's pretty useful to be able to query for all log lines that relate to a particular client IP.

Generated at Thu Feb 08 05:25:37 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.