Split ssl_requests.log file by day
Original Question or Issue:
How to split the SSL log on a per-day basis in FileCloud Server
Environment:
- Product - FileCloud Server
- Version - Any
- Platform - Any
Steps to Reproduce:
Error or Log Message:
Defect or Enhancement Number:
Cause:
Since all HTTPS requests are logged in ssl_request.log, the size of the file grows over time, making it difficult to manage.
Resolution or Workaround:
- Back up
C:\xampp\apache\conf\extra\httpd-ssl.confbefore making any changes. - Edit
httpd-ssl.confas shown below. Comment out the existingCustomLogline and add the newrotatelogsdirective:
________________________
# Per-Server Logging:
# The home of a custom SSL log file. Use this when you want a
# compact non-error SSL logfile on a virtual host basis.
#CustomLog "/xampp/apache/logs/ssl_request.log" \
# "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
CustomLog "|bin/rotatelogs.exe -l C:/xampp/apache/logs/ssl_request.%Y.%m.%d.log 86400" \
"%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
________________________
- Restart the Apache web server from FileCloud Control Panel
Notes:
Depending on your FileCloud deployment the xampp directory can be found on a different system hard drive than C:\