summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'v6-stable' into v6-develRainer Gerhards2012-09-202-1/+2
|\ | | | | | | | | | | | | Conflicts: ChangeLog configure.ac doc/manual.html
| * preparing for 6.4.2 releasev6.4.2Rainer Gerhards2012-09-204-3/+3
| |
| * testbench: do not run tests requiring root privs if non-rootRainer Gerhards2012-09-202-0/+8
| |
| * bugfix: config validation run did not always return correct return stateRainer Gerhards2012-09-202-0/+2
| |
* | bugfix: config validation run did not always return correct return stateRainer Gerhards2012-09-202-0/+2
| |
* | testbench: do not run tests requiring root privs if non-rootRainer Gerhards2012-09-202-0/+8
| |
* | bugfix: small memory leak in imdiagRainer Gerhards2012-09-201-0/+1
| | | | | | | | | | This does not have any practical problems associated with it, EXCECPT that it caused almost all valgrind testbench tests to fail.
* | doc: add new functions to RainerScript function listRainer Gerhards2012-09-201-1/+4
| |
* | Merge branch 'v6-stable' into v6-develRainer Gerhards2012-09-193-2/+19
|\|
| * bugfix: potential abort, if action queue could not be properly startedRainer Gerhards2012-09-193-2/+19
| | | | | | | | This most importantly could happen due to configuration errors.
* | Free configuration objects after useMiloslav Trmač2012-09-171-1/+2
| | | | | | | | Signed-off-by: Miloslav Trmač <mitr@redhat.com>
* | Fix other small memory leaks in template() processingRainer Gerhards2012-09-171-4/+7
| |
* | bugfix: small memory leaks in template() statementsRainer Gerhards2012-09-172-3/+12
| | | | | | | | | | these were one-time memory leaks during startup, so they did NOT grow during runtime
* | Merge branch 'v6-stable' into v6-develRainer Gerhards2012-09-145-3/+23
|\| | | | | | | | | Conflicts: runtime/rule.c
| * Merge branch 'v5-stable' into v6-stableRainer Gerhards2012-09-141-1/+1
| |\
| | * Debug logging slightly improvedRainer Gerhards2012-09-141-1/+1
| | |
| * | Fix length calculation for script string constantsRainer Gerhards2012-09-141-2/+2
| | | | | | | | | | | | | | | | | | This could lead to various problems, like if-filters not working. Note this is a regression from yesterdays escape fix, so there exist no released version with this problem.
| * | Fix new testbench testRainer Gerhards2012-09-141-1/+1
| | |
| * | Add test for script-based contains filter to testbenchRainer Gerhards2012-09-143-0/+20
| | |
* | | fix ChangeLogRainer Gerhards2012-09-131-3/+15
| | | | | | | | | | | | got messed-up during merge :-(
* | | Merge branch 'v6-stable' into v6-develRainer Gerhards2012-09-136-80/+254
|\| | | | | | | | | | | | | | | | | | | | | | | Conflicts: ChangeLog grammar/rainerscript.c grammar/rainerscript.h runtime/rule.c
| * | Fixing string unescaping (new code from this morning's commit)Rainer Gerhards2012-09-131-1/+1
| | |
| * | Merge branch 'v5-stable' into v6-stableRainer Gerhards2012-09-132-78/+87
| |\| | | | | | | | | | | | | Conflicts: runtime/rule.c
| | * bugfix: invalid property name in property-filter could cause abortRainer Gerhards2012-09-132-56/+67
| | | | | | | | | | | | | | | | | | ...if action chaining (& operator) was used http://bugzilla.adiscon.com/show_bug.cgi?id=355 Thanks to pilou@gmx.com for the bug report
| * | bugfix: missing support for escape sequences in RainerScriptRainer Gerhards2012-09-135-2/+162
| | | | | | | | | | | | | | | | | | | | | Only \' was supported. Now the usual set is supported. Note that v5 used \x as escape where x was any character (e.g. "\n" meant "n" and NOT LF). This also means there is some incompatibility to v5 for well-know sequences. Better break it now than later.
| * | nit: correct messed-up ChangeLogRainer Gerhards2012-09-121-3/+5
| | |
* | | Merge branch 'v6-stable' into v6-develRainer Gerhards2012-09-122-8/+10
|\| | | | | | | | | | | | | | Conflicts: ChangeLog
| * | Merge branch 'v5-stable' into v6-stableRainer Gerhards2012-09-122-5/+11
| |\| | | | | | | | | | | | | Conflicts: ChangeLog
| | * remove unused variables (if SCM_CREDENTIALS is not available)Cristian Ionescu-Idbohrn2012-09-122-1/+9
| | |
| | * imuxsock: remove incorrect socket option callCristian Ionescu-Idbohrn2012-09-121-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | SCM_CREDENTIALS is not a socket option; its value is usually 0x2 which on most archs corresponds to socket option SO_REUSEADDR, but on mips-arch there is no socket option with value 0x2 and SO_REUSEADDR = 0x4, so the call will fail with ENOPROTOOPT 'Protocol not available'; skip it. There does not seem any other special setsockopt call is needed anyway, besides the above. In addition Jonny Törnbom commented: SCM_CREDENTIALS is a control message type, not a socket option, so using setsockopt(...SCM_CREDENTIALS...) is potentially dangerous and wrong and should be deleted from the code. (SCM_CREDENTIALS is used in conjuction with SO_PASSCRED which is the socket option to use.)
| * | Merge branch 'v5-stable' into v6-stableRainer Gerhards2012-09-111-3/+1
| |\|
| | * fix compile problem on FreeBSDBrad Davis2012-09-111-3/+1
| | |
* | | forward-compatibility patch for $ruleset processingRainer Gerhards2012-09-122-0/+5
| | | | | | | | | | | | | | | v7 needs a different handling, it's easer in the long term if we introduce this in v6 as well. Non-intrusive change.
* | | Add missing prototype for tplToJSON()Rainer Gerhards2012-09-101-0/+2
| | |
* | | Merge branch 'v6-stable' into v6-develRainer Gerhards2012-09-062-5/+7
|\| | | | | | | | | | | | | | | | | | | | Conflicts: ChangeLog configure.ac doc/manual.html
| * | preparing for 6.4.1 releasev6.4.1Rainer Gerhards2012-09-064-7/+9
| | |
* | | Merge branch 'v6-stable' into v6-develRainer Gerhards2012-09-069-11/+56
|\| |
| * | Fixed TCP CheckConnection handling in omfwd.c.Andre Lorbach2012-08-257-9/+30
| | | | | | | | | | | | Interface needed to be changed in lower stream classes. Syslog TCP Sending is now resumed properly.
| * | bugfix: omusrsmsg incorrect return state & config warning handlingRainer Gerhards2012-08-283-2/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | During config file processing, Omusrmsg often incorrectly returned a warning status, even when no warning was present (caused by uninitialized variable). Also, the core handled warning messages incorrectly, and treated them as errors. As a result, omusrmsg (most often) could not properly be loaded. Note that this only occurs with legacy config action syntax. This was a regression caused by an incorrect merge in to the 6.3.x codebase. Thanks to Stefano Mason for alerting us of this bug.
* | | switch field default to "mandatory" and implement that modeRainer Gerhards2012-08-303-14/+19
| | |
* | | add capability to specify "optional" attribute for list-type templates, tooRainer Gerhards2012-08-291-0/+5
| | |
* | | Add support for optional fieldsMiloslav Trmač2012-08-293-0/+10
| | |
* | | default outname for $!<property> is now without $! prefixRainer Gerhards2012-08-294-31/+42
| | | | | | | | | | | | also some type cleanup and simplification
* | | milestone: ommongodb supports templates & JSON passing API in placeRainer Gerhards2012-08-292-15/+10
| | |
* | | adapted Mirek's changes to new JSON passing modeRainer Gerhards2012-08-294-50/+27
| | | | | | | | | | | | | | | 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-293-12/+178
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | | implement ACT_JSON_PASSINGRainer Gerhards2012-08-292-12/+56
| | | | | | | | | | | | | | | NOTE: this is only compile-tested! For real testing, a module using that mode is required. Will be done as next steps.
* | | Merge branch 'master-jsonc' into master-jsonpassingRainer Gerhards2012-08-291-2/+5
|\ \ \
| * | | add json-c to build systemRainer Gerhards2012-08-261-2/+5
| | | |