summaryrefslogtreecommitdiffstats
path: root/grammar/rainerscript.c
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'v7-stable-call-ruleset-queue' into v7-stableRainer Gerhards2013-11-051-3/+10
|\ | | | | | | | | Conflicts: ChangeLog
| * bugfix: call to ruleset with async queue did not use the queueRainer Gerhards2013-06-261-3/+10
| | | | | | | | closes: http://bugzilla.adiscon.com/show_bug.cgi?id=443
* | bugfix: abort if "if $syslogfacility-text..." was being usedPavel Levshin2013-10-291-3/+6
| |
* | bugfix: memory leak in strlen() RainerScript functionRainer Gerhards2013-10-251-0/+1
| | | | | | | | | | Thanks to Gregoire Seux for reportig this bug. closes: http://bugzilla.adiscon.com/show_bug.cgi?id=486
* | bugfix: buffer overrun if re_extract function was called for submatch 50Rainer Gerhards2013-10-251-1/+1
| | | | | | | | Thanks to Pavel Levshin for reporting the problem and its location.
* | bugfix: memleak in re_extract() functionRainer Gerhards2013-10-251-1/+2
| | | | | | | | Thanks to Pavel Levshin for reporting this problem.
* | bugfix: invalid property filter was not properly disabled in rulesetRainer Gerhards2013-10-181-2/+3
| | | | | | | | | | | | | | | | Note that this bugfix introduces a very slight memory leak, which is cosmetic, as it just holds data until termination that is no longer needed. It is just the part of the config that was invalid. We will "fix" this "issue" in the devel version first, as the fix is a bit too intrusive to do without hard need in the stable version.
* | bugfix: segfault if re_extract() function was used and no match foundRainer Gerhards2013-10-181-1/+4
| |
* | bugfix: array-based ==/!= comparisions lead to invalid resultsRainer Gerhards2013-10-101-3/+4
| | | | | | | | This was a regression introduced in 7.3.5 bei the PRI optimizer
* | bugfix: imtcp addtlframedelimiter could not be set to zeroRainer Gerhards2013-08-261-1/+1
| | | | | | | | Thanks to Chris Norton for alerting us.
* | fix regression that caused freeInstance not to be correctly calledRainer Gerhards2013-07-151-1/+1
| | | | | | | | was introduced July, 5th 2013 by commit 8ee2b0b1610fbf4dff20453d188f379583410b42
* | bugfix: potential segfault during startup on invalid configRainer Gerhards2013-07-051-49/+60
|/ | | | | could happen if invalid actions were present, which could lead to improper handling in optimizer.
* bugfix: RainerScript object required parameters were not properly checkedRainer Gerhards2013-06-241-2/+9
| | | | this clould result to segfaults on startup if parameters were missing.
* Merge branch 'v7-stable'Rainer Gerhards2013-04-081-61/+125
|\ | | | | | | | | | | Conflicts: grammar/rainerscript.c runtime/ruleset.c
| * bugfix: nested if/prifilt conditions did not work properlyRainer Gerhards2013-04-041-61/+127
| | | | | | | | closes: http://bugzilla.adiscon.com/show_bug.cgi?id=415
| * bugfix: script == comparison did not work properly on JSON objectsRainer Gerhards2013-04-041-0/+23
| | | | | | | | backport from 7.3 branch
* | add RainerScript re_extract() functionRainer Gerhards2013-03-271-2/+103
| |
* | Fix for glob(3)s that lack GLOB_NOMAGICMartin Carpenter2013-03-211-4/+8
| | | | | | | | | | | | Conflicts: configure.ac
* | Merge branch 'v7-stable' into tmpRainer Gerhards2013-03-201-1/+5
|\|
| * bugfix: RainerScript getenv() function caused segfault when var was not foundPhilippe Muller2013-03-201-1/+5
| | | | | | | | | | | | | | This patch is released under ASL 2.0 as of email conversation from 2013-03-20. Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>
* | bugfix: segfault in expression optimizerRainer Gerhards2013-03-151-4/+4
| | | | | | | | closes: http://bugzilla.adiscon.com/show_bug.cgi?id=423
* | Merge branch 'v7-stable'Rainer Gerhards2013-03-131-2/+7
|\| | | | | | | | | | | Conflicts: configure.ac doc/manual.html
| * bugfix: include files got included in the wrong orderRainer Gerhards2013-02-281-2/+7
| | | | | | | | | | | | | | | | | | This happens if an $IncludeConfig directive was done on multiple files (e.g. the distro default of $IncludeConfig /etc/rsyslog.d/*.conf). In that case, the order of include file processing is reversed, which could lead to all sorts of problems. Thanks to Nathan Stratton Treadway for his great analysis of the problem, which made bug fixing really easy.
* | field() function now supports a string as field delimiterRainer Gerhards2013-02-101-7/+58
| | | | | | | | | | also done a bugfix: field() function did never return "***FIELD NOT FOUND***" instead it returned "***ERROR in field() FUNCTION***" in that case
* | bugfix: script == comparison did not work properly on JSON objectsRainer Gerhards2013-02-081-0/+23
| |
* | optimize: use binary search on EQ/NEQ array matchesRainer Gerhards2013-01-271-20/+46
| | | | | | | | | | | | Conflicts: grammar/rainerscript.c
* | Merge branch 'v7-stable'Rainer Gerhards2013-01-081-5/+5
|\|
| * bugfix: doGetFileCreateMode() had invalid validity check ;)Chandler Latour2013-01-081-5/+5
| |
* | Merge branch 'v7-stable'Rainer Gerhards2012-12-181-0/+4
|\|
| * cosmetic: silence compiler warningRainer Gerhards2012-12-181-0/+4
| |
* | Merge branch 'master-optimize-facilitext'Rainer Gerhards2012-12-141-14/+354
|\ \ | |/ |/|
| * script optimizer: support textual severities in compare operations as wellRainer Gerhards2012-12-111-0/+17
| |
| * script optimizer: support numerical facilities in compare operations as wellRainer Gerhards2012-12-111-5/+58
| |
| * script optimizer: severity lt/le/gt/ge to prifilt()Rainer Gerhards2012-12-111-16/+46
| |
| * script optimizer: severity eq/ne to prifilt()Rainer Gerhards2012-12-111-5/+37
| |
| * bugfix: optimizer stopped prematurely on some operationsRainer Gerhards2012-12-111-0/+11
| |
| * script optimizer: optimize and/or on PRI filtersRainer Gerhards2012-12-111-0/+37
| |
| * script optimizer: support NOT pri matchesRainer Gerhards2012-12-111-4/+42
| |
| * enhance optimizer: detect eq-comparison for syslog facilityRainer Gerhards2012-12-111-9/+131
| | | | | | | | ... and replace it with a (much faster) prifilt() call
* | fix missing functionality: ruleset(){} could not specify ruleset queueRainer Gerhards2012-11-301-0/+24
|/ | | | | | | | | | The "queue.xxx" parameter set was not supported, and legacy ruleset config statements did not work (by intention). The fix introduces the "queue.xxx" parameter set. It has some regression potential, but only for the new functionality. Note that using that interface it is possible to specify duplicate queue file names, which will cause trouble. This will be solved in v7.3, because there is a too-large regression potential for the v7.2 stable branch.
* silence some primarily cosmetic compiler warning messagesRainer Gerhards2012-11-281-2/+4
|
* improve $IncludeConfig error messagesRainer Gerhards2012-11-201-4/+7
|
* regression fix: rsyslog terminated when wild-card $includeFile did not find ↵Rainer Gerhards2012-11-201-2/+5
| | | | | | files Unfortunately, this is often the case by default in many distros.
* make sure inaccessible config file is not tried to be processedRainer Gerhards2012-11-141-3/+3
| | | | | | | The processing loop was not terminated when an unaccessible file was detected, and so processing was done using unitialized data, which could lead to all sorts of problems. Also did some minor cleanup.
* Silently ignore wildcard includes that match nothingGeorgi Georgiev2012-11-131-4/+16
| | | | This will avoid an error message when including an empty directory.
* Merge branch 'v6-stable' into v7-stableRainer Gerhards2012-11-091-16/+18
|\ | | | | | | | | Conflicts: tests/Makefile.am
| * bugfix: $IncludeConfig did not correctly process directoriesRainer Gerhards2012-11-091-18/+19
| | | | | | | | | | | | | | | | closes: http://bugzilla.adiscon.com/show_bug.cgi?id=376 The testbench was also enhanced to check for these cases. Thanks to Georgi Georgiev for the bug report. Also minor bugfix: no error msg on unreadable $IncludeConfig path
* | Merge branch 'v7.2.1-bugfix' into v7-stableRainer Gerhards2012-11-091-1/+1
|\ \
| * | bugfix: potential segfault due to invalid param handling in comparisonsRainer Gerhards2012-11-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | This could happen in RainerScript comparisons (like contains); in some cases an unitialized variable was accessed, which could lead to an invalid free and in turn to a segfault. Closes: http://bugzilla.adiscon.com/show_bug.cgi?id=372 Thanks to Georgi Georgiev for reporting this bug and his great help in solving it.
* | | bugfix: potential segfault when re_match() function was usedoxpa2012-11-021-1/+0
|/ / | | | | | | | | Thanks to oxpa for the patch. closes: http://bugzilla.adiscon.com/show_bug.cgi?id=371