Anytime Help Center

Disabling Local Host Access Logs in Tomcat

Rating

Disabling Local Host Access Logs in Tomcat


By default, one of the enabled forms of logging in Apache Tomcat is the Local Host Access Log.  This log tracks every connection made to the RMS server.  That means both masters and people, and every master connects every 15 seconds. 

 

This can add up to a lot of logs that can quickly overwhelm the hard drive space of your server.  The logs are not needed for RMS to work, you can keep them if you would like for security purposes, but for the vast majority of RMS users this can be disabled in order to not fill you hard drive.  Here are the instructions for disabling local host access logging:

 

  1. Stop Tomcat
  2. Browse to C:\Program Files\Apache Software Foundation\Tomcat 8.5\conf
  3. Edit the server.xml file
  4. Locate the following section:
    <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" prefix="localhost_access_log" suffix=".txt" pattern="%h %l %u %t &quot;%r&quot; %s %b" />
  5. Comment out this section by adding <!-- to the beginning of the section and --> to the end of the section
  6. Save and close server.xml
  7. Start Tomcat

     

Any previously collected log files may be deleted in order to save some extra hard drives space.

Downloads

Product

 

Topic

Configuring

Related Articles

Last modified at 10/15/2024 4:10 PM by PRO Knowledge Base
Top