In this article we will show you how to enable Var Log messages in Ubuntu.
By default log messages are not written to the file /var/log/messages in Ubuntu . In order to enable this, we can do the following:
Go to /etc/rsyslog.d. Open the file 50-default.conf and uncomment the following lines
*.=info;*.=notice;*.=warn;\ auth,authpriv.none;\ cron,daemon.none;\ mail,news.none -/var/log/messages
Once done, save the file and restart rsyslog service.
service rsyslog restart
Now you would be able to view the system logs including mail, cron etc in /var/log/messages file.