[Manual] /var/log/messages does not exist in Ubuntu

Enabling /var/log/messages in Ubuntu

  1. Edit file /etc/rsyslog.d/50-default.conf and uncomment following lines.
    *.=info;*.=notice;*.=warn;\
        auth,authpriv.none;\
        cron,daemon.none;\
        mail,news.none -/var/log/messages
    
        daemon.*;mail.*;\
        news.err;\
        *.=debug;*.=info;\
        *.=notice;*.=warn |/dev/xconsole
  2. After that restart rsyslog:
    sudo restart rsyslog
One Comment

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.