CentOS 6 – Logwatch Report Not In HTML Format
CentOS 6 (amd64) up to date with latest security / bug fixes.
The logwatch reports come in plain text even though the config states HTML.
mailer = “/usr/sbin/sendmail -t”
TmpDir = /tmp MailFrom = logwatch@example.com MailTo = admin1 admin2 admin3
Range = yesterday Detail = Medium HostName = www.example.com Print = No Output = mail Format = html
The same settings in Debian/Ubuntu servers send the reports in HTML format.
In my search, I did not come across any solution for CentOS 6.
Any ideas on how to get logwatch to generate HTML reports?
Thanks for your help.
— Arun Khan
8 thoughts on - CentOS 6 – Logwatch Report Not In HTML Format
Maybe the format is set in
sudo crontab -l
Am Montag, 29. August 2016 schrieb Arun Khan :
You mean in the way it is invoked from the cron entry?
— Arun Khan
No, I mean there is sometimes a variable for mail format too:
# crontab -l CONTENT_TYPE=”text/plain; charset=utf-8″
MAILFROM=webmaster@xxx.de MAILTO=Alexander.Farber@xxx.com LANG=en_US.UTF-8
PGHOST=/tmp
#minute hour mday month wday command
The HTML formatting is a logwatch option, invoked through the logwatch.conf file.
— Arun Khan
logwatch is run as cronjob.
Let’s take cron out of the picture. Invoking logwatch from an interactive shell — no joy. The report still goes out in text format.
— Arun Khan
You should have provided more info initially.
“goes out in text format” might mean several things.
I don’t know what you mean by “several things”
In the context of logwatch the only options are HTML or TEXT. Please see my OP.
Thanks for your assistance.
— Arun Khan