Simple Machines Community Forum

SMF Support => Server Performance and Configuration => Topic started by: mcb on August 14, 2018, 04:55:15 PM

Title: How to trim Apache access.log
Post by: mcb on August 14, 2018, 04:55:15 PM
Could someone direct me as to how to trim the size of the Apache access.log as it relates to an SMF installation.  (I'm guessing 5GB is way too big.)  Also settings to change to keep it from getting so large. 

In the case of not knowing what i don't know... i don't know if renaming the log to access.old and restarting the Apache server would hurt things or be just fine for the forum.

Thanks,
Title: Re: How to trim Apache access.log
Post by: vbgamer45 on August 14, 2018, 05:04:13 PM
It would be ok to do. I generally do not enable access log on my apache sites just keep the error log. If you are on windows you will have stop the service first delete then restart to make sure it goes away.

If you must keep access logs check out
rotatelogs
https://www.digitalocean.com/community/tutorials/how-to-configure-logging-and-log-rotation-in-apache-on-an-ubuntu-vps
Or for windows on apache https://theheat.dk/blog/?p=1353