Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Tomcat is an Apache Server containing many services (in this case the components that make up DualShield.  The logs can be enabled on any of these services, however, typically we would enable them on just two; SSO  and DAC

...

Preparation

You will be making changes to the server.xml file which is located in C:\Program Files\Deepnet DualShield\tomcat\conf.  It is a good idea to make a backup copy of this file before commencing.

Enable Access logs for SSO and DAC

1) Stop the DualShield Server Service


Image Added


2) Go to C:\Program Files\Deepnet DualShield\tomcat\conf

3) Edit server.xml in your preferred text editor and search for <Engine defaultHost="SSO" name="SSO">


Image Added


4) Now search for AccessLogValve

Image Added


5) You now need to modify this entry


Image Added


First uncomment by deleting these two lines above and below


Image Added



               Second, change the prefix to “localhost_SSO_access_log.”

               Thirdly modify pattern to "%h %l %u %t &quot;%r&quot; %s %b &quot;%{Referer}i&quot; &quot;%{User-Agent}i&quot; &quot;%{X-Dual-Tab-Id}i&quot; &quot;%{Cookie}i&quot; &quot;%{X-Forwarded-For}i&quot;"

 

So the whole thing should now look like this…


Image Added


  1. Now Search for <Engine defaultHost="localhost" name="Catalina">


Image Added


  1. Search again for AccessLogValve


Image Added


  1. Carry out same changes as per Step 6) but for the Prefix use “localhost_DAC_access_log.”
  2. Save the server.xml file
  3. Restart the DualShield Server Service
  4. Wait for Service to fully start (CPU level low; Memory high)


Image Added


  1. Check in the Tomcat Logs to see if a localhost_SSO_ access_log and localhost_dac_access_log file gets created.