[rsyslog-notify] Forum Thread: Re: mongodb problems, no entries in mongodb - (Mode 'reply')
noreply at adiscon.com
noreply at adiscon.com
Fri Mar 13 01:10:29 CET 2015
User: dlang
Forumlink: http://kb.monitorware.com/viewtopic.php?p=25320#p25320
Message:
----------
you are suffering from having the config split amoung multiple files.
you have two different files that each try to listen on port 514 TCP, and
I'm guessing that the one that's winning is not the mongodb one
try doing away with the mongodb.conf and add the following lines to your
main config
module(load="ommongodb") # needs to be done just once
template(name="mongodball" type="subtree" subtree="$!")
module(load="mmjsonparse")
action(type="mmjsonparse")
if $parsesuccess == "OK" then {
set $!time = $timestamp;
set $!sys = $hostname;
set $!procid = $syslogtag;
set $!syslog_fac = $syslogfacility;
set $!syslogsever = $syslogpriority;
set $!pid = $procid;
action(type="ommongodb" server="127.0.0.1"
db="syslog"collection="systemevents" uid="rsyslog" pwd="rsyslog"
template="mongodball")
}
It would aso be handy to setup the impstats module so you can see how many
messages are handled by each item in your config.
More information about the rsyslog-notify
mailing list