| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
This had no bad effect, because the macro did the same as the one
that should have been used.
|
|\ |
|
| |
| |
| |
| | |
closes (for v7.2): http://bugzilla.adiscon.com/show_bug.cgi?id=366
|
|/
|
|
| |
Things like $YEAR, $MONTH required a time() call each.
|
|
|
|
|
|
|
| |
Future json-c versions will handle this transparently, for now we have
to do it manually.
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
|
| |
|
|
|
|
|
| |
now the complete code (JSON passing & ommongodb) could be tested
and passed the module tests made during development
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
| |
This will allow us to add template processing more cleanly.
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
|
|
|
|
|
|
| |
It does nothing, at is just confusing.
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
|
|
|
|
| |
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
|
|
|
|
| |
includes more syslog-specific fields
|
| |
|
| |
|
| |
|
|
|
|
| |
... as far as I currently see the mapping ;)
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
which is waaaaaaay better than the 10gen client driver
|
| |
|
|
|
|
|
| |
after clarifying and receiving permission to do so with original
contributor Victor Pereira (email exchange on 2011-02-22)
|
| |
|
|
|
|
|
| |
too many dependencies, things get cluttered (and merging probably
gets problematic). Now new config will be "conf2".
|
| |
|
|
Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>
|