Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-80676

(SA) Extend the logging system to tag logs with their corresponding service name

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.2.0-rc0
    • 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":{...}} 

            Assignee:
            james.bronsted@mongodb.com James Bronsted
            Reporter:
            antonio.fuschetto@mongodb.com Antonio Fuschetto
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: