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

