Syslog file won't update

Discussion in 'all things UNIX' started by wat0114, Apr 2, 2016.

  1. wat0114

    wat0114 Registered Member

    Joined:
    Aug 5, 2012
    Posts:
    1,984
    Location:
    Canada
    The Syslog file never updates, always showing 0 bytes. I'm using LXLE, 14.04.4 LTS, Trusty Tahr. Does anyone know how to fix this? I'm trying to generate an apparmor profile, but with no log entries it's impossible.
     

    Attached Files:

  2. Mrkvonic

    Mrkvonic Linux Systems Expert

    Joined:
    May 9, 2005
    Posts:
    8,698
    What are the permissions on the file (check from command line)?
    Is the syslog service running?

    Mrk
     
  3. wat0114

    wat0114 Registered Member

    Joined:
    Aug 5, 2012
    Posts:
    1,984
    Location:
    Canada
    The permissions are:
    Code:
    -rw-r--r-- 1 root root 0 Oct 26 22:01 syslog
    It looks like this has lead me to the issue. After some searching I found a rsyslog restart command:
    Code:
    sudo service rsyslog restart
    and after runnig it a couple times the syslog file grew by several kB's with apparmor logs and such. I don't know why it wasn't running in the first place but at least this latter command gets it going.

    Thanks Mrk! :)
     
  4. Mrkvonic

    Mrkvonic Linux Systems Expert

    Joined:
    May 9, 2005
    Posts:
    8,698
    Boom! Good stuff, mate. Carry on!
    Mrk
     
Loading...