Results 1 to 4 of 4
Hello all,
So I just found out on one of my servers log rotate is not on...
How did I find out... lol 100% full / & /var.
So here ...
- 04-17-2008 #1
Clean logs
Hello all,
So I just found out on one of my servers log rotate is not on...
How did I find out... lol 100% full / & /var.
So here is my question, isn't there a way to clean out entries past a certain amount of days? I'd like to shrink it up and then I will turn log rotate on
I need this asap! Please help if you know how before I just blow the entire log away.
Thanks.
- 04-18-2008 #2Linux Newbie
- Join Date
- Feb 2008
- Location
- Bangalore, India
- Posts
- 112
You need to create a small script which will find 1 or more days before logs and zip them.
you can also add one more shell check which will delete very old logs.
hint :
- Use find -mtime option to find 1 or more days old files.
- Put script in cron and run as per your need.
If you need script let me know
bigunix.blogspot.com
Registered Linux User: #476440
- 04-18-2008 #3
have you checked /etc/logrotate.conf or /etc/logrotate.d/?
logrotate should be able to handle this.
- 04-18-2008 #4


Reply With Quote