Skip to content

Configuring Server Access Log

Endi S. Dewata edited this page Apr 19, 2024 · 2 revisions

Overview

The access log configuration is located at /var/lib/pki/pki-tomcat/conf/server.xml:

<Server ...>
  <Service ...>
    <Engine ...>
      <Host ...>

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

      </Host>
    </Engine>
  </Service>
</Server>

The logs will be stored in /var/lib/pki/pki-tomcat/logs/localhost_access_log.YYYY-MM-DD.txt.

Clone this wiki locally