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

Transform Resmoke's prefixes into JSON attributes

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Execution
    • Fully Compatible
    • QE 2025-02-03, QE 2025-02-17
    • 5
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      As of now, Resmoke prefixes the structured log output of mongod / mongos processes with some process information. E.g.:

      [j3:s1:prim] ...
      
      [js_test:change_streams_split_event_v1_v2_tokens] d20293| ...
      

      When Resmoke is run with --logFormat=json (see SERVER-97956), this information should be added to the server process structured log lines under "attr", e.g.,

      {..., "attr": {..., "pInfo": {"j": 3, "s": 2, port: 20752}}}..
      

      The example above adds an additional JSON attribute "pInfo" (short for "process information"). Possible alternative: resmokeInfo, etc. Adding this information to "attr" is in-line with JSON log output format and should minimize the differences between analyzing Resmoke and plain server logs.

            Assignee:
            serhii.lysenko@mongodb.com Serhii Lysenko
            Reporter:
            romans.kasperovics@mongodb.com Romans Kasperovics
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              None
              None
              None
              None