Difference between revisions of "FAQ:ssl request log has grown too a large size in Supportworks 8"

From support-works
Jump to navigation Jump to search
 
Line 16: Line 16:
 
7. Enter the following lines directly after:
 
7. Enter the following lines directly after:
 
:LogFormat "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b" secure
 
:LogFormat "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b" secure
:CustomLog "|bin/rotatelogs.exe logs/ssl_request_%Y-%m-%d-%H_%M_%S.log 60" secure
+
:CustomLog "|bin/rotatelogs.exe logs/ssl_request_%Y-%m-%d-%H_%M_%S.log 50M" secure
 
8. Save the file
 
8. Save the file
 
9. Restart Apache
 
9. Restart Apache

Latest revision as of 10:59, 27 September 2018

Applicable To:Supportworks ESP 8.x

In Supportworks 8, there is an apache log called ssl_request.log within \Hornbill\Core Services\Apache\logs on Supportworks server which can grow in size over time. This makes it hard to open the file if an issue needs to be investigated. In Supportworks 7, there was an apache log rotation script and in Supportworks 8, the access and error logs should be rotated however there is no rotation script for ssl_request log, the https log.

Steps to rotate the https log:

1. Open Apache\conf\cs\httpd.conf
2. Locate the following line:
:CustomLog "|bin/rotatelogs.exe logs/access_%Y-%m-%d-%H_%M_%S.log 5M" common
3. Comment it out (i.e. put a # character at the start of the line
4. Save the file
5. Open Apache\conf\cs\core\501_vhosts.conf
6. Locate the following line:
:<VirtualHost _default_:443>
7. Enter the following lines directly after:
:LogFormat "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b" secure
:CustomLog "|bin/rotatelogs.exe logs/ssl_request_%Y-%m-%d-%H_%M_%S.log 50M" secure
8. Save the file
9. Restart Apache

The above will now rotate the ssl_request.log in a similar fashion to the general access log. The first change will stop the generation of the error_yyyy-mm-dd-hh_mm_ss.log files, which are a duplication of the access logs.