Package: rsyslog-mongodb
Version: 7.4.4-1~bpo70+1

If I try the configuration samples from README.Debian, it just logs an
error to /var/log/syslog


rsyslogd-2207: error during parsing file /etc/rsyslog.conf, on or before
line 124: parameter 'template' required but not specified - fix config
[try http://www.rsyslog.com/e/2207 ]


The provided URL is not helpful

Manually declaring a template and action like this seems to generate
entries to mongodb:

# Load the module
$ModLoad ommongodb

# declare a template called BSON:
template(name="BSON" type="string" string="\"sys\" : \"%hostname%\",
\"time\" : \"%timereported:::rfc3339%\", \"time_rcvd\" :
\"%timegenerated:::rfc3339%\", \"msg\" : \"%msg%\", \"syslog_fac\" :
\"%syslogfacility%\", \"syslog_sever\" : \"%syslogseverity%\",
\"syslog_tag\" : \"%syslogtag%\", \"procid\" : \"%programname%\",
\"pid\" : \"%procid%\", \"level\" : \"%syslogpriority-text%\"")

# declare an action using the BSON template:
*.*    action(type="ommongodb" server="127.0.0.1" db="logs"
collection="syslog" template="BSON")


Now I can see entries in mongodb:

$ mongo
MongoDB shell version: 2.0.6
connecting to: test
> use logs
switched to db logs
> db.syslog.find()


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to