Syntactic Confectionery Delight | |
PerlMonks |
print lines withing specific date range from mailoog fileby theravadamonk (Scribe) |
on Mar 17, 2016 at 09:13 UTC ( [id://1158061]=perlquestion: print w/replies, xml ) | Need Help?? |
theravadamonk has asked for the wisdom of the Perl Monks concerning the following question: Hi monks, I have a postfix logfile /var/log/maillog. I want to send a blocked mail digest to users on daily basis. ( Let's say @ 10.30 am everyday). I want to print all lines from 10.30 a.m from yesterday to 10.30 am today from this /var/log/maillog to anoter file. Then I will grep the BLOCKED mails from this file and send a Blocked mail Digest report to users. How can I achieve this? I found similar urls.
Extracting Log File data for a given date range mail maillog looks like this and so on I am still trying to write it. Can you monks help me on this.
Back to
Seekers of Perl Wisdom
|
|