Monitor Tomcat using Splunk Enterprise in RWS Development Environment
Categories:
2 minute read , 1.5 minutes provision
Projects:
c2platform/rws/ansible-gis
,
c2platform.core
,
c2platform.mw
Overview
This tutorial demonstrates the setup of a Tomcat node on Ubuntu 22 and
intallation of Jolokia which is then used for Java monitoring using Splunk. The
setup of this node is similar to that of gsd-tomcat1
and gsd-tomcat2
as
described in
Tomcat SSL/TLS and Java Keystore and TrustStore Configuration for Linux and Windows Hosts
witc the difference that this node is created for the purpose of monitoing
Node | OS | Distribution | Provider |
---|---|---|---|
gsd-tomcat3 | Linux | Ubuntu 22 | LXD |
Prerequisites
- Setup the RWS Development Environment on Ubuntu 22: Install Ansible, Vagrant, LXD, Virtualbox and clone the project directory.
- Setting up Splunk Enterprise in RWS Development Environment: This guide aids the GIS Platform team in integrating and experimenting with Splunk Enterprise monitoring within the RWS development environment.
With the RWS development environment ensure the reverse proxy node and the
vagrant up gsd-rproxy1 gsd-splunk
Setup
To initialize the Tomcat nodes gsd-tomcat3
, execute the following command:
vagrant up gsd-tomcat3
Verify
Start FireFox using your FireFox profile ( see Configure a FireFox Profile ) and you should be able to navigate to the links below and see the “Hello World” application. You should not see any SSL/TLS certificate error messages.
- https://gsd-tomcat3.internal.c2platform.org:8443/helloworld/
- https://gsd-tomcat3.internal.c2platform.org:8443/jolokia/
The second link should show
Jolokia
output. The output should be similar to
jolokia.json
Setup Monitoring
Now that we have node gsd-tomcat
up and running, we want to get the Tomcat logging into splunk. Tomcat logs are created in directory /opt/tomcat/tomcat/logs/
Additional Information
For additional insights and guidance:
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.