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 section

Image Added


5a) Start by uncommenting this section by deleting these two lines above and below

Image Added


5b) Next, modify the following two parameters:

prefix="localhost_sso_access_log"
pattern="%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;"

 5c) The modified section should now look like this…


Image Added


6) Now Search for <Engine defaultHost="localhost" name="Catalina">

Image Added


7) Search again for AccessLogValve

Image Added

8)Carry out the same changes as per Step 5a)(above)but for 5b) use “localhost_DAC_access_log” as the prefix. The pattern will remain as suggested in 5b).

9)Save the server.xml file

10)Start the DualShield Server Service

11) Wait for the Service to fully start (CPU level low; Memory high)

Image Added


12) Check in the Tomcat Logs to see if a localhost_sso_ access_log and localhost_dac_access_log file get created.

Image Added