Script to parse mail.log and produce portable/usable xml log files (1 per send attempt) #4176
cloudcogsio
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Monitors
mail.log
for changes usinginotifywait
and produces an xml log file per postfix send attempt.Parses only log lines with a 'status=' string.
Output xml files can then be further consumed by other systems.
Disclaimer: Written over a few iterations with AI assistance as I'm not a bash programmer.
Not extensively tested, but works thus far.
Sample output.
Requires: inotify-tools
You can set to run at boot using crontab
parse.sh
Beta Was this translation helpful? Give feedback.
All reactions