[SERVER-78306] Add new log component to control logging of $queryStats output Created: 21/Jun/23  Updated: 14/Sep/23  Resolved: 07/Jul/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Major - P3
Reporter: Charlie Swanson Assignee: Backlog - Query Integration
Resolution: Duplicate Votes: 0
Labels: customer-security-and-privacy-considerations
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Duplicate
duplicates SERVER-78083 Add ability to log $queryStats output... Closed
Assigned Teams:
Query Integration
Participants:

 Description   

Three goals:

  • The output of $queryStats can also optionally be logged in mongod logs if configured. Atlas users should be able to configure this via Atlas UI. The invocations and output are not logged by default.
  • Server will relax the truncation for this log line, since responses can be large
  • The command returns a cursor, so we'll determine at design time how to log responses that are larger than 1 batch. (Charlie's thoughts: log each result one-by-one, each a separate log line)

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