[Logwatch] Changing subject line of Logwatch emails?

Mike Tremaine mgt at stellarcore.net
Mon May 29 11:10:08 MST 2006

On Mon, 2006-05-29 at 10:56 -0700, Burv wrote:
> Is there a configuration setting for Logwatch where I
> can define the setting of the emails?  Specifically,
> since I manage a lot of machines, it would be nice if
> the email said something more detailed than 'Logwatch
> for hostname-here'.  In fact, since the email is from
> logwatch, I think it's redundant to include that in
> the subject, too.  Perhaps something like
> "hostname-here: 1 errors, /usr critical" for a subject
> instead?

Line 972 of logwatch.pl

print OUTFILE "Subject: Logwatch for $Config{'hostname'} (${OStitle})\n";

Feel free to hack away.

[I had mentioned that thought of making it more configurable but no work
has been done on it yet other then Bjorn's $OStitle addition.]


More information about the Logwatch mailing list