Module Name: ommongodb
Author: Rainer Gerhards <rgerhards@adiscon.com>
Description:
This module provides native support for logging to MongoDB.
Action Parameters:
Note rsyslog contains a canned default template to write to the MongoDB. It will be used automatically if no other template is specified to be used. This template is:
This creates the BSON document needed for MongoDB if no template is specified. The default schema is aligned to CEE and project lumberjack. As such, the field names are standard lumberjack field names, and not rsyslog property names. When specifying templates, be sure to use rsyslog property names as given in the table. If you would like to use lumberjack-based field names inside MongoDB (which probably is useful depending on the use case), you need to select fields names based on the lumberjack schema. If you just want to use a subset of the fields, but with lumberjack names, you can look up the mapping in the default template. For example, the lumberjack field "level" contains the rsyslog property "syslogpriority-text".
Sample:
The following sample writes all syslog messages to the database "syslog" and into the collection "log" on mongosever.example.com. The server is being accessed under the account of "user" with password "pwd".
[rsyslog.conf overview] [manual index] [rsyslog site]
This documentation is part of the
rsyslog project.
Copyright © 2008-2012 by Rainer Gerhards and
Adiscon.
Released under the ASL 2.0.