summaryrefslogtreecommitdiffstats
path: root/action.h
Commit message (Collapse)AuthorAgeFilesLines
* milestone: generic action parameters parsed via new config systemRainer Gerhards2011-08-011-1/+1
|
* milestone: queue object now has a param handler for new conf interfaceRainer Gerhards2011-07-221-3/+3
| | | | ... and action queue defs use this new interface (but not yet the main queues)
* milestone: done plumbing to call plugin create action instance entry pointRainer Gerhards2011-07-201-0/+1
|
* Merge branch 'beta'Rainer Gerhards2011-06-211-1/+1
|\ | | | | | | | | | | | | | | | | Conflicts: ChangeLog configure.ac doc/manual.html tests/Makefile.am tests/manytcp-too-few-tls.sh
| * Merge branch 'v5-stable' into betaRainer Gerhards2011-06-211-1/+1
| |\ | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: ChangeLog configure.ac doc/manual.html tests/diag.sh tests/sndrcv_drvr.sh
| | * bugfix: problems in failover action handlingRainer Gerhards2011-06-161-1/+1
| | | | | | | | | | | | closes: http://bugzilla.adiscon.com/show_bug.cgi?id=270 (not yet confirmed!)
* | | step: put plumbing in place for new input module config systemRainer Gerhards2011-05-031-0/+1
|/ /
* | Merge branch 'v5-devel'Rainer Gerhards2011-03-311-18/+1
|\| | | | | | | | | | | | | | | | | | | Conflicts: configure.ac doc/manual.html doc/rsyslog_conf.html runtime/msg.c runtime/rsyslog.h template.c
| * Merge branch 'v5-stable' into v5-betaRainer Gerhards2011-03-161-18/+1
| |\ | | | | | | | | | | | | Conflicts: tests/Makefile.am
| | * fixed a regression of last patch and some cleanupRainer Gerhards2011-03-161-1/+1
| | |
| | * bugfix: failover did not work correctly if repeated msg reduction was onRainer Gerhards2011-03-161-18/+1
| | | | | | | | | | | | affected directive was: $ActionExecOnlyWhenPreviousIsSuspended on
* | | Merge branch 'v5-beta'Rainer Gerhards2011-02-181-1/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: ChangeLog configure.ac doc/manual.html runtime/glbl.c tools/omdiscard.c
| * | bugfix: minor race condition in action.c - considered cosmeticRainer Gerhards2011-02-171-1/+0
| |/ | | | | | | | | | | This is considered cosmetic as multiple threads tried to write exactly the same value into the same memory location without sync. The method has been changed so this can no longer happen.
* / added support to save/restore rsyslog core action settings...Rainer Gerhards2010-07-231-0/+2
|/ | | | | ... but not those of plugins (which are at least as important as the core ones). So this is an interim commit.
* added missing support for systems without atomic instructionsRainer Gerhards2010-06-241-0/+1
|
* fixed a couple of regressionsRainer Gerhards2010-06-231-1/+1
| | | | | | | | by implementing some code that was missing so far ;) as well as finding some real bugs. I also did some general cleanup, removing debug strings and such. This code should be fairly OK to use, except when "exec only when previous action was suspended" is used -- this is NOT yet re-implemented in the tuned engine.
* some cleanupRainer Gerhards2010-06-101-2/+0
| | | | | as well as some work in preparation of storing doAction params inside the batch
* fixed regression for omruleset use caseRainer Gerhards2010-06-101-1/+1
| | | | | I did not revert to using the action ppMsg data element, as one of the next steps is to remove it by an overall much better solution.
* added support for high-performance action queue submission if not all mark ↵Rainer Gerhards2010-06-081-3/+3
| | | | | | | | | | messages should be logged this was previously not properly handeld. This is also the first occurence of a (real) CAS loop inside rsyslog. Note that the performance is now very well in the default configuration, and mark message directives are still correctly being handled. So this code looks close to final, but needs to have some bug cleanup as the testsuite shows.
* performance enhancement: implemented stage 1 firehose mode for actionsRainer Gerhards2010-06-081-1/+1
| | | | | | | | | | | ... plus some other tests, namely string generation in parallel to action processing. The code is not yet solid and not fully compatible to older versions. But it is good enough for an early commit and some early testing/gaining of experience. The optimization was done based on the fine-grained partitioning paradigm worked on the past couple of weeks -- seems to work out really great :)
* added new cancel-reduced action thread termination methodRainer Gerhards2010-05-171-0/+1
| | | | | | | | We now manage to cancel threads that block inside a retry loop to terminate without the need to cancel the thread. Avoiding cancellation helps keep the system complexity minimal and thus provides for better stability. This also solves some issues with improper shutdown when inside an action retry loop.
* adapted merged code to v5 engineRainer Gerhards2010-04-261-1/+1
|
* Merge branch 'v5-stable'Rainer Gerhards2010-04-261-1/+2
|\
| * bugfix(kind of): output plugin retry behaviour could cause engine to loopRainer Gerhards2010-04-261-1/+2
| | | | | | | | | | | | | | | | | | The rsyslog engine did not guard itself against output modules that do not properly convey back the tryResume() behaviour. This then leads to what looks like an endless loop. I consider this to be a bug of the engine not only because it should be hardened against plugin misbehaviour, but also because plugins may not be totally able to avoid this situation (depending on the type of and processing done by the plugin).
* | Merge branch 'v4-devel' into masterRainer Gerhards2010-04-231-1/+2
|\ \ | | | | | | | | | | | | | | | Conflicts: runtime/rsyslog.h runtime/wtp.c
| * | solved alignment errors on Solaris SparcRainer Gerhards2010-04-221-1/+2
| | |
* | | replaced data type "bool" by "sbool" because this created some portability ↵Rainer Gerhards2010-02-021-3/+3
| |/ |/| | | | | issues
* | added omruleset output module, which provides great flexibility in action ↵Rainer Gerhards2009-11-021-1/+1
| | | | | | | | | | | | processing. THIS IS A VERY IMPORTANT ADDITION, see its doc for why.
* | some more cleanup - action config line handlers are now defined in action.cRainer Gerhards2009-10-271-1/+0
| | | | | | | | As an artifact of early development, they were registered in syslogd.c
* | added new config option $ActionWriteAllMarkMessagesRainer Gerhards2009-08-201-0/+1
| | | | | | | | | | | | this option permites to process mark messages under all circumstances, even if an action was recently called. This can be useful to use mark messages as a kind of heartbeat.
* | some post-merge cleanupRainer Gerhards2009-06-221-2/+0
| |
* | Merge branch 'omfile' into tmpRainer Gerhards2009-06-221-4/+6
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | This was a complex manual merge, especially in action.c. So if there occur some problems, this would be a good point to start troubleshooting. I run a couple of tests before commiting and they all went well. Conflicts: action.c action.h runtime/queue.c runtime/queue.h runtime/wti.c runtime/wti.h
| * optimized template string generationRainer Gerhards2009-06-191-0/+1
| |
| * optimized action.c a bitRainer Gerhards2009-06-191-5/+6
| |
* | Merge branch 'master' into multi-dequeueRainer Gerhards2009-05-121-0/+1
|\| | | | | | | | | Conflicts: runtime/rsyslog.h
| * added capability to draw configuration graphsRainer Gerhards2009-05-111-0/+1
| | | | | | | | | | | | | | | | - added $GenerateConfigGraph configuration command which can be used to generate nice-looking (and very informative) rsyslog configuration graphs. - added $ActionName configuration directive (currently only used for graph generation, but may find other uses)
* | first shot at action state machine implemention (untested)Rainer Gerhards2009-05-071-2/+13
|/ | | | | I am commiting it so that the code is visible, but will no begin with the test environment.
* added a new way how output plugins may be passed parameters.Rainer Gerhards2009-04-031-0/+2
| | | | | This is more efficient for some outputs. They new can receive fields not only as a single string but rather in an array where each string is seperated.
* integrated various patches for solarisRainer Gerhards2009-03-051-1/+1
| | | | | | | | | Unfortunatley, I do not have the full list of contributors available. The patch set was compiled by Ben Taylor, and I made some further changes to adopt it to the news rsyslog branch. Others provided much of the base work, but I can not find the names of the original authors. If you happen to be one of them, please let me know so that I can give proper credits.
* added new config directive $RepeatedMsgContainsOriginalMsgRainer Gerhards2009-02-021-1/+2
| | | | | | so that the "last message repeated n times" messages, if generated, may have an alternate format that contains the message that is being repeated. Note that this is on an action-by-action basis.
* added configuration directive "HUPisRestart"Rainer Gerhards2008-10-231-0/+1
| | | | | ...which enables to configure HUP to be either a full restart or "just" a leightweight way to close open files
* consolidated time() calls in rule engineRainer Gerhards2008-09-161-2/+2
| | | | | | | ... but did not manage to avoid doing at least one call. So this change introduced performance benefit only in a few non-common situations. Anyhow, it hopefully levels ground for better things to come.
* added ability to execute actions only after the n-th call of the actionRainer Gerhards2008-08-071-0/+4
| | | | | | | | | This also lead to the addition of two new config directives: $ActionExecOnlyEveryNthTime and $ActionExecOnlyEveryNthTimeTimeout This feature is useful, for example, for alerting: it permits you to send an alert only after at least n occurences of a specific message have been seen by rsyslogd. This protectes against false positives due to waiting for additional confirmation.
* implemented $ActionExecOnlyOnceEveryInterval config directiveRainer Gerhards2008-04-081-1/+3
|
* implemented module unload handling (required a number of interface changes)Rainer Gerhards2008-03-111-1/+1
|
* shuffled some more code from syslogd.c to the right placesRainer Gerhards2008-03-051-0/+1
|
* changed obj base object's calling interface to use the new obj_if_tRainer Gerhards2008-02-291-0/+1
| | | | interface structure
* - changed the ommysql output plugin so that the (lengthy) connectionRainer Gerhards2008-01-301-2/+1
| | | | | | | initialization now takes place in message processing. This works much better with the new queued action mode (fast startup) - fixed a newly introduced bug that caused output module's doAction entry point to be called on more than one thread under some circumstances
* bugfixing newly added action codeRainer Gerhards2008-01-291-0/+1
|
* - improved debug support a bit (assertions)Rainer Gerhards2008-01-291-0/+2
| | | | | - restructured code, moved some part out of syslogd.c to action.c, where they belong (still some more to do in that regard ;))