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

Restore the log timestamp format default to "local"

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.2.0-rc0
    • Affects Version/s: 8.1.0-rc1
    • Component/s: None
    • None
    • Networking & Observability
    • Fully Compatible
    • 🟢 On Track
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      In <https://jira.mongodb.org/browse/SERVER-101470>, I made the log timestamp format consistent between pre-server-configuration log messages and post-server-configuration log messages by setting both formats to "UTC".

      This was a departure from the status quo at the time, which had the post-server-configuration default set to "local".

      The change of default log timestamp format is potentially problematic for multiple reasons:

      • Python <3.11 programs that parse timestamps using `datetime.datetime.fromisoformat` do not tolerate the trailing "Z" of the UTC format.
      • Log ingestion tools, such as Filebeat, use regular expressions to extract portions of (admittedly JSON based) log messages.

      Other issues might manifest as the format change makes its way into more software.

      For these reasons, I'm going to change the post-server-configuration default log timestamp format back to "local".

            Assignee:
            david.goffredo@mongodb.com David Goffredo
            Reporter:
            david.goffredo@mongodb.com David Goffredo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: