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

Syslog appender should summarize long log messages

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Gone away
    • Affects Version/s: 2.6.4
    • Fix Version/s: None
    • Component/s: Diagnostics, Logging
    • Labels:
      None
    • Environment:
      *nix

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: