[SERVER-18240] Support copy and paste of queries from mongod log into mongo shell Created: 28/Apr/15  Updated: 06/Dec/22

Status: Backlog
Project: Core Server
Component/s: Internal Code, Logging
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Major - P3
Reporter: Eoin Brazil Assignee: Backlog - Security Team
Resolution: Unresolved Votes: 1
Labels: move-sec
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-21610 Field names should be quoted in logs Closed
Assigned Teams:
Server Security
Sprint: Platform B (10/30/15)
Participants:
Case:

 Description   

I want to be able to retrospectively analyse the slow queries in my mongod log file. The current logging format for MongoDB is not conducive to doing do since slow queries output in the log cannot always be copied and pasted verbatim into the mongo shell. For example:

  • nested field names are not quoted in the log, and this causes a parsing issue when pasting the output verbatim from the log output into a Mongo Shell.
  • queries including binary data are stringified as "BinData...." whereas the query must be entered with "HexData..." in the shell

Generated at Thu Feb 08 03:47:03 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.