The <Proactivenet_Install_Location>\pw\apache\logs\ contains log files which are not rolling automatically. This can cause performance issues on the host on which ProactiveNet is installed.
To avoid this problem, you need to configure automatic rolling of logs on the ProactiveNet host. If you are operating in an HA environment, you need to make the configuration changes on both the primary server and the secondary server.
pw p e httpd
command. Note
Ensure that you place the backed up file in a folder outside the ProactiveNet installation directory.
#CustomLog logs/ajp.log combined
For each of the log files under <Proactivenet_Install_Location>\pw\apache\logs\ (for which you want to configure automatic rolling), add the following line at the top of the httpd-proxy.conf file:
(Windows) CustomLog "|<Proactivenet_Install_Location>\pw\apache\bin\rotatelogs.exe -n 10 logs\<logFileName> 10M" combined
(Linux) CustomLog "|<Proactivenet_Install_Location>/pw/apache/bin/rotatelogs -n 10 logs/<logFileName> 10M" combined
In the preceding line, the following definitions apply:
CustomLog "|<Proactivenet_Install_Location>\pw\apache\bin\rotatelogs.exe -n 10 logs\ajp.log 10M" combined
CustomLog "|<Proactivenet_Install_Location>\pw\apache\bin\rotatelogs.exe -n 10 logs\deflate.log 10M" combined
CustomLog "|<Proactivenet_Install_Location>\pw\apache\bin\rotatelogs.exe -n 10 logs\ssl_request_log 10M" combined
CustomLog "|<Proactivenet_Install_Location>\pw\apache\bin\rotatelogs.exe -n 10 logs\error_log 10M" combined
CustomLog "|<Proactivenet_Install_Location>\pw\apache\bin\rotatelogs.exe -n 10 logs\error.log 10M" combined
CustomLog "|<Proactivenet_Install_Location>\pw\apache\bin\rotatelogs.exe -n 10 logs\install.log 10M" combined
pw p s httpd
command.
4 Comments
Giles Day
note your current example has some funky quotes and the slashes needed to be the other way, and didnt need the proactivenet install location
CustomLog "|bin/rotatelogs.exe -n 10 logs/ajp.log 10M" combined
CustomLog "|bin/rotatelogs.exe -n 10 logs/deflate.log 10M" combined
CustomLog "|bin/rotatelogs.exe -n 10 logs/ssl_request_log 10M" combined
CustomLog "|bin/rotatelogs.exe -n 10 logs/error_log 10M" combined
CustomLog "|bin/rotatelogs.exe -n 10 logs/error.log 10M" combined
CustomLog "|bin/rotatelogs.exe -n 10 logs/install.log 10M" combined
Priyanka Nanwani
Hello! Thank you for your comment.
The current example is for the Windows OS. Checking about the location.
Giles Day
CustomLog "|<Proactivenet_Install_Location>\pw\apache\bin\rotatelogs.exe -n 10 logs\ssl_request_log 10M" combined
CustomLog *This quote is not normal* “|<Proactivenet_Install_Location>\pw\apache\bin\rotatelogs.exe -n 10 logs\error_log 10M" combined
https://practicaltypography.com/straight-and-curly-quotes.htm
having the quotes as copy and pasted did not work and gave errors on a Windows server
Priyanka Nanwani
Thanks for pointing the quotes. Not sure why they were curly. This is corrected now.
Regarding the location: In some environments, we found that it was necessary to provide the location, therefore the reference.