On Sat, Apr 28, 2012, at 12:19 PM, Noel Jones wrote: > While it would be possible to patch postfix to write logs > differently, the better choice is to investigate some of the > existing log parsers, such as pflogsumm or postfix-logwatch, and > possibly customize them.
I'll take a look at both of those. > Note that once you modify postfix logging > none of the off-the-shelf tools will work anymore, which is a good > reason to modify existing tools rather than modifying the logging. > http://www.postfix.org/addon.html#logfile It will require more in-depth digging on my part but those tools appear to do after the fact log processing. Your argument for not patching what Postfix does is a good one and echoes my gut anyway. > It is also possible to log to an sql database for flexible custom > reports. This is done in the syslog daemon (such as rsyslog) rather > than in postfix. I'd considered that as well as looking at Splunk. Moving human-readable text logs into a DB grabs me as overkill and smacks too much of Redhat's "Let's change the way logs work", which I personally find distasteful, but worth some additional thought. > For watching the logs in realtime, look at multitail. It can filter > and colorize the display to highlight the parts important to you. I use multitail on occassion. Color/highlight is one option. My specific goal is just to improve my own ability to live-tail a functional log, and more efficiently ID problems. Right now I spend most of my energy trying to visually parse the logs -- which 5 log entries go together, what are the Message IDs/PIDs/etc. Columns work for me, colors don't. I'll take a look at those log analysis/parser tools again. -- Thanks, Karen
