Purging bandwidth databases
Hi,
I'm fighting with low free disk space on my server and one of the things that uses allmost 3G of space are sqlite files in /var/cpanel/bandwidth and one of the files is 2.6G. I have deactivated all the stats tracking services (awstat and similiar) but this files keep on growing.
Since I don't and will never use bandwidth limiting on my server is there a way to purge those files?
I have tried searching trough the forum and trough the documentation but didn't manage to find anything.
-
The data in the logs in /var/cpanel/bandwidth is stored in sqlite databases and is pulled from the cPanel domain access logs at /etc/apache2/domlogs. You could most likely mv the sqlite database but it will be recreated. The only way to stop this from being collected would be to disable cpanellogd - this would disable the domain access logs as well as any bandwidth logs. If you'd like to disable it you could run the following: touch /etc/cpanellogddisable
Then stop the service:/scripts/restartsrv_cpanellogd --stop
You can test to ensure it won't start again as well. You should get something similar to the following:[root@server bandwidth]# /scripts/restartsrv_cpanellogd --start (XID 3vm7r4) The "cpanellogd" service is disabled.0
Please sign in to leave a comment.
Comments
2 comments