[SERVER-6706] Syslog adds extra timestamp, sends to incorrect loglevel, should add process PID and log to console in case of errors in sending Created: 03/Aug/12  Updated: 11/Jul/16  Resolved: 11/Jul/13

Status: Closed
Project: Core Server
Component/s: Logging
Affects Version/s: 2.2.0-rc0
Fix Version/s: 2.5.1

Type: Bug Priority: Major - P3
Reporter: Akshay Kumar Assignee: Andy Schwerin
Resolution: Done Votes: 3
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Related
Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:

 Description   

Starting mongod with --syslog generates the following.

Aug 3 13:14:55 grapevine mongod.27017: Fri Aug 3 13:14:55 [initandlisten] recover : no journal files present, no recovery needed
Aug 3 13:14:55 grapevine mongod.27017: Fri Aug 3 13:14:55 [initandlisten] waiting for connections on port 27017
Aug 3 13:14:55 grapevine mongod.27017: Fri Aug 3 13:14:55 [websvr] admin web console waiting for connections on port 28017

  • prepending timestamp should be disabled if mongod is started with --syslog
  • LL_SEVERE should probably map to LOG_EMERG instead of LOG_CRIT ..???
  • should log process PID and should log to console if logging to syslogd fails


 Comments   
Comment by Andy Schwerin [ 11/Jul/13 ]

Resolved by SERVER-10084.

Comment by auto [ 04/Aug/12 ]

Author:

{u'date': u'2012-08-03T17:39:24-07:00', u'email': u'eliot@10gen.com', u'name': u'Eliot Horowitz'}

Message: revert part of change for SERVER-6706 - we can't change log format
Branch: master
https://github.com/mongodb/mongo/commit/c61c32ffb95a1dbac6afd1539ebab12b9472eee0

Comment by auto [ 03/Aug/12 ]

Author:

{u'date': u'2012-08-03T13:47:17-07:00', u'email': u'akshay@10gen.com', u'name': u'Akshay Kumar'}

Message: Fix syslog for SERVER-6706
Branch: master
https://github.com/mongodb/mongo/commit/2069338cce46347116a94004d88861a14ecf3211

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