How to Enable Var Log Message in Ubuntu 12.04

Enable /var/log/messages in Ubuntu 12.04

This post covers the steps How to Enable Var Log Message in Ubuntu 12.04.

By default log messages are not written to the file /var/log/messages in Ubuntu flavour of Linux OS. In order to enable this, we can do the following

Change directory to /etc/rsyslog.d. Open the file 50-default.conf and uncomment the following lines




mail,news.none -/var/log/messages

Once done, save the file and restart rsyslog service.

root@SD-LITE-DB:~# service rsyslog restart

Thats it. Now you should be able to view the system logs including mail, cron etc in /var/log/messages file.

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Posts