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
(Created page with "{{Template:Basic Cover | title=ssl_request log has grown too a large size in Supportworks 8 | type=FAQ }} {{Template:Basic Status | status=Published | version=1.0 | authors=H...")
 
Line 1: Line 1:
{{Template:Basic Cover
+
Applicable To:Supportworks ESP 8.x
| title=ssl_request log has grown too a large size in Supportworks 8
 
| type=FAQ
 
}}
 
 
 
{{Template:Basic Status
 
| status=Published
 
| version=1.0
 
| authors=Hornbill Support
 
| applicableto=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.
 
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.

Revision as of 17:04, 16 February 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 60" 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.