Benches macOS

4

Deleting /private/var/log files ?

apple Verified

Imported from the Apple Support Forums via the Wayback Machine 🔗

Anybody know if it is possible to delete old stuff from the folder /private/var/log ?

I can see that the files in use right now is just called .log at the end and older files is called .log.0.bz2, .log.1.bz2, .log.2.bz2, .log.3.bz2 etc. etc. Its like if old used log files is getting stuffed to .bz2 files.

Is it safe to delete all the ones ending on .log.x.bz2 ? old log files ?

Or are OS X still using those old log files.

Thx

4 replies

Sign in or join Beachball Help to reply.

  1. 0

    Camelot

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    The old files are simply archived files, there for prosperity only so you can throw them away if you like - just be aware that you won't be able to research any events that occurred in the timeframe they relate to.

    Also bear in mind that you'll be chasing your tail - the OS is set to automatically rotate the active logs every week so even if you throw the old, compressed files away you'll find you start to get new ones almost immediately.

    In addition, in most cases the files should be pretty small, so you're not going to gain much space as a result. Therefore if you're that stressed for disk space I suggest looking elsewhere since deleting old logs is a never-ending task.

    If your logs are large then there may be some issue on your machine that it's trying to tell you about, so it would be worth checking into that (which obviously you can't do once you trash the logs).

  2. 0

    V.K.

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    it's quite safe to delete but why do you want to? OS X periodically recycles them itself. there should be no reason to delete them by hand unless they grow abnormally large. is that the case?

  3. 0

    sjøgren

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Hi V.K & Camelot

    Thx a lot for your answers 🙂 that helped.

    I just thought i had to many of them.. heh

    Anyway. As you guys say, the compressed files are very small so i just leave them.

    Thx again.

  4. 0

    LeroyHoward

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Hi V.K.

    This is just the problem I'm having. My system log files have grown to 20gb, 6gb and a couple of smaller ones. I'd like to get my gb back. Will these log files tell someone what is wrong? I took my PowerBook over to the local Mac specialists (not the Apple store) and they loaded up MacJanitor and Disk Inventory X which then allowed us to clear up my very large log files. But two weeks later they are just as big and now the MacJanitor doesn't seem to be doing the job. Any ideas?

    LeRoy