Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
mongod db backend to rsyslogd
C Groff Makefile Shell C++
Branch: master
Failed to load latest commit information.
.deps
autom4te.cache first release
contrib first release
doc
freebsd
java
m4
nbproject
plugins
runtime
slackware
tests
tools
AUTHORS
COPYING
COPYING.LESSER
ChangeLog first release
INSTALL
Makefile
Makefile-rsyslog-5.6.2.mk
Makefile.am first release
Makefile.in
NEWS
README.md
README.orig first release
aclocal.m4
action.c
action.h
compile first release
config.guess
config.h
config.h.in first release
config.log first release
config.status
config.sub
configure
configure.ac
depcomp
dirty.h
gss-misc.c
gss-misc.h
install-sh
libtool
ltmain.sh
missing
outchannel.c
outchannel.h
parse.c
parse.h
rsyslog.conf
stamp-h1
tcpclt.c
tcpclt.h
tcps_sess.c
tcps_sess.h
tcpsrv.c
tcpsrv.h first release
template.c
template.h
threads.c
threads.h

README.md

plugin to use MongoDB as backend.

Status: unmaintained: code was already pushed upstream.

tested in ubuntu 10.04 and ubuntu 10.10

configuration:

in your /etc/rsyslog.conf, together with other modules: $ModLoad ommongodb # provides mongodb support

then in your /etc/rsyslog.d (check your distribution way to organize the configuration..) you create a file 10-mongodb.conf with the following content:

the format for the driver is :ommongodb:ip:db:collection;StdMongoDBFmt

if you want to change what is logged in the db, the template, you must change the source code since the keys are hardcoded

$template StdMongoDBFmt,"%msg%%syslogfacility%%HOSTNAME%%syslogpriority%" . :ommongodb:127.0.0.1,syslog,logs;StdMongoDBFmt

TODO we must ensure that the collection is a capped collection refactor my code :-)

email Victor Pereira victor.pereira@bigrails.com twitter twitter.com/vpereira

Something went wrong with that request. Please try again.