[SERVER-7454] syslog should include facility information in addition to level as part of the priority argument Created: 24/Oct/12  Updated: 05/Dec/23  Resolved: 11/Oct/13

Status: Closed
Project: Core Server
Component/s: Logging
Affects Version/s: 2.2.0
Fix Version/s: 2.5.3

Type: Improvement Priority: Major - P3
Reporter: Simon Harvey Assignee: Matt Dannenberg
Resolution: Done Votes: 8
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

RHEL 6


Issue Links:
Depends
Related
related to SERVER-11604 mongos --syslogFacility segfaults Closed
related to SERVER-5092 Better named logging with tracing Closed
is related to SERVER-7450 Syslog levels correspond incorrectly ... Closed
Backwards Compatibility: Fully Compatible
Participants:

 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.



 Comments   
Comment by auto [ 11/Oct/13 ]

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

Comment by auto [ 11/Oct/13 ]

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

Comment by Andy Schwerin [ 10/Oct/13 ]

mattd@10gen.com, this is pretty straight-forward. sverch 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 milkie about how to name the command line option and how to set it up.

Generated at Thu Feb 08 03:14:35 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.