diff options
author | Michael Biebl <biebl@debian.org> | 2014-04-03 03:08:50 +0200 |
---|---|---|
committer | Michael Biebl <biebl@debian.org> | 2014-04-03 03:08:50 +0200 |
commit | 9374a46543e9c43c009f80def8c3b2506b0b377e (patch) | |
tree | 8853fd40ee8d55ff24304ff8a4421640f3493c58 /doc/mmcount.html | |
parent | 209e193f14ec562df5aad945f04cd88b227cc602 (diff) | |
download | rsyslog-upstream/8.2.0.tar.gz |
Imported Upstream version 8.2.0upstream/8.2.0
Diffstat (limited to 'doc/mmcount.html')
-rw-r--r-- | doc/mmcount.html | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/doc/mmcount.html b/doc/mmcount.html deleted file mode 100644 index 1d06340..0000000 --- a/doc/mmcount.html +++ /dev/null @@ -1,58 +0,0 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> -<html><head> -<meta http-equiv="Content-Language" content="en"> -<title>mmcount</title></head> - -<body> -<a href="rsyslog_conf_modules.html">back</a> - -<h1>mmcount</h1> -<p><b>Module Name: mmcount</b></p> -<p><b>Author: </b>Bala.FA <barumuga@redhat.com></p> -<p><b>Status: </b>Non project-supported module - contact author -or rsyslog mailing list for questions -<p><b>Available since</b>: 7.5.0</p> -<p><b>Description</b>:</p> -<p> -<pre> - 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 - } -</pre> - -<p>[<a href="rsyslog_conf.html">rsyslog.conf overview</a>] [<a href="manual.html">manual -index</a>] [<a href="http://www.rsyslog.com/">rsyslog site</a>]</p> -<p><font size="2">This documentation is part of the -<a href="http://www.rsyslog.com/">rsyslog</a> project.<br> -Copyright © 2008-2013 by <a href="http://www.gerhards.net/rainer">Rainer Gerhards</a> and -<a href="http://www.adiscon.com/">Adiscon</a>. Released under the GNU GPL -version 3 or higher.</font></p> - -</body></html> |