
(Optional) If you want to change the logging level, select a new level from the drop-down menu.Go to the Splunk Add-on for Tomcat's landing page, either by clicking the name of this add-on on the left navigation banner on your on the Splunk software's home page or by going to Manage Apps, then clicking Launch App in the row for the Splunk Add-on for Tomcat.Optional Splunk Web configurations Configure logging level using Splunk Web Restart the Splunk platform to put these configuration changes into effect. To collect CIM-compatible data using the tomcat:access:log:splunk sourcetype, you must Configure the Splunk recommended fields in the Splunk add-on for Tomcat.Ĥ. Modify the directory name as per the actual directory your Tomcat files are stored in. Create an nf file in $SPLUNK_HOME/etc/apps/Splunk_TA_tomcat/local.Ģ. Note: If you would also like to collect thread information, you must use the Configuration/Inputs page for the Splunk Add-on for Tomcat.ġ. If you would like to collect only local Tomcat log files, you can edit nf directly to create the file monitor inputs instead of using the Settings > Data Inputs > Files & directories page. If you see such message, verify the information you have entered and try again.Ĭonfigure file monitor inputs in nf If you have entered incorrect credentials or an incorrect url, an error message appears on the dialog box.If the entered information is authenticated successfully, the add-on saves the account information.Note: JMX remote must be enabled on the Tomcat server in order to establish the JMX connection. In the Add Account dialog box, fill in the required fields:Įnter the URL of your Tomcat instance in service:jmx:rmi:///jndi/rmi://:/jmxrmi format.



If you want to collect performance data from Tomcat servers you need to configure a JMX connection to the Tomcat server in the Splunk Add-on for JMX as described in Configure JMX inputs for the Splunk Add-on for Tomcat. If you want to collect thread info for all threads from Tomcat servers, you must complete the Splunk Add-on for Tomcat Input page to configure the dumpAllThreads input. If you want to collect local Tomcat logs only, you can perform this configuration using either the Settings > Data Inputs > Files & directories page or by editing the nf file directly. After you have installed the Splunk Add-on for Tomcat, you need to configure the inputs for the add-on.
