12-09-2006, 05:43 PM #1Junior Guru
- Join Date
- Jun 2004
logrotate questions / problems (centos/rh, whm)
I consistantly have logs hit 2gb and my server slow to a crawl. obviously I'd like to fix this. before I was just turning logging off... but obviously that has its disadvantages.
in /etc/cron.daily/ I have the following
if [ $EXITVALUE != 0 ]; then
/usr/bin/logger -t logrotate "ALERT exited abnormally with [$EXITVALUE]"
# see "man logrotate" for details
# rotate log files weekly
# keep 4 weeks worth of backlogs
# create new (empty) log files after rotating old ones
# uncomment this if you want your log files compressed
# RPM packages drop log rotation information into this directory
# no packages own wtmp -- we'll rotate them here
create 0664 root utmp
# system-specific logs may be also be configured here.
it doesn't seem to do anything. the log's still growing. I don't see any evidence of it being rotated. if things were working, where should the old logs be going, exactly?
12-19-2006, 01:00 AM #2Web Hosting Guru
- Join Date
- May 2006
- Teh Interweb
What does the output on the command line look like if you run the command directly?
[[email protected]] ~ $ cat .signature
cat: .signature: No such file or directory