-
Type:
Task
-
Resolution: Fixed
-
Priority:
Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Service Arch
-
Fully Compatible
-
Service Arch 2023-10-16, Service Arch 2023-10-30, Service Arch 2023-11-13
-
172
By embedding the router service into the MongoD binary, the process will combine logging information for both router and shard roles in the same file, i.e., mongod.log.
To discriminate log traces produced by routers and shards with the same content (e.g., Slow query), a new attribute should be added to the log traces to specify the role that produced it. For example:
{"t":{"$date":"2023-08-08T08:56:43.638+00:00"},"s":"I","c":"COMMAND", "id":51803,"service":"router","ctx":"conn6","msg":"Slow query","attr":{...}}
- is depended on by
-
SERVER-81358 (SA) Logging support for embedded router mode
-
- Closed
-
-
COMPASS-7463 Investigate changes in SERVER-80676: (SA) Extend the logging system to tag logs with their corresponding service name
-
- Closed
-
- related to
-
SERVER-82769 Add LogServices to threads that don't have a client
-
- Backlog
-