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

[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

Leave a Reply

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