Apache Tomcat

Logs Collected

The two types of logs collected are Access and Catalina logs. Creating Log based metrics within Stackdriver can allow for historical analysis later to determine if there are any unusual trends within your logs. Below are examples of how the logs would look within Google Stackdriver Logging.

1958

Apache Tomcat Access Logs Example

1932

Apache Tomcat Catalina Logs Example

Supported Versions

Apache Tomcat: 7, 8, 8.5

Log Collection Setup

Follow these steps to set up log collection from Apache Tomcat.

Pre-requisites

Locate the local Tomcat access log directory.

Configure a Apache Tomcat Source

  1. Install the BindPlane Log Agent on the host system.
  2. Login to BindPlane and select the Logs tab.
284

Logs Tab

  1. Select the Sources tab.
249

Sources Tab

  1. In the top-right portion of the screen, click on the Add Source Configuration button
576

Add Source Configuration Button

  1. Choose Apache Tomcat
  2. Fill out the Tomcat access log path.
988

Apache Tomcat Log Configuration Form

📘

Tomcat Access Log locations

To find your Tomcat logging location you can check your Tomcat conf file.

For more information, Click here.