Bala.FA 2eb19f15a4 mmcount: message modification plugin which counts messages
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>
2013-06-09 18:11:14 +02:00
2013-04-25 10:24:56 +02:00
2013-05-08 09:21:02 +02:00
2013-01-28 16:01:36 +01:00
2013-06-06 11:55:23 +02:00
2013-04-09 16:03:14 +02:00
2013-06-06 11:55:23 +02:00
2009-07-15 12:34:59 +02:00
2012-01-11 18:30:33 +01:00
2012-01-11 18:30:33 +01:00
2007-09-05 11:11:52 +00:00
2004-11-08 13:52:36 +00:00
2012-01-18 14:08:24 +01:00
2012-01-11 18:49:00 +01:00
2013-03-29 16:09:19 +01:00
2013-03-22 09:39:00 +01:00

This file has been superseeded by the files in the doc folder.
Please see doc/manual.html for futher details. If you are
looking for install information doc/install.html is for you!
If you do not have the doc set, see
    http://www.rsyslog.com/doc
Description
a Rocket-fast SYStem for LOG processing
Readme 295 MiB
Languages
C 68.5%
Shell 20.9%
JavaScript 2.5%
Dockerfile 2.4%
Makefile 2.3%
Other 3.2%