Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
mongod db backend to rsyslogd
C Shell
branch: master

first release

latest commit 70908198aa
Victor Pereira authored
Failed to load latest commit information.
.deps first release
autom4te.cache
contrib
doc first release
freebsd first release
java first release
m4
nbproject first release
plugins first release
runtime first release
slackware first release
tests first release
tools first release
AUTHORS first release
COPYING first release
COPYING.LESSER
ChangeLog first release
INSTALL first release
Makefile first release
Makefile-rsyslog-5.6.2.mk first release
Makefile.am first release
Makefile.in
NEWS first release
README first release
README.orig first release
aclocal.m4 first release
action.c first release
action.h first release
compile first release
config.guess
config.h first release
config.h.in first release
config.log first release
config.status first release
config.sub first release
configure first release
configure.ac first release
depcomp first release
dirty.h first release
gss-misc.c first release
gss-misc.h first release
install-sh
libtool first release
ltmain.sh first release
missing
outchannel.c first release
outchannel.h first release
parse.c first release
parse.h
rsyslog.conf first release
stamp-h1 first release
tcpclt.c first release
tcpclt.h first release
tcps_sess.c first release
tcps_sess.h first release
tcpsrv.c first release
tcpsrv.h first release
template.c first release
template.h first release
threads.c first release
threads.h first release

README

plugin to use MongoDB as backend.

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.