Monday, January 22, 2018

How to disable the Tomcat Access log

The logging can be disabled in the following way:
  • Go to InstallationDirectoory/tomcat/conf.
  • Make a copy of server.xml file.
  • Change following line of the server.xml:(if user has Admin Permission then Okay, otherwise the current user has to get the modification permission) 

    <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" prefix="localhost_access_log." suffix=".txt" pattern="common" resolveHosts="false" /> 

    into: 

    <!--<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" prefix="localhost_access_log." suffix=".txt" pattern="common" resolveHosts="false" /> --> 
  • Restart Tomcat in order to make the change available.

No comments:

Post a Comment

Recent Post

Databricks Delta table merge Example

here's some sample code that demonstrates a merge operation on a Delta table using PySpark:   from pyspark.sql import SparkSession # cre...