When are the log files cleared from the server

myweb

Well-Known Member
Jun 18, 2002
71
0
156
Tokyo
I would like to know exactly when the log files are cleared from the server at the end of month? For example, the log files were removed on the 30th of May, but I was expecting that to happen on 31st?
 

myweb

Well-Known Member
Jun 18, 2002
71
0
156
Tokyo
Anyone? I need to know exacly what time so that I can make backups of the log files before they get cleared.
 

myweb

Well-Known Member
Jun 18, 2002
71
0
156
Tokyo
Thanks for the reply.

I am referring to the files under /usr/local/apache/domlogs
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,462
25
473
Go on, have a guess
They're cleared whenever the cpanellogd/logrunner completes which is controlled by the settings in WHM > Tweak Settings. There is no set time as it depends on the size of the logs and the available resources on the server (and if you've created a time window in the Statistics Software Configuration in WHM).
 

myweb

Well-Known Member
Jun 18, 2002
71
0
156
Tokyo
chirpy said:
They're cleared whenever the cpanellogd/logrunner completes which is controlled by the settings in WHM > Tweak Settings. There is no set time as it depends on the size of the logs and the available resources on the server (and if you've created a time window in the Statistics Software Configuration in WHM).
Thanks for the reply, but I am a little confused.

I have the option "Delete each domain's access logs after stats run" unchecked, so doesn't this mean that the domlog files are kept until it is cleared at the end of the month unless the "Keep log files at the end of the month (default is off as you can run out of disk space quickly)" option is enabled?
 

myweb

Well-Known Member
Jun 18, 2002
71
0
156
Tokyo
So.. as I wrote on my first post I would like to know exactly when the log files are cleared from the server at the end of month? Because I've seen the log files removed on the 30th of May, but I was expecting that to happen on 31st? And idea why this happens?