|
|
Why keep log files?
Why are .gz files in the log dir annoying? why do you want to save them, bloating your home dir? There is no provision for additional cleanup in your method. How many days will you save? Ad infinitum? is there a legal requirement for saving them? if so, then they should get to external media and/or off-site.
Log files aren't very interesting historically. They are meant to be useful in diagnosing problems close to the present. Occasionally, you may want to go back a few days to investigate an issue, but only legal issues make them historically valuable. Otherwise, they are cruft and are expunged after a duration, as they should be. The older a log file is, the less reflective of reality it is, and the more investigation is required to exact a reality.
The management of logs with the /etc/ maintenance scripts is universally reasonable. Now, with this facility, there's more management and bloat every day.
What are your requirements and does this achieve them? I would be annoyed by the additional bloat and maintenance of the new ~/logs dir. Have you just transferred the workload somewhere else without really solving anything?
And here's a real, slick solution that leaves the system vanilla, and let's you see/access your system logs unencumbered by the .gz files...
Wouldn't it be simpler if you didn't look at the /var/log dir? Why not just make aliases/symlinks of the interesting log files in your ~/logs dir and leave the maintenance mechanism vanilla and mask the .gz files existence from you view that way? like so...
% mkdir ~/syslogs
Why keep log files?
I simply wrote this because I do check over my logs every week or so. I like to see if anything is going wrong, and see if any possible security breaches have occurred. After I read them, I usually just delete them. All this is doing is making me able to delete them when I choose to do so, and cataloging them by their date for easy reference. I see what you are saying, and for some, this script is nothing that they would like to use. However, I find it very useful, and I thought that perhaps a few other people might as well.
Why keep log files?
I am using my Mac as a remote logging machine for my office firewall, and we save those logs a really long time. This script should be very helpful. |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.08 seconds |
|