Package: rsyslog Version: 7.4.4-1~bpo70+1 Severity: important Dear Maintainer,
See http://bugzilla.adiscon.com/show_bug.cgi?id=493, fields are written incorrectly to mongodb when using the ommongodb module. -- System Information: I use the following in the mongodb.conf in rsyslog.d load="ommongodb") #template(name="BSON" type="string" string="\"sys\" : \"%hostname:::json%\", \"time\" : \"%timereported:::date-rfc3339%\", \"time_rcvd\" : \"%timegenerated:::date-rfc3339%\", \"msg\" : \"%msg:::json%\", \"syslog_fac\" : \"%syslogfacility:::json%\", \"syslog_sever\" : \"%syslogseverity::json%\", \"syslog_tag\" : \"%syslogtag::json%\", \"procid\" : \"%programname:::json%\", \"pid\" : \"%procid:::json%\", \"level\" : \"%syslogpriority-text:::json%\"") template(name="BSON" type="list") { constant(value="{\"sys\" : \"") property(name="hostname") constant(value="\", \"time\" : \"") property(name="timereported") constant(value="'\", \"time_rcvd\" : \"") property(name="timegenerated") constant(value="\", \"msg\" : \"") property(name="msg") constant(value="\", \"syslog_fac\" : \"") property(name="syslogfacility") constant(value="\", \"syslog_sever\" : \"") property(name="syslogseverity") constant(value="\", \"syslog_tag\" : \"") property(name="syslogtag") constant(value="\", \"procid\" : \"") property(name="programname") constant(value="\", \"pid\" : \"") property(name="procid") constant(value="\", \"level\" : \"") property(name="syslogpriority-text") constant(value="\"\n}") } #*.* /tmp/anothertest;BSON *.* action(type="ommongodb" server="127.0.0.1" db="syslog" collection="log" uid="rsyslog" pwd="xxxxxx" template="BSON") Debian Release: 7.2 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 3.2.0-4-amd64 (SMP w/4 CPU cores) Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages rsyslog depends on: ii init-system-helpers 1.11~bpo70.1 ii initscripts 2.88dsf-41+deb7u1 ii libc6 2.13-38 ii libee0 0.4.1-1 ii libestr0 0.1.5-2~bpo70+1 ii libjson0 0.10-1.2 ii liblognorm0 0.3.4-1 ii libuuid1 2.20.1-5.3 ii lsb-base 4.1+Debian8+deb7u1 ii zlib1g 1:1.2.7.dfsg-13 Versions of packages rsyslog recommends: ii logrotate 3.8.1-4 Versions of packages rsyslog suggests: pn rsyslog-doc <none> ii rsyslog-gnutls 7.4.4-1~bpo70+1 pn rsyslog-gssapi <none> ii rsyslog-mongodb 7.4.4-1~bpo70+1 ii rsyslog-mysql 7.4.4-1~bpo70+1 pn rsyslog-relp <none> -- Configuration Files: /etc/rsyslog.conf changed: $ModLoad imuxsock # provides support for local system logging $ModLoad imklog # provides kernel logging support (previously done by rklogd) $ModLoad imudp $UDPServerAddress 192.168.100.1 $UDPServerRun 514 $ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat $FileOwner root $FileGroup adm $FileCreateMode 0640 $DirCreateMode 0755 $Umask 0022 $IncludeConfig /etc/rsyslog.d/*.conf auth,authpriv.* /var/log/auth.log *.*;auth,authpriv.none -/var/log/syslog daemon.* -/var/log/daemon.log kern.* -/var/log/kern.log lpr.* -/var/log/lpr.log mail.* -/var/log/mail.log user.* -/var/log/user.log mail.info -/var/log/mail.info mail.warn -/var/log/mail.warn mail.err /var/log/mail.err news.crit /var/log/news/news.crit news.err /var/log/news/news.err news.notice -/var/log/news/news.notice *.=debug;\ auth,authpriv.none;\ news.none;mail.none -/var/log/debug *.=info;*.=notice;*.=warn;\ auth,authpriv.none;\ cron,daemon.none;\ mail,news.none -/var/log/messages *.emerg :omusrmsg:* daemon.*;mail.*;\ news.err;\ *.=debug;*.=info;\ *.=notice;*.=warn |/dev/xconsole -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org