Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
By the way, there is a bug with Logwatch on Ubuntu 12.04 with the Dovecot service where you will receive a multitude of unmatched entries for logins. See this report:
https://bugs.launchpad.net/ubuntu/+source/logwatch/+bug/1058760
You can apply the patch like thus:
sudo cp /usr/share/logwatch/scripts/services/dovecot /usr/share/logwatch/scripts/services/dovecot.bak curl https://launchpadlibrarian.net/117816434/dovecot.patch | sudo patch
I can’t seem to get this to send emails. Is there something that I have to add to IPTables to allow the email to be sent?
@Ethan.richert: You might need to whitelist outgoing port 25:
sudo iptables -A OUTPUT -p tcp --dport 25 -j ACCEPT
Editing the configuration in /usr/share/logwatch/ is probably not the best thing to do. Instead, copy the configuration to /etc/logwatch/ and edit the copy:
$ sudo cp /usr/share/logwatch/default.conf/logwatch.conf /etc/logwatch/conf/
Adding a line to /etc/logwatch/conf/logwatch.conf
Output = html
Changes the output into easy to read HTML output
This is not article related but: please remove the “-moz-osx-font-smoothing: grayscale” from your body css… it makes all the text unreadable in MAC… you know really crispy… tested with firefox and safari…
As jclgoodwin said, it is bad to edit the default config. Also, if you want to do anything fancy, it might not even work. I wanted to replace sendmail with a script of my own making to do some pre-processing, and it utterly failed until I did:
mkdir /var/cache/logwatch
cp /usr/share/logwatch/default.conf/logwatch.conf /etc/logwatch/conf/
Thank you for this excellent tutorial. I was getting an error when trying to run logwatch manually as per the instructions:
$ logwatch --detail Low --mailto email@address --service http --range today
The error is below:
ERROR: Date::Manip unable to determine TimeZone.
Execute the following command in a shell prompt: perldoc Date::Manip The section titled TIMEZONES describes valid TimeZones and where they can be defined.
If you happen to get this error one way that I fixed it and the only way I know of is to run this command at your prompt:
$ export DATE_MANIP=DM5
Hope this helps. And thanks again for a great tut!
Oh if if you want HTML format of the email that it sends just add this to the bottom of your logwatch config file:
#Outputs mail content into HTML format instead of text for easier reading Output = HTML