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

Syslog appender should summarize long log messages

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Minor - P4
    • Resolution: Gone away
    • 2.6.4
    • None
    • Diagnostics, Logging
    • None
    • *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

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

              Dates

                Created:
                Updated:
                Resolved: