1. Welcome to the new MacRumors forums. See our announcement and read our FAQ

System logs

Discussion in 'OS X Mountain Lion (10.8)' started by 1member1, Jan 20, 2013.

  1. 1member1, Jan 20, 2013
    Last edited: Jan 20, 2013

    macrumors 6502

    #1
    Hi

    Does the mac keep system.log from more than one day ? when I try to reach it from the console I only get today's events but I need yesterday :()

    Thanks

    edit : never mind found it
     
  2. Quad5Ny, Jan 20, 2013
    Last edited: Jan 20, 2013

    macrumors 6502a

    #2
    /private/var/log/ has all (or most) of the system logs, including system.log. Older rotated logs are bzip2 compressed and appended with a ".#" to the end of their name (ex: system.log.3.bz2).

    Other areas of interest include: /Library/logs/, /Library/Application Support/CrashReporter/, ~/Library/Logs/ and ~/Library/Application Support/CrashReporter/

    Apps that are sandboxed sometimes have their logs separated from the normal log folders. Check "~/Library/Containers/com.DEVELOPER.APP" and browse to the Logs/CrashReporter folders in those App's sandbox containers.

    It's safe to delete the entire contents of any of those folders (not the folder itself), just make sure to Restart and then Repair Disk Permissions afterwards.

    You can manually trigger a log rotation by Opening up Terminal and typing "sudo newsyslog -F". I also believe the periodic scripts rotate 1 or 2 logs, try "sudo periodic daily weekly monthly".

    All of that aside, you should be able to view the logs in Console:
    1. Open Console.app
    2. Click "Show Log List"
    3. Expand "/var/log"
    4. Scroll down
    .
     

Share This Page