summaryrefslogtreecommitdiffstats
path: root/plugins
Commit message (Collapse)AuthorAgeFilesLines
* mmcount: message modification plugin which counts messagesBala.FA2013-06-092-0/+350
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This module provides the capability to count log messages by severity or json property of given app-name. The count value is added into the log message as json property named 'mmcount' Example usage of the module in the configuration file module(load="mmcount") # count each severity of appname gluster action(type="mmcount" appname="gluster") # count each value of gf_code of appname gluster action(type="mmcount" appname="glusterd" key="!gf_code") # count value 9999 of gf_code of appname gluster action(type="mmcount" appname="glusterfsd" key="!gf_code" value="9999") # send email for every 50th mmcount if $app-name == 'glusterfsd' and $!mmcount <> 0 and $!mmcount % 50 == 0 then { $ActionMailSMTPServer smtp.example.com $ActionMailFrom rsyslog@example.com $ActionMailTo glusteradmin@example.com $template mailSubject,"50th message of gf_code=9999 on %hostname%" $template mailBody,"RSYSLOG Alert\r\nmsg='%msg%'" $ActionMailSubject mailSubject $ActionExecOnlyOnceEveryInterval 30 :ommail:;RSYSLOG_SyslogProtocol23Format } Signed-off-by: Bala.FA <barumuga@redhat.com>
* [io]mrelp: add TLS compression supportRainer Gerhards2013-06-072-2/+22
|
* Merge branch 'nextmaster'Rainer Gerhards2013-06-062-7/+55
|\ | | | | | | | | Conflicts: ChangeLog
| * omrelp: add "rebindInterval" parameterRainer Gerhards2013-05-141-5/+26
| |
| * imrelp: add support for TLSRainer Gerhards2013-05-141-5/+13
| |
| * Merge branch 'master' into nextmaster-rtlsRainer Gerhards2013-05-141-57/+0
| |\
| * | omrelp: add support for TLSRainer Gerhards2013-05-142-1/+16
| | |
| * | reflect librelp API changeRainer Gerhards2013-05-131-5/+5
| | |
| * | Merge branch 'master' into nextmasterRainer Gerhards2013-05-131-0/+1
| |\ \
| * | | Add configurable local client IPAxel Rau2013-05-061-1/+5
| | | |
* | | | 0mq fixes; credits to Hongfei Cheng and Brian KnoxRainer Gerhards2013-06-044-397/+613
| | | |
* | | | bugfix: postpone the start of the imgssapi listenerTomas Heinrich2013-06-031-2/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the listen socket is opened earlier (during configuration parsing), it is closed again during early init. The start has been postponed to the 'runInput' stage, which has an unpleasant side effect that it will fail if the priviledges are dropped. The code should be eventually fixed to support the new config system.
* | | | bugfix: imjournal should respect termination requestTomas Heinrich2013-05-261-11/+67
| | | | | | | | | | | | | | | | | | | | sd_journal_wait() ignores EINTR and this behavior interferes with module's termination signaling. Therefore, poll() is used instead.
* | | | bugfix: imjournal's thread shouldn't be canceledTomas Heinrich2013-05-261-2/+8
| | | | | | | | | | | | | | | | | | | | Because of cancelation, the correct possition in the journal was lost. This resulted in duplicate messages appearing in the logs.
* | | | Eliminate sleep in imjournal code with sd_journal_waitMilan Bartos2013-05-221-5/+6
| | | | | | | | | | | | | | | | modified: plugins/imjournal/imjournal.c
* | | | Remove redundat cflags and links to librariesTomas Heinrich2013-05-202-4/+4
| | | | | | | | | | | | | | | | | | | | This prevents linking with libee, liblognorm and libgcrypt when not necessary.
* | | | Don't #include libestr and libee headers when not necessaryTomas Heinrich2013-05-202-3/+1
| | | | | | | | | | | | | | | | | | | | Through msg.h, many unrelated components needlessly required LIBEE_CFLAGS.
* | | | Clean up warnings in imjournal and omjournalTomas Heinrich2013-05-202-9/+14
| | | |
* | | | Imjournal state files can be stored in WorkDirectoryMilan2013-05-201-2/+14
| | | | | | | | | | | | | | | | | | | | | | | | When the imjournal state file path doesn't start with '/', then it's by default stored in WorkDirectory. When path starts with '/', full path is used.
* | | | Add missing pid part of syslog tag.Milan Bartos2013-05-141-3/+24
| | | |
* | | | Fix a condition in imjournalTomas Heinrich2013-05-141-1/+10
| |_|/ |/| | | | | | | | | | | This prevented state file from being written with newer systemd. Add some more debug information.
* | | omrelp: remove legacy code that was never usedRainer Gerhards2013-05-141-57/+0
| |/ |/| | | | | | | | | this was an artifact from the original copy from omfwd. The options were not functional and also not documented, so it is safe to simply remove them.
* | bugfix: omrelp legacy config parameters set a timeout of zeroRainer Gerhards2013-05-131-0/+1
|/ | | | which lead the legacy config to be unusable.
* add omrabbitmqvtomec2013-04-293-0/+530
|
* cleanupRainer Gerhards2013-04-241-3/+0
|
* omelasticsearch: _id field support for bulk operationsJérôme Renard2013-04-241-17/+105
| | | | | | also max number of templates for plugin use has been increased to five closes: http://bugzilla.adiscon.com/show_bug.cgi?id=392
* "Fix" timestamp in imkmsg module.Milan Bartos2013-04-231-23/+23
| | | | | | | It's still 5-6 seconds late and this happens also in dmesg from util-linux. modified: plugins/imkmsg/kmsg.c
* omhiredis: add support for redis pipeline supportBrian Knox2013-04-172-36/+91
|
* imjournal: very slight optimizationRainer Gerhards2013-04-171-6/+6
| | | | | ... well, it's actually questionable if it is a real optimization or not ;)
* Fix journal trusted fields translation.Milan Bartos2013-04-171-8/+32
| | | | modified: plugins/imjournal/imjournal.c
* Add support for persistenting journal stateMilan Bartos2013-04-171-6/+132
| | | | modified: plugins/imjournal/imjournal.c
* Merge branch 'master' into master-imjournalRainer Gerhards2013-04-1711-68/+265
|\
| * bugfix: set correct default valueTomas Heinrich2013-04-131-1/+1
| |
| * bugfix: prevent a segfault if ratelimit condition is not metTomas Heinrich2013-04-131-4/+5
| | | | | | | | | | | | Move the severity-check logic inside the ratelimiter and add a new function ratelimitSetSeverity() to manipulate the treshold. Currently only utilized by the imuxsock module.
| * Update u_int8_t to uint8_tMartin Carpenter2013-04-101-1/+1
| |
| * Merge branch 'c7' into tmpRainer Gerhards2013-04-091-2/+16
| |\ | | | | | | | | | | | | | | | | | | Conflicts: ChangeLog configure.ac runtime/queue.c
| | * make imrelp properly terminate on system shutdownRainer Gerhards2013-04-091-0/+1
| | | | | | | | | | | | it didn't do so if it was inside a retry loop
| | * add output module interface to facilitate cooperative shutdownRainer Gerhards2013-04-081-0/+6
| | | | | | | | | | | | | | | | | | ... in more complex cases (where receiving SIGTTIN is not sufficient). See also: http://blog.gerhards.net/2013/04/rsyslog-output-plugin-wrangling.html
| | * omrelp: add ability to specify session timeoutRainer Gerhards2013-04-081-2/+9
| | |
| * | Merge branch 'c7'Rainer Gerhards2013-04-081-35/+97
| |\| | | | | | | | | | | | | Conflicts: ChangeLog
| | * omrelp: add support for RainerScript-based configurationRainer Gerhards2013-04-081-35/+97
| | |
| | * bugfix: imudp scheduling parameters did affect main thread, not imudpRainer Gerhards2013-03-211-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | closes: http://bugzilla.adiscon.com/show_bug.cgi?id=409 Conflicts: ChangeLog
| * | bugfix: imuxsock aborted under some conditionsRainer Gerhards2013-03-271-0/+4
| | | | | | | | | | | | regression from ratelimiting enhancements
| * | imudp: support user-selectable inputnameRainer Gerhards2013-03-261-11/+31
| | |
| * | keep omlibdbi usable with older libdbi without transaction supportRainer Gerhards2013-03-211-1/+11
| | | | | | | | | | | | | | | | | | in that case, omlibdbi gracefully degrades to non-transaction mode but emits a warning message during build, so that one knows an update of libdbi makes sense.
| * | omlibdbi: support transaction interfaceUlrike Gerhards2013-03-211-6/+35
| | |
| * | bugfix: imudp scheduling parameters did affect main thread, not imudpRainer Gerhards2013-03-211-1/+9
| | | | | | | | | | | | closes: http://bugzilla.adiscon.com/show_bug.cgi?id=409
| * | imfile: errors persisting state file are now reportedRainer Gerhards2013-03-201-0/+8
| | | | | | | | | | | | closes: http://bugzilla.adiscon.com/show_bug.cgi?id=292
| * | imuxsock: add ability to NOT create/delete sockets during startup and shutdownRainer Gerhards2013-03-201-3/+20
| | | | | | | | | | | | closes: http://bugzilla.adiscon.com/show_bug.cgi?id=259
| * | imfile: now detects file change when rsyslog was inactiveRainer Gerhards2013-03-201-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | Previosly, this case could not be detected, so if a file was overwritten or rotated away while rsyslog was stopped, some data was missing. This is now detected and the new file being forwarded right from the beginning. closes: http://bugzilla.adiscon.com/show_bug.cgi?id=228