Good day,

I am trying to "trap" certain errors\events in the maillog and send them as a 
daily report.
The issue I am having is only trapping the errors from the last 24 hours.
Here is of the events I am trying, which doesnt show any data when trying to 
filter the last 24 hours. Removing that displays all the data.


sudo grep $(date +"%Y-%m-%d") /var/log/maillog | grep "connect from" | awk 
'{print $1,$2,$8;}' | sort | uniq -c | sort -nr | head -500


Is there a more reliable way to do this?

-not adverse to a perl-based solution-



Thanks,
Rich

_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to