Web Hosting Talk







View Full Version : HOW do you delete syslogs??


hoot
03-18-2002, 12:01 PM
Hi, for the last week or so my sendmail has been very slow and several of my customers are complaining that they can't recieve e.mail anymore

I run my own dns on my raq so I was told that the syslogs must be full.
How do I go about emptying them?? I don't want to harm the server or something ...

And where are they kept???

Please help me ...

Thanks,
Hoot

jks
03-18-2002, 06:10 PM
Originally posted by hoot
Hi, for the last week or so my sendmail has been very slow and several of my customers are complaining that they can't recieve e.mail anymore

I run my own dns on my raq so I was told that the syslogs must be full.
How do I go about emptying them?? I don't want to harm the server or something ...

And where are they kept???

Please help me ...

Thanks,
Hoot

Find the logfile that has exceeded the disk spac
Remove it (rm filename)
Restart syslogd (/etc/rc.d/init.d/syslogd restart)

hoot
03-22-2002, 07:34 AM
Where are the logs kept? I wsa told to detele the "syslogs" which ones are these, aren't there some logs that you are not supposed to delete??

I think that the logs I'm looking for muct be to do with dns etc ...

anyideas

jks
03-24-2002, 03:57 PM
Originally posted by hoot
Where are the logs kept? I wsa told to detele the "syslogs" which ones are these, aren't there some logs that you are not supposed to delete??

I think that the logs I'm looking for muct be to do with dns etc ...

anyideas

Try checking the /var/log/ directory.

AlaskanWolf
03-24-2002, 04:05 PM
instead of deleting them, you can empty them

cd /DIRECTORY/YOUR/LOGS/RESIDE/IN
for i in *;do rm -f $i;touch $i;done