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.


Apache Tomcat Access Logs Example


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.


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.

Logs Tab

  1. Select the Sources tab.

Sources Tab

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

Add Source Configuration Button

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

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.