Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

logrotate tip of the day



I've know I've had logrotate issues for quite a while on my server.  My
/var/log files weren't being rotated properly.  But today I noticed
logrotate had been running for 3462:54, and was eating up about 60%-80%
of my CPU.  To rotate logfiles.

When you add your own logrotate rules, say to rotate files in
/home/david/log, DO NOT specify the wildcard as /home/david/log/*
instead of /home/david/log/*.log, as every gzipped archived log will
then also be rotated, and so on, and so on, and so on.

My server has been deleting *gz* for almost 20 minutes now.  Good times.






BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org