On 02/21/11 15:37, Reindl Harald wrote:
> Is there a way to get "pflogsumm" work with logfiles without
> a machine name because the hostname is useless overhead
> as long it is the same in every line

You could just reinsert the hostname with sed:
sed -e 's/ postfix\// localhost postfix\//' /var/log/maillog | pflogsumm

But IMHO you should not change the log format. What is the benefit? --
Saving 1 or 2Mb disk space per year (after log rotation & compression)?
The time you already spend with the issue is more expensive than that.
Not to mention the problems should you ever want to add a second server,
a central log host, or any log analysis tool.

-- 
Martin

Reply via email to