summaryrefslogtreecommitdiffstats
path: root/plugins/ommongodb/ommongodb.c
Commit message (Collapse)AuthorAgeFilesLines
* refactor tpl processor so that date is queried once per templateRainer Gerhards2012-10-101-5/+5
| | | | Things like $YEAR, $MONTH required a time() call each.
* Handle JSON value "null" instead of crashingMiloslav Trmač2012-09-241-1/+3
| | | | | | | Future json-c versions will handle this transparently, for now we have to do it manually. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
* new ruleengine: implement template type "subtree"Rainer Gerhards2012-09-181-5/+5
|
* adapted Mirek's changes to new JSON passing modeRainer Gerhards2012-08-291-45/+24
| | | | | now the complete code (JSON passing & ommongodb) could be tested and passed the module tests made during development
* Add template support: parse text, convert to BSONMiloslav Trmač2012-08-291-6/+173
| | | | | | | | | | | | | | | | | | | | | Uses a json-c library (http://oss.metaparadigm.com/json-c/). With this, a template > $template MongoTemplate,"{%hostname:::jsonf:sys%, %$!all-json:2:$:%" and action > & action(type="ommongodb" db="ceelog" collection="local" template="MongoTemplate") will store a record created by > logger -d -u p/dev/log -p mail.info -t mymailer '@cee: {"false": false, "null": null, "true": true, "object": {"a":"a", "b":"b"}, "array": [1, 2, 3], "number1": 3, "number2": 3.14, "string": "String"}' as > { "_id" : ObjectId("5037bbfc97dd811374ce5a00"), "sys" : "kulicka", "false" : "false", "null" : "-", "true" : "true", "object.a" : "a", "object.b" : "b", "array.*" : "3", "number1" : "3", "number2" : "3.140000", "string" : "String" } which is not great, but fair enough given the current design of libee (the information loss manifests by the time of template processing, ommongodb can't fix it). Signed-off-by: Miloslav Trmač <mitr@redhat.com>
* Split MongoDB output into BSON creation and MongoDB interactionMiloslav Trmač2012-08-291-24/+27
| | | | | | This will allow us to add template processing more cleanly. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
* Remove a no-effect ", NULL";Miloslav Trmač2012-08-261-1/+1
| | | | | | It does nothing, at is just confusing. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
* Silence compiler warnings about unused parameters.Miloslav Trmač2012-08-261-0/+3
| | | | Signed-off-by: Miloslav Trmač <mitr@redhat.com>
* ommongodb: extended default schemaRainer Gerhards2012-03-301-6/+28
| | | | includes more syslog-specific fields
* ommongodb: now writes a real timestamp into mongoRainer Gerhards2012-03-301-3/+26
|
* ommongodb: working on error reportingRainer Gerhards2012-03-201-5/+10
|
* ommongodb: basic error reportingRainer Gerhards2012-03-201-3/+21
|
* ommongodb: support for lumberjack base schemaRainer Gerhards2012-03-191-16/+39
| | | | ... as far as I currently see the mapping ;)
* ommongodb: moved over to MSG based interfaceRainer Gerhards2012-03-191-20/+45
| | | | | | | Access to the message permits us to do "the right thing" when it comes to populating the lumberjack schema. Support for custom templates will be added as soon as the template system is ready to properly support name/value passing.
* ommongodb: cleanupRainer Gerhards2012-03-181-47/+5
|
* ommongodb: moved field set a bit towards CEEBrian Knox2012-03-181-5/+6
|
* ommongodb: honor db and collection config parametersRainer Gerhards2012-03-171-17/+28
|
* ommongodb: support for v6 config system addedRainer Gerhards2012-03-161-34/+120
|
* ommongodb: milestone:refactored to use libmongo-clientRainer Gerhards2012-03-121-76/+51
| | | | which is waaaaaaay better than the 10gen client driver
* ommongodb: made ommongodb compile on current rsyslog versionRainer Gerhards2012-03-071-24/+3
|
* ommongodb: adding ASL 2.0 license headerRainer Gerhards2012-03-071-0/+21
| | | | | after clarifying and receiving permission to do so with original contributor Victor Pereira (email exchange on 2011-02-22)
* milestone: added module config namesRainer Gerhards2011-07-201-1/+2
|
* renaming conf.* wasn't a good idea -- undoingRainer Gerhards2011-04-191-2/+2
| | | | | too many dependencies, things get cluttered (and merging probably gets problematic). Now new config will be "conf2".
* renamed conf.c to legacyconf.c to make room for new config systemRainer Gerhards2011-04-191-2/+2
|
* experimental support for monogodb addedVictor Pereira2011-01-311-0/+280
Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>