summaryrefslogtreecommitdiffstats
path: root/action.c
Commit message (Collapse)AuthorAgeFilesLines
* added capability to draw configuration graphsRainer Gerhards2009-05-111-4/+7
| | | | | | | | - 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)
* added a new way how output plugins may be passed parameters.Rainer Gerhards2009-04-031-2/+30
| | | | | 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.
* Merge branch 'omfile-errHandler'Rainer Gerhards2009-03-241-1/+7
|\ | | | | | | | | Conflicts: ChangeLog
| * omfile bugfixingRainer Gerhards2009-03-181-1/+7
| | | | | | | | | | | | | | - fixed a bug that caused action retries not to work correctly situation was only cleared by a restart - bugfix: closed dynafile was potentially never written until another dynafile name was generated - potential loss of messages
* | integrated various patches for solarisRainer Gerhards2009-03-051-22/+22
|/ | | | | | | | | 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-8/+11
| | | | | | 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.
* fixed type in format string (s as string indicator missing)varmojfekoj2009-01-121-1/+1
| | | | Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>
* experimentally altered "last message repeated n times" to include msgRainer Gerhards2008-12-191-2/+7
| | | | | | | | | | | | This was suggested by David Lang, to help identify the message that was repeated. A problem is that I do not have the expanded template at hand when the "last ... times" message is generated. Spending much time on this functionality is also probably not a good thing, as the whole functionality will be overhauled (and once this is done we will not at all have the output template at hand). So the approach is to use a single field - here msg - and inlcude it as a notation of what was repeated. This is far from being perfect, but eventually good enough. I will now wait for feedback before going any further.
* added configuration directive "HUPisRestart"Rainer Gerhards2008-10-231-0/+33
| | | | | ...which enables to configure HUP to be either a full restart or "just" a leightweight way to close open files
* cleanup of output timestamp generationRainer Gerhards2008-10-071-36/+2
|
* "output" timestamp now taken from mesg's time generatedRainer Gerhards2008-10-071-1/+5
| | | | | | | This enhances performance and, as some have pointed out, is probably also more consistent with what users expect how the various output-timestamp related function should work. This commit needs some more testing.
* very minor: performance optimization hint addedRainer Gerhards2008-10-021-0/+1
|
* TESTING COMMIT: commiting not fully correct codeRainer Gerhards2008-09-181-1/+30
| | | | | | ... for the purpose of conducting a few external tests. This is a first approach at removing the time() call in the output, but it shows there are some subleties we need to address.
* consolidated time() calls in rule engineRainer Gerhards2008-09-161-29/+72
| | | | | | | ... 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.
* Merge branch 'beta'Rainer Gerhards2008-09-121-1/+1
|\ | | | | | | | | | | | | Conflicts: runtime/rsyslog.h tools/syslogd.c
| * Merge branch 'v3-stable' into betaRainer Gerhards2008-09-121-1/+1
| |\ | | | | | | | | | | | | | | | | | | Conflicts: runtime/datetime.h runtime/rsyslog.h
| | * bugfix: incorrect default discard severity could cause message lossRainer Gerhards2008-09-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | default discard severity was incorrectly set to 4, which lead to discard-on-queue-full to be enabled by default. That could cause message loss where non was expected. The default has now been changed to the correct value of 8, which disables the functionality. This problem applied both to the main message queue and the action queues. Thanks to Raoul Bhatia for pointing out this problem.
* | | Merge branch 'beta'Rainer Gerhards2008-09-021-1/+4
|\| | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: ChangeLog action.c configure.ac doc/manual.html
| * | Merge branch 'v3-stable' into betaRainer Gerhards2008-09-021-0/+4
| |\| | | | | | | | | | | | | | | | | | | | | | Conflicts: ChangeLog configure.ac doc/manual.html
| | * bugfix: action was not called when system time was set backwardsvarmojfekoj2008-09-011-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | (until the previous time was reached again). There are still some side-effects when time is rolled back (A time rollback is really a bad thing to do, ideally the OS should issue pseudo time (like NetWare did) when the user tries to roll back time). Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>
* | | added ability to execute actions only after the n-th call of the actionRainer Gerhards2008-08-071-2/+39
|/ / | | | | | | | | | | | | | | | | 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.
* | added (internal) error codes to error messagesRainer Gerhards2008-06-271-5/+5
| | | | | | | | | | Also added redirector to web description of error codes closes bug http://bugzilla.adiscon.com/show_bug.cgi?id=20
* | disabled compile warnings caused by third-party librariesRainer Gerhards2008-06-231-0/+4
| |
* | ability to load proper select netstrm driverRainer Gerhards2008-04-291-1/+1
| |
* | some more cleanupRainer Gerhards2008-04-161-1/+1
|/ | | | | reduced dependencies, moved non-runtime files to its own directory except for some whom's status is unclear
* implemented $ActionExecOnlyOnceEveryInterval config directiveRainer Gerhards2008-04-081-1/+16
|
* added the capability to specify a processing (actually dequeue) timeframeRainer Gerhards2008-04-031-4/+11
| | | | with queues - so things can be configured to be done at off-peak hours
* changed queue's discard severities default value to 8 (do not discard) toRainer Gerhards2008-03-221-1/+1
| | | | prevent unintentional message loss
* added advanced flow control for congestion cases (mode depending on messageRainer Gerhards2008-03-141-1/+1
| | | | source and its capablity to be delayed without bad side effects)
* fixed some compiler warnings under FreeBSDRainer Gerhards2008-03-061-1/+1
|
* shuffled some more code from syslogd.c to the right placesRainer Gerhards2008-03-051-0/+100
|
* moved date/time handling functions to their own object (2nd pass)Rainer Gerhards2008-03-051-3/+7
|
* bugfix: actions were not correctly retried; caused message lossRainer Gerhards2008-03-051-1/+4
|
* - extracted logerror*() family of functions from syslogd, made them theirRainer Gerhards2008-03-051-3/+6
| | | | | | own class and converted to new object calling conventions (interface-based) - converted gss-misc into a loadable library module
* - changed modules.c calling conventions to be interface-basedRainer Gerhards2008-03-051-2/+5
| | | | | | | | | | | - moved module loader from conf.c to module.c, where it belongs - made the necessary plumbing to auto-load library modules - upgraded debug system to include iRet in function exit message - changed module interface so that instances need only to be supported by output plugins (if we actually need them for input plugins, we can always add it again...) - milestone: first implementation of library modules (but do not get unloaded on exit/hup so far)
* changed obj base object's calling interface to use the new obj_if_tRainer Gerhards2008-02-291-4/+16
| | | | interface structure
* implemented environment-settable debug optionsRainer Gerhards2008-02-281-10/+10
|
* bugfix: message object was not properly synchronized when the main queueRainer Gerhards2008-02-201-0/+8
| | | | had a single thread and non-direct action queues were used
* bugfix: fixed abort when invalid template was provided to an action bug:Rainer Gerhards2008-02-181-1/+3
| | | | http://bugzilla.adiscon.com/show_bug.cgi?id=4
* - implemented $ActionLibdbiDriverDirectory config directiveRainer Gerhards2008-02-151-1/+0
| | | | | - some cleanup - doc improvements
* removed some left-over unnecessary dbgprintf'sRainer Gerhards2008-02-131-10/+0
|
* - improved diagnostic information for abort casesRainer Gerhards2008-02-121-7/+18
| | | | | - some initial effort for malloc/free debugging support - bugfix: using dynafile actions caused rsyslogd abort
* bugfix: discard action and backup actions did not work due to problem inRainer Gerhards2008-02-121-0/+1
| | | | | | direct queue mode. Now fixed. Tracker was http://sourceforge.net/tracker/index.php?func=detail&aid=1886931&group_ id=123448&atid=696552
* removed debug messageRainer Gerhards2008-02-111-1/+0
|
* bugfix: having fun with 32/64 bit portability - after 15 years, I finallyRainer Gerhards2008-01-311-4/+4
| | | | | was trapped again ;) -- now fixed, sizes > 2GB supported on 32bit platforms
* - fixed bug in sample rsyslog.confRainer Gerhards2008-01-311-6/+6
| | | | | | | - fixed wrong action suspend/resume handling - we have some issue with the mutx in dbgoprint, but that is acceptable for the time being, I just removed the deadlock codition (debug system only)
* - rename $<obj>TimoutWorkerThreadShutdown toRainer Gerhards2008-01-311-8/+10
| | | | | | | $<obj>WorkerTimoutThreadShutdown for consistency reasons - changed default for action queue size to 1000 elements (more reasonable here) - fixed bug in sample rsyslog.conf
* - implemented limiting disk space allocated to queuesRainer Gerhards2008-01-301-0/+7
| | | | | - addded $MainMsgQueueMaxDiskSpace config directive - addded $ActionQueueMaxDiskSpace config directive
* - implemented simple output rate limitingRainer Gerhards2008-01-301-2/+10
| | | | | | - addded $ActionQueueDequeueSlowdown config directive - addded $MainMsgQueueDequeueSlowdown config directive - bugfix: MsgDup() did not work with new base object data structure
* - changed the ommysql output plugin so that the (lengthy) connectionRainer Gerhards2008-01-301-11/+32
| | | | | | | 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