summaryrefslogtreecommitdiffstats
path: root/plugins/ommongodb/README
diff options
context:
space:
mode:
authorVictor Pereira <victor.pereira@bigrails.com>2011-01-31 17:52:21 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2011-01-31 17:52:21 +0100
commitd2b7a55b04b24bff278953240754cc688a32f6b8 (patch)
tree5ff5ff8703130968045b09bcb5afc003f1cef944 /plugins/ommongodb/README
parent298c3fa835ed5ad241246fe90c6039fc7781625c (diff)
downloadrsyslog-d2b7a55b04b24bff278953240754cc688a32f6b8.tar.gz
rsyslog-d2b7a55b04b24bff278953240754cc688a32f6b8.tar.xz
rsyslog-d2b7a55b04b24bff278953240754cc688a32f6b8.zip
experimental support for monogodb added
Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>
Diffstat (limited to 'plugins/ommongodb/README')
-rw-r--r--plugins/ommongodb/README23
1 files changed, 23 insertions, 0 deletions
diff --git a/plugins/ommongodb/README b/plugins/ommongodb/README
new file mode 100644
index 00000000..cea3f3bc
--- /dev/null
+++ b/plugins/ommongodb/README
@@ -0,0 +1,23 @@
+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