Yes thank you both of you :)

Regards,
Smana

----- Mail original -----
De: "Balamurugan Arumugam" <[email protected]>
À: "rsyslog-users" <[email protected]>
Envoyé: Lundi 10 Juin 2013 07:46:54
Objet: Re: [rsyslog] [PATCH] mmcount: message modification plugin which counts 
messages



----- Original Message -----
> From: "Rainer Gerhards" <[email protected]>
> To: "rsyslog-users" <[email protected]>
> Sent: Sunday, June 9, 2013 9:55:18 PM
> Subject: Re: [rsyslog] [PATCH] mmcount: message modification plugin which 
> counts messages
> 
> On Thu, May 23, 2013 at 12:16 PM, Balamurugan Arumugam
> <[email protected]>wrote:
> 
> >
> > Here is a new message modifier plugin (mmcount) attached as patch file
> > which counts each log messages by severity or json property of given
> > app-name.  Below is more information from commit log
> >
> > 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 [email protected]
> >     $ActionMailTo [email protected]
> >     $template mailSubject,"50th message of gf_code=9999 on %hostname%"
> >     $template mailBody,"RSYSLOG Alert\r\nmsg='%msg%'"
> >     $ActionMailSubject mailSubject
> >     $ActionExecOnlyOnceEveryInterval 30
> >     :ommail:;RSYSLOG_SyslogProtocol23Format
> >  }
> >
> > Please provide your feedback by reviewing the patch.
> >
> >
> sorry for the long wait due to version finalization. I have finally
> reviewed and merged the module. It will be released together with 7.5.0,
> probably early next week.
> 

Thanks Rainer for reviewing and accepting the patch.


> The module looks pretty nice to me. I have also added some minimal doc, so
> that folks know what to look for, or at least know that it is present.
> MMcount may be superseeded when we have global variable support, but I
> think it's *at least* a decent interim solution.
> 

Yes.  I prefer generic solution (like global variables) which could open up 
more control for the users.  I would be very happy if I contribute on this too.


Regards,
Bala


> Thanks for the contribution!
> 
> Rainer
> 
> > Thanks in advance,
> >
> > Regards,
> > Bala
> >
> > _______________________________________________
> > rsyslog mailing list
> > http://lists.adiscon.net/mailman/listinfo/rsyslog
> > http://www.rsyslog.com/professional-services/
> > What's up with rsyslog? Follow https://twitter.com/rgerhards
> > NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad
> > of sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you
> > DON'T LIKE THAT.
> >
> _______________________________________________
> rsyslog mailing list
> http://lists.adiscon.net/mailman/listinfo/rsyslog
> http://www.rsyslog.com/professional-services/
> What's up with rsyslog? Follow https://twitter.com/rgerhards
> NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of
> sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T
> LIKE THAT.
> 
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of 
sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE 
THAT.
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of 
sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE 
THAT.

Reply via email to