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

Re: [cobalt-users] raq4r - log files too big



wcstaff wrote:
> 
> I have a raq 4r and the system is crashing every morning around 7:00am. I
> receive a message that the server is low on memory, every morning at 4:45.
> I have narrowed it down to the log rotation. some of my logs are 300 megs in
> size and way too big. I think the purging and rotation is failing.
> Is there any fixes for this or a method of purging the logs?

You can manually rotate the files using /usr/local/sbin/logrotate. 
However, if the files are too big, 
and it sucks down too much memory, you could freeze your box.  

if the stats are of no consequence to you, you probably just want to 
rm -rf logname.log
and then touch logname.log.

Good luck,

-- 
Alainna C. Wonders
Network Analyst
Glenelg Country School
Pager: 410 434 0968
-----------------------
Don't be afraid to try something new. 
Remember amateurs built the ark, and professionals built the titanic.