I'd like to know if the Apache Usage Logs at http://1234.23.234.12:2222/CMD_USER_STATS?domain=
are cleared regularly. I'm reading at http://www.webhostingtalk.com/showthread.php?t=867425 that they can increase server load.
Someone at the link above suggested removing the logs daily using the command below:
The apache logs are stored in:
/var/log/httpd/domains/domain.com.log
/var/log/httpd/domains/domain.com.error.log
so, create a file in /etc/logrotate.d/ with the following content:
I personally want to leave Apache logs as is because I think the system clears it after a period of time. Does anyone know how the logs are cleared and how often?
are cleared regularly. I'm reading at http://www.webhostingtalk.com/showthread.php?t=867425 that they can increase server load.
Someone at the link above suggested removing the logs daily using the command below:
The apache logs are stored in:
/var/log/httpd/domains/domain.com.log
/var/log/httpd/domains/domain.com.error.log
so, create a file in /etc/logrotate.d/ with the following content:
Code:
/var/log/httpd/domains/*.log {
daily
}
I personally want to leave Apache logs as is because I think the system clears it after a period of time. Does anyone know how the logs are cleared and how often?