Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

10.4: Clear old Console logs from 10.4 upgrade installs System 10.4
Tiger only hintApparently, versions of Mac OS X before Tiger used to write Console logs to a directory named for your short user name:
/Library/Logs/Console/shortu/
i.e. shortu is the user's short name. Apparently in Tiger, console logs are written to a directory named for your user ID number instead:
/Library/Logs/Console/501/
However, Tiger does not delete the old console logs or directories, even though they are no longer being used. So if you updated to Tiger from a previous version of Mac OS X, you can save some hard drive space by deleting the /Library -> Logs -> Console -> shortusername directories for all of your users. Don't believe me? Try typing this in the terminal:
head -1 /Library/Logs/Console/501/console.log
The 501 user ID is assigned to the first account that was set up by the OS, and "newer" users are numbered higher: 502, 503, 504, etc. After that, try this:
head -1 /Library/Logs/Console/your_shortusername/console.log
These commands will tell you which OS versions wrote each file.
    •    
  • Currently 2.40 / 5
  You rated: 1 / 5 (5 votes cast)
 
[15,486 views]  

10.4: Clear old Console logs from 10.4 upgrade installs | 7 comments | Create New Account
Click here to return to the '10.4: Clear old Console logs from 10.4 upgrade installs' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.4: Clear old Console logs from 10.4 upgrade installs
Authored by: donquichote on Oct 03, '05 10:42:10AM

Doesn't work for me. I upgraded with "archive & install", but I don't have no folder /Library/Logs/Console/my_shortusername/.

Why?



[ Reply to This | # ]
10.4: Clear old Console logs from 10.4 upgrade installs
Authored by: Whosawhatsis on Oct 03, '05 11:02:36AM

Check your previous system folder 8)

It says upgrade install, not archive and install.

---
I was offered a penny for my thoughts, so I gave my two cents... I got ripped off.



[ Reply to This | # ]
10.4: Clear old Console logs from 10.4 upgrade installs
Authored by: gidds on Oct 03, '05 03:20:11PM
Were the /Library/Logs/Console/<shortname>/ folders specific to 10.3? I upgraded from 10.2 straight to 10.4, and I don't recall seeing anything like that; in 10.2, weren't they /var/tmp/Console.log or something like that?

---
Andy/

[ Reply to This | # ]

WFM good tip
Authored by: jasont on Oct 03, '05 06:46:30PM

This may have been a panther specific method. It does work. I even have deleted user logs in there under the deleted user names. I'm not sure how safe it would be to delete some of these files. It seems that users w/o the container folders are fine. Hopefully no third party apps choke on removal. This is a good tip for cleanups.



[ Reply to This | # ]
10.4: Clear old Console logs from 10.4 upgrade installs
Authored by: TigerKR on Oct 03, '05 07:14:39PM

Quote: "I'm not sure how safe it would be to delete some of these files... Hopefully no third party apps choke on removal."

Removing inactive log files (as described in this hint) should be perfectly safe, because unlike a configuration, preference, or receipt file - a log file is (supposed to be) simply a one-way, non-interactive, repository for output (that is usually never read by the everyday user). To the best of my knowledge, a log file is not something that any programs should use for configuration what-so-ever.

Bonus funny TigerKR is stupid story:

I found this tip because I use a Konfabulator widget to display the last ten lines of my system.log and my console.log files (and to refresh every so often). Even though I glance at the output (which resides on a second monitor) fairly regularly, it took me 2+ months to notice that the date was wrong and the output hadn't moved for the console.log file! Since I saw changes in the system.log output, I just didn't notice that the console.log file hadn't moved.

: - )

Hey, I'm right 90% of the time, so why worry about the other 3% of the time.



[ Reply to This | # ]
10.4: Clear old Console logs from 10.4 upgrade installs
Authored by: MJCube on Oct 04, '05 08:46:45PM

"Save some hard drive space"? The folder named my shortname in /Library/Logs/Console/ has 10 files totaling 224K, and my current '501' logs total 212K. An insignificant amount of disk space for any Mac running OS X. I mean, I'm interested to learn about this little change, but to me it seems quite unimportant to delete such files.



[ Reply to This | # ]
10.4: Clear old Console logs from 10.4 upgrade installs
Authored by: TigerKR on Oct 05, '05 10:09:42PM

Consider yourself lucky. For some people, large console.log files are generated daily.

Feel free to leave the completely obsolete files on your hard drive as you wish. Heck, keep them there for historical preservation! "Wow honey, look what I found! The great console.log of July 13th, 2005 - I remember that one, what a doosy!" ; - )

Just remember that it takes resources (RAM, VM, CPU, HD, HD Cache) to track every file and directory on your system, and if there is a lot of random litter strewn all over the spinning little magnetic platters in your HD(s), it can theoretically lead to slowdowns. Also, in this specific case, if you're ever unfortunate enough to have to look for problems, extra obsolete log files that look like non-obsolete log files could hamper your investigation and waste your time.



[ Reply to This | # ]