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
Follow these steps to set up log collection from Apache Tomcat.
Locate the local Tomcat access log directory.
- Install the BindPlane Log Agent on the host system.
- Login to BindPlane and select the Logs tab.
- Select the Sources tab.
- In the top-right portion of the screen, click on the Add Source Configuration button
Add Source Configuration Button
- Choose Apache Tomcat
- 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.