Log files are eating up half of my disk space

access and error log files are eating up half of my disk space.
How can I clear my log files?

h

@JB_Wright,

Well at least in the case of “error_logs” eating up lots of space, the best solution is to review them and correct the errors causing them to be logged.

1 Like

Is logrotate installed and working correctly? All logs in a Virtualmin system are supposed to be rotated regularly by the logrotate cron job. You’ll have a config file covering all Virtualmin created logs (like access and error logs for domains managed by Virtualmin) in /etc/logrotate.d/virtualmin.conf.

You can, of course, make it run more often and more aggressively, if disk space is at a premium and your logs grow rapidly due to high traffic.

Peter’s also right, you should check to be sure there isn’t some problem causing rapid log growth.

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.