<!DOCTYPE html> <html> <head> </head> <body> <p><strong>How to enable /var/log/messages in Ubuntu<br /></strong><br />In this article we will show you how to enable Var Log messages in Ubuntu.<br /><br />By default log messages are not written to the file /var/log/messages in Ubuntu. <br />In order to enable this, we can do the following:<br /><br />Go to /etc/rsyslog.d. <br />Open the file 50-default.conf and uncomment the following lines<br /><br /><span style="color: #0000ff;">*.=info;*.=notice;*.=warn;</span><br /><span style="color: #0000ff;">auth,authpriv.none;</span><br /><span style="color: #0000ff;">cron,daemon.none;</span><br /><span style="color: #0000ff;">mail,news.none -/var/log/messages</span><br /><br />Once done, save the file and restart rsyslog service.<br /><br /><span style="color: #0000ff;">service rsyslog restart</span><br /><br /><br />Now you would be able to view the system logs including mail, cron etc in /var/log/messages file.</p> </body> </html>
Subscribe
0 Comments
Oldest