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

syslog should include facility information in addition to level as part of the priority argument

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 2.2.0
    • Fix Version/s: 2.5.3
    • Component/s: Logging
    • Labels:
      None
    • Environment:
      RHEL 6
    • Backwards Compatibility:
      Fully Compatible

      Description

      Currently syslog provides severity level information (according to SERVER-7450), e.g. LOG_CRIT, LOG_INFO etc. It should also provide facility information, e.g. LOG_LOCAL0 to 7 so that filtering of syslog messages to a remote server can be performed much easier.

        Issue Links

          Activity

          Hide
          schwerin Andy Schwerin added a comment -

          Matt Dannenberg, this is pretty straight-forward. Shaun Verch can show you where logging is initialized in the servers. What you need to do is change the openlog() call the ServerLogRedirection initializer. You'll also need to add a command-line option or a setParameter to let the user choose one of

          { "user", "local0", "local1", ..., "local7" }

          . Talk w/ Shaun and Eric Milkie about how to name the command line option and how to set it up.

          Show
          schwerin Andy Schwerin added a comment - Matt Dannenberg , this is pretty straight-forward. Shaun Verch can show you where logging is initialized in the servers. What you need to do is change the openlog() call the ServerLogRedirection initializer. You'll also need to add a command-line option or a setParameter to let the user choose one of { "user", "local0", "local1", ..., "local7" } . Talk w/ Shaun and Eric Milkie about how to name the command line option and how to set it up.
          Hide
          auto auto (Inactive) added a comment -

          Author:

          {u'username': u'dannenberg', u'name': u'matt dannenberg', u'email': u'matt.dannenberg@10gen.com'}

          Message: SERVER-7454 add syslogFacility flag to specify syslog facility
          Branch: master
          https://github.com/mongodb/mongo/commit/0ffa31cb9e1fdd281710aa872cac27c5ef8e3145

          Show
          auto auto (Inactive) added a comment - Author: {u'username': u'dannenberg', u'name': u'matt dannenberg', u'email': u'matt.dannenberg@10gen.com'} Message: SERVER-7454 add syslogFacility flag to specify syslog facility Branch: master https://github.com/mongodb/mongo/commit/0ffa31cb9e1fdd281710aa872cac27c5ef8e3145
          Hide
          auto auto (Inactive) added a comment -

          Author:

          {u'username': u'dannenberg', u'name': u'matt dannenberg', u'email': u'matt.dannenberg@10gen.com'}

          Message: SERVER-7454 skip syslogFacility parsing on windows
          Branch: master
          https://github.com/mongodb/mongo/commit/d538a7729829a5cd24b6ec8bb8ffdae22d616a0f

          Show
          auto auto (Inactive) added a comment - Author: {u'username': u'dannenberg', u'name': u'matt dannenberg', u'email': u'matt.dannenberg@10gen.com'} Message: SERVER-7454 skip syslogFacility parsing on windows Branch: master https://github.com/mongodb/mongo/commit/d538a7729829a5cd24b6ec8bb8ffdae22d616a0f

            People

            • Votes:
              8 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since reply:
                1 year, 27 weeks ago
                Date of 1st Reply: