How do I turn off the localhost_access_log log?
search cancel

How do I turn off the localhost_access_log log?

book

Article ID: 160299

calendar_today

Updated On:

Products

Data Loss Prevention Enforce

Issue/Introduction

There is this log, localhost_access_log.<year>-<month>-<day>.txt that records all of the URLs accessed for the Enforce server. 

I don't want it, how can I turn it off?

Environment

DLP 15.8, 16.0

Resolution

To turn off the access log entries from tomcat update the server.xml file from the below location on Enforce server i.e.

1. Open the <DLP_Enforce_Installed_Dir>\Symantec\DataLossPrevention\EnforceServer\15.8.00000\Protect\tomcat\conf\server.xml and remove the line that begins with

<Valve className=

i.e.

<Valve className="org.apache.catalina.valves.AccessLogValve"
          directory="C:/ProgramData/Symantec/DataLossPrevention/EnforceServer/15.8.00000/logs/tomcat" prefix="localhost_access_log"
          suffix=".txt"
        pattern="%h %l %{currentUser}s %t &quot;%r&quot; %s %b &quot;%{Referer}i&quot; &quot;%{User-Agent}i&quot; %{com.vontu.manager.session.label}s %D %S" resolveHosts="false"/>

2. Save the file

3. Restart the manager.