You need to write a shell script for this. But are you sure you *really* want
to have log files mailed every 15 minutes? Think about the mailbox clutter...

Rainer

> -----Original Message-----
> From: [email protected] [mailto:rsyslog-
> [email protected]] On Behalf Of BHAVANI KUMAR KUPPA
> Sent: Tuesday, April 19, 2011 8:09 AM
> To: rsyslog-users
> Subject: [rsyslog] Regading ommail module in rsyslog
> 
> Hi,
> 
>  I have started using rsyslog recently for one of my projects and have been
> struggling to accomplish the following task:
> 
> Task: A mail is to be sent every 15 minutes with the body of the mail being
> the collection of all the logs written in those span of 15 minutes ..
> 
> For this I have been trying to configure ommail in several ways but
couldn't
> find a way yet. Though the " $ActionExecOnlyOnceEveryInterval " directive
> ensures sending a mail at regular intervals, I am unable to have a control
on
> the body of the mail wherein I need to collect all the logs being written
to the
> log file during that interval. Is there a way we can do this ?? Or do we
need to
> make use of a separate program (Shell script, etc.. ) to do this job??
> 
> Also can we have the logs written to a file wherein the files are created
as
> per the current date i.e. say the logs being written on 19th April 2011
have to
> be stored in a file log_04_19_11 and that of 20th April 2011 in
log_04_20_11.
> Is there a way we can accomplish this using rsyslog ??
> 
> 
> 
> Thanks and Regards,
> K.V.M. Bhavani Kumar
> _______________________________________________
> rsyslog mailing list
> http://lists.adiscon.net/mailman/listinfo/rsyslog
> http://www.rsyslog.com
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com

Reply via email to