On Wed, Apr 26, 2000 at 03:24:09PM -0400, Andrew Kae wrote: > Hello everyone, > > I have noticed that some of /var/log files such as syslog and lastlog > files are getting very large ~ 18-20 MB. Is it ok to just delete them and > recreate them?
Yes, if your not concerned about their content. You can always rotate them out with: savelog -t /var/log/syslog savelog -t /var/log/lastlog Note that lastlog is not a text logfile like syslog. It is a binary log of logins. Also note that the above will compress the old logs. > Also, I notice that, lately, whenever I boot into linux and am about to > log in, the processor is extremely active. When I "top", i notice that > syslogd is taking up 68% of the CPU. Is this because files like > /var/log/syslog file are so huge, or some other reason? More than likely it is because everything is catching up (all the daemons are being started and sending their output to syslog). Once the system settles in, it (as you already notice) calms down. Ben -- -----------=======-=-======-=========-----------=====------------=-=------ / Ben Collins -- ...on that fantastic voyage... -- Debian GNU/Linux \ ` [EMAIL PROTECTED] -- [EMAIL PROTECTED] -- [EMAIL PROTECTED] ' `---=========------=======-------------=-=-----=-===-======-------=--=---'