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

Syslog appender should summarize long log messages

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 2.6.4
    • Component/s: Diagnostics, Logging
    • None
    • Environment:
      *nix

      When logging messages to a file, MongoDB summarizes long log messages rather than truncating because the end of the message often contains valuable information, such as query execution time.

      MongoDB should do the same when writing to syslog but use a maximum line length appropriate for syslog.


      (Original description)

      When a long line is logged, it is truncated to ensure that the logs don't bloat.

      However syslog also truncates long lines and has a lower max length (1024 I believe). As a result the ms duration is missing.

      This line in in 2.6 should either be configurable or should be syslog aware.

            Assignee:
            backlog-server-platform DO NOT USE - Backlog - Platform Team
            Reporter:
            jim.oleary@mongodb.com James O'Leary
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: