Skip to content

Apache Logging

Apache logfiles are growing indefinitly by default. So logfiles like apache\log\access.log and apache\log\ssl_request.log could grow to a size so that they can't be used for analysis purpose.

Apache supports a logrotate per day

"|bin/rotatelogs.exe logs/ssl_request_%Y-%m-%d.log 86400"

So adjust in http.conf

CustomLog "logs/access.log" ...

with

CustomLog "|bin/rotatelogs.exe logs/access_%Y-%m-%d.log 86400" ...

and also in http-ssl.conf

CustomLog "${SRVROOT}/logs/ssl_request.log" ...

with

CustomLog "|bin/rotatelogs.exe ${SRVROOT}/logs/ssl_request_%Y-%m-%d.log 86400" ...