Install Logwatch on Ubuntu

Upgrade and install packages

sudo su
apt update && apt upgrade
apt -y install logwatch

Create symlink

Create the main config file

ln -s /usr/share/logwatch/distro.conf/logwatch.conf /etc/logwatch/logwatch.conf

Edit config

vi /etc/logwatch/logwatch.conf
TmpDir = /tmp
MailFrom = [email protected]
MailTo = [email protected]
Detail = Medium
Output = mail
Format = text
Encode = none

Test

logwatch --range today --service http