[SERVER-12168] FreeBSD syslog logging does not work Created: 19/Dec/13  Updated: 25/Jun/15  Resolved: 23/Jan/15

Status: Closed
Project: Core Server
Component/s: Logging
Affects Version/s: 2.4.8, 2.6.1
Fix Version/s: None

Type: Question Priority: Minor - P4
Reporter: bsduser Assignee: Unassigned
Resolution: Incomplete Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

FreeBSD 9.2 (amd64)
Mongodb 2.4.8 (from ports) with repliset, auth


Participants:

 Description   

Flag --syslog don't work with mongodb.

  1. mongod --syslog --config /usr/local/etc/mongodb.conf
    using syslog ident: mongod.50004

And nothing is write to /var/log/messages

More info in on FreeBSD forum :

http://forums.freebsd.org/viewtopic.php?f=5&t=43667



 Comments   
Comment by Ramon Fernandez Marina [ 20/Jun/14 ]

The default syslog facility in 2.6.1 is user; have you checked that your /etc/syslog.conf is sending messages on this facility to /var/log/messages?

As pointed above, this can be changed with the --syslogFacility flag when starting mongod. Can you please try a facility that will send messages to /var/log/messages, or adjust your /etc/syslog.conf accordingly and let us know if that addresses your needs?

Comment by Simon Ratner [ 14/Jun/14 ]

Similar situation with v2.6.1; got it to work by specifying "--syslogFacility local0" and adding a rule for local0.* to /etc/syslog.conf.

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