restoring maillog

canreo

Verified User
Joined
Mar 5, 2007
Messages
18
Yesterday I noticed that my maillog file was huge and getting larger by the minute. It started at 7 GB (yes, gigabytes!) in the morning and by the end of the day it was over 10GB. The log viewer in the DA control panel wouldn't open it because of it's huge size, even if I told it to only show 50 lines.

I figured I would delete the log file and start over so that I could see exactly (in real time) what entries were causing this problem and then deal with them then.

After I deleted the file, I recreated it and then changed its permissions to 600. However, now nothing gets logged and the file stays at 0 bytes. Am I missing a step?
 
I gather you did not restart syslog. syslog is still trying to write to the file you deleted. You deleted an open file. Not good.
 
That was it. Thanks Floyd. Hopefully I can now determine why it got so big in the first place.
 
I'm adding to the thread to clarify it a bit...

syslog was not trying to write to the old file. It was actually writing to it. Even though you could no longer see the file, syslog could. And it would have still continued to get bigger.

Just a note so everyone understands :) .

Jeff
 
Thanks Jeff. That does help. That is how a hard drive can be filling up and you cannot find the file that is doing it.
 
Back
Top