Package: rsyslog-mongodb
Version: 8.23.0-2~bpo8+1
On Jessie after upgrade rsyslog to backported version mongodb logging
doesn't work
No error reported while starting but mongo db is empty.
If I proceed by the README.Debian no db "syslog" is created, no
collection "log" created.
If define DB, collection and template like "action(type="ommongodb"
collection="testlog" template="tpl1" server="127.0.0.1") then only
ObjectId field created - no any next fieds like msg etc stored.
{ "_id" : ObjectId("58431c0e29676654ec0686e8") }
{ "_id" : ObjectId("58431c0e29676654ec0686e9") }
{ "_id" : ObjectId("58431c0e29676654ec0686ea") }
{ "_id" : ObjectId("58431c0e29676654ec0686eb") }
{ "_id" : ObjectId("58431c0e29676654ec0686ec") }
{ "_id" : ObjectId("58431c0e29676654ec0686ed") }
{ "_id" : ObjectId("58431c0e29676654ec0686ee") }
my rsyslog-mongodb.conf:
module (load="ommongodb")
template(name="tpl1" type="list") {
constant(value="Syslog MSG is: '")
property(name="msg")
constant(value="', ")
property(name="timereported" dateFormat="rfc3339"
caseConversion="lower")
constant(value="\n")
}
*.* action(type="ommongodb" collection="testik" template="tpl1"
server="127.0.0.1")
i try change my template to
template(name="tpl1" type="list" option.json="on"){
property(name="hostname" outname="sys")
property(name="timereported" dateformat="rfc3339" outname="time")
property(name="timegenerated" dateformat="rfc3339" outname="time_rcv")
property(name="msg" outname="msg")
property(name="syslogfacility" outname="syslog_fac")
property(name="syslogseverity" outname="syslog_sever")
property(name="syslogtag" outname="syslog_tag")
property(name="programname" outname="procid")
property(name="procid" outname="pid")
property(name="syslogpriority-text" outname="level")
}
but same problem.
after downgrade to stable package no problem and everything is stored
without problem
--
S pozdravem
Zdenek Herman
tel: +420 777 730 218
email: zde...@hermi.cz