Click to See Complete Forum and Search --> : Can I delete the log.gz ?


Donovan
11-14-2000, 09:56 AM
Hi, I notice my server generates several logs files...

For example right now I have

access.log
access.log.1.gz
access.log.2.gz

Can I safely delete the gz logs ?
Since they are numbered, will the rotating log not get lost and mess with numbers if I delete 1 and 2 logs ?

Thanks,
Donov

bugfix
11-14-2000, 10:06 AM
The gz files are zipped. I guess there's a cron script being run and every now and then, either when the logs reach a certain size or for example, every 28 days the log is zipped and the gz file is created with the next logical numbered filename. I'd imagine its quite safe to delete them.

duggeB.

[This message has been edited by bugfix (edited 14 November 2000).]

X_console
11-14-2000, 11:47 AM
Yes, you can delete them safely. Those are old log files. Unless you have a reason for keeping them (eg: proof that you got cracked) then you can wipe them out, or you can back them up somewhere. Your call.