Reaching out to others! Free & Open Source Software, Kannada, L10n, L18n Data Science, Cloud Computing & more…

Make Logwatch identify/ignore Subject line in maillog

Gnu/Linux, linux, QuickFix, Technical | 0 comments

Making changes to the way log entries appear in logfiles makes scream with ”
**Unmatched Entries**” error in the reports. My earlier post on maillog modification did the similar thing. Errors bailed out in logwatch report where in script failed to identify the Subject as the genuine entry. To resolve this, logwatch .conf file can be modified as follows to identify Subject: as a filter.

$Sendmail_MatchFilter = ” \
if ( $ThisLine =~ /Subject:/ ) { \
$ThisLine = ”; \
}”

This helps to make logwatch ignore the Subject: line appearing in your sendmail maillog.

Enjoy!

Tags: , ,

Related Articles

Related