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

Add log file rotation status to start of new log

    • Fully Compatible
    • Security 2022-09-05, Security 2022-09-19, Security 2022-10-03
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      After a log file rotates, the new running log outputs some basic server status at the start, e.g. featureCompatibilityVersion, Build Info, Operating System, PID, etc.

      We should add the log rotation status of the previously-rotated log to this collection of "header" data in the new log file, so that any issues with rotating the previous log do not depend on access to the rotated log file. For example:

      1. Log rotation status (success / failure)
      2. Absolute path to rotated log file (example: target=/tmp/mongo-log-rotator-suite-267013706/mongo-log-rotator_audit.log.2022-01-19T17-50-55)
      3. Any minor error messages (more useful with recent improvements in log rotation error messages)

            Assignee:
            warren.james@mongodb.com Warren James
            Reporter:
            adam.rayner@mongodb.com Adam Rayner
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: