summaryrefslogtreecommitdiffstats
path: root/action.c
Commit message (Collapse)AuthorAgeFilesLines
* optimize: do not iterate over batch items if unneeded ;)Rainer Gerhards2013-01-151-5/+8
|
* optimize: minor cleanup (long scheduled...)Rainer Gerhards2013-01-141-9/+0
| | | | | I did yet another safety-check that there are no problems with removing that de-init.
* optimize: do date() call in template processing only if actually neededRainer Gerhards2013-01-131-25/+2
|
* Merge branch 'v7-stable-newmsglock' into master-newmsglockRainer Gerhards2012-12-061-8/+0
|\ | | | | | | | | | | | | Conflicts: runtime/msg.c runtime/queue.c tools/syslogd.c
| * Merge branch 'v6-stable-newmsglock' into v7-stable-newmsglockRainer Gerhards2012-12-061-8/+0
| |\ | | | | | | | | | | | | Conflicts: tools/syslogd.c
| | * bugfix: some message properties could be garbled due to race conditionRainer Gerhards2012-12-061-8/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This happened only on very high volume systems, if the same message was being processed by two different actions. This was a regression caused by the new config processor, which did no longer properly enable msg locking in multithreaded cases. The bugfix is actually a refactoring of the msg locking code - we no longer do unlocked operations, as the use case for it has mostly gone away. It is potentially possible only at very low-end systems, and there the small additional overhead of doing the locking does not really hurt. Instead, the removal of that capability can actually slightly improve performance in common cases, as the code path is smaller and requires slightly less memory writes. That probably outperforms the extra locking overhead (which in the low-end case always happens in user space, without need for kernel support as we can always directly aquire the lock - there is no contention at all).
| | * cosmetic: remove irrelevant compiler warningRainer Gerhards2012-09-271-1/+1
| | | | | | | | | | | | v7 does not even have this code any longer
* | | bugfix: error message had an extra LF in it (can break forwarding & tools)Rainer Gerhards2012-11-291-1/+1
| | |
* | | queue: change generic msg ptr (pUsr) to be of msg_t typeRainer Gerhards2012-11-031-8/+8
| | |
* | | queue: change gerenic queue pUsr ptr to be action_tRainer Gerhards2012-11-031-1/+1
| | | | | | | | | | | | | | | | | | this was always action_t, but the initial design was more generic. We are making it specific now in order to gain better performance (after all, we did not need the generic engine in the past 8 years...)
* | | Merge branch 'master' into master-ratelimitRainer Gerhards2012-10-241-1/+1
|\ \ \ | | | | | | | | | | | | | | | | Conflicts: doc/v7compatibility.html
| * | | Merge branch 'v7-stable'Rainer Gerhards2012-10-241-1/+1
| |\| |
| | * | make rsyslog core suspened actions after 10 failures in a rowRainer Gerhards2012-10-241-1/+1
| | | | | | | | | | | | | | | | | | | | This was former the case after 1,000 failures and could cause rsyslog to be spammed/ressou
| * | | bugfix: segfault on startup when modules using MSG_PASSING mode are usedRainer Gerhards2012-10-231-1/+4
| | | |
* | | | remove "last message repeated n times" from rsyslog output partRainer Gerhards2012-10-231-126/+16
|/ / /
* | | do "template date call" only when actually neededRainer Gerhards2012-10-111-1/+22
| | |
* | | optimize: do "template time() call" only once per batchRainer Gerhards2012-10-101-5/+8
|/ / | | | | | | | | | | This still needs more optimizing as the call is very often NOT needed - but we need to know about the templates in that case.
* | fix invalid state handling during action executionRainer Gerhards2012-09-251-1/+1
| | | | | | | | could lead to execution of not-to-be-executed action. very recent regression.
* | fix optimizer-introduced memleak in action destructionRainer Gerhards2012-09-251-1/+2
| |
* | cleanup & better debug outputRainer Gerhards2012-09-241-27/+0
| | | | | | | | | | - removed no longer needed function - debug log now contains action type for action objects
* | Clean up implementation of omdiscard-->STOP optimizationRainer Gerhards2012-09-241-1/+10
| |
* | Merge branch 'v6-devel'Rainer Gerhards2012-09-191-1/+16
|\|
| * Merge branch 'v6-stable' into v6-develRainer Gerhards2012-09-191-1/+16
| |\
| | * bugfix: potential abort, if action queue could not be properly startedRainer Gerhards2012-09-191-1/+16
| | | | | | | | | | | | This most importantly could happen due to configuration errors.
* | | new ruleengine: fix memory leakRainer Gerhards2012-09-121-0/+3
| | |
* | | new ruleengine: fixed action handling in regard to filtersRainer Gerhards2012-09-121-72/+69
|/ / | | | | | | This was not yet adapted to the new "active" structure.
* | implement ACT_JSON_PASSINGRainer Gerhards2012-08-291-12/+11
| | | | | | | | | | NOTE: this is only compile-tested! For real testing, a module using that mode is required. Will be done as next steps.
* | add OMSR_TPL_AS_JSON mode for output modules (interface only)Rainer Gerhards2012-08-291-0/+6
| | | | | | | | | | | | This patch does NOT contain any implementation, this will happen next. Thanks to Miloslav Trmac, who suggested a similar mode, which I based the JSON idea on.
* | Merge branch 'v6-stable'Rainer Gerhards2012-08-251-8/+8
|\| | | | | | | | | | | | | | | Conflicts: ChangeLog configure.ac runtime/ruleset.c tools/syslogd.c
| * Merge branch 'v5-stable' into v6-stableRainer Gerhards2012-08-251-8/+8
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: ChangeLog action.c configure.ac doc/manual.html runtime/ruleset.c template.h threads.c tools/syslogd.c
| | * changed TRUE/FALSE to RSTRUE/RSFALSERainer Gerhards2012-08-221-7/+7
| | | | | | | | | | | | This is done to prevent name claches with libraries.
| | * Merge branch 'v5-stable' into v5-betaRainer Gerhards2012-06-111-1/+1
| | |\ | | | | | | | | | | | | | | | | Conflicts: ChangeLog
| | | * bugfix: "last message repeated n times" message was missing hostnameRainer Gerhards2012-06-111-1/+1
| | | | | | | | | | | | | | | | Thanks to Zdenek Salvet for finding this bug and to Bodik for reporting
* | | | Merge branch 'beta'Rainer Gerhards2012-07-241-3/+1
|\| | | | | | | | | | | | | | | | | | | | | | | Conflicts: ChangeLog configure.ac
| * | | debug log: emit (some) action queue parameters to debug logRainer Gerhards2012-07-051-3/+1
| | | |
* | | | Merge branch 'beta'Rainer Gerhards2012-06-291-1/+2
|\| | | | | | | | | | | | | | | | | | | | | | | Conflicts: ChangeLog runtime/rsyslog.h
| * | | Merge branch 'master-elasticsearch' into tmpRainer Gerhards2012-06-291-1/+2
| |\ \ \
| | * | | omelasticsearch: added transactional interface & better debug outputRainer Gerhards2012-05-241-1/+2
| | | | |
* | | | | Merge branch 'beta'Rainer Gerhards2012-06-271-32/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: ChangeLog configure.ac
| * | | | cleanup: remove config scoping system left-overRainer Gerhards2012-06-271-28/+0
| | | | | | | | | | | | | | | | | | | | | | | | | this was an experiment in early v6 that did not work out. I forgot to remove this code when I undid it.
| * | | | bugfix: $ActionName was not properly honoredRainer Gerhards2012-06-271-4/+0
| | | | | | | | | | | | | | | | | | | | Thanks to Abby Edwards for alerting us.
* | | | | change action queue default enqueue timeout from 2000ms to 50msRainer Gerhards2012-06-011-1/+1
|/ / / /
* | | | Merge branch 'v5-beta' into betaRainer Gerhards2012-06-011-1/+1
|\ \ \ \ | |/ / / |/| / / | |/ /
| * | Merge branch 'v5-stable' into v5-betaRainer Gerhards2012-06-011-1/+1
| |\| | | | | | | | | | | | | Conflicts: runtime/queue.c
| | * bugfix: delayble source could block action queue, ...Rainer Gerhards2012-06-011-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | even if there was a disk queue associated with it. The root cause of this problem was that it makes no sense to delay messages once they arrive in the action queue - the "input" that is being held in that case is the main queue worker, what makes no sense. Thanks to Marcin for alerting us on this problem and providing instructions to reproduce it.
| * | Merge branch 'v5-stable-newstats' into v5-develRainer Gerhards2012-04-071-2/+3
| |\ \ | | | | | | | | | | | | | | | | | | | | Conflicts: configure.ac doc/manual.html
| | * | Merge branch 'v5-stable' into v5-stable-newstatsRainer Gerhards2012-04-071-2/+3
| | |\| | | | | | | | | | | | | | | | | Conflicts: configure.ac
| | | * bugfix: memory leak in array passing output module modeRainer Gerhards2012-03-171-2/+3
| | | |
| * | | Merge branch 'v5-stable-newstats' into v5-develRainer Gerhards2012-03-121-0/+6
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: ChangeLog action.c configure.ac doc/imuxsock.html doc/manual.html runtime/queue.c
| | * | queue: lightdelay config: keep default of 70% until mark is explicitely setRainer Gerhards2012-02-221-3/+5
| | | |