- Plesk for Linux
Why Apache writes both HTTP and HTTPS requests to
access_log instead of using
access_ssl_log when piped logs are enabled?
Is the statistics correct, when both request types are written to a single log?
When piped logs are enabled, Apache writes both HTTP and HTTPS request to
access_log. However, requests are differentiated, and during the log rotation, the access log is split into two files -
access_ssl_log.processed. Statistics is counted based on processed files, and therefore, correct.
This is expected behavior and it is described in the documentation:
When this option is used, both HTTP and HTTPS traffic is logged to the access_log file. Daily Maintenance task analyzes it and creates two
access_ssl_log.processed. Web statistics are counted based on these files.
If it is needed to analyze HTTPS and HTTP traffic separately, use the following commands:
# grep HTTPS ./access_log
# grep HTTP ./access_log