mongod db backend to rsyslogd
C Groff Makefile Shell C++
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.deps
autom4te.cache
contrib
doc
freebsd
java
m4
nbproject first release Jan 5, 2011
plugins
runtime first release Jan 5, 2011
slackware first release Jan 5, 2011
tests first release Jan 5, 2011
tools first release Jan 5, 2011
AUTHORS
COPYING
COPYING.LESSER first release Jan 5, 2011
ChangeLog
INSTALL
Makefile
Makefile-rsyslog-5.6.2.mk
Makefile.am
Makefile.in
NEWS first release Jan 5, 2011
README.md Update and rename README to README.md Jul 18, 2015
README.orig
aclocal.m4
action.c
action.h
compile
config.guess first release Jan 5, 2011
config.h first release Jan 5, 2011
config.h.in first release Jan 5, 2011
config.log first release Jan 5, 2011
config.status first release Jan 5, 2011
config.sub first release Jan 5, 2011
configure
configure.ac
depcomp
dirty.h first release Jan 5, 2011
gss-misc.c
gss-misc.h
install-sh
libtool
ltmain.sh first release Jan 5, 2011
missing
outchannel.c first release Jan 5, 2011
outchannel.h first release Jan 5, 2011
parse.c
parse.h
rsyslog.conf first release Jan 5, 2011
stamp-h1 first release Jan 5, 2011
tcpclt.c
tcpclt.h
tcps_sess.c
tcps_sess.h
tcpsrv.c
tcpsrv.h first release Jan 5, 2011
template.c first release Jan 5, 2011
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