Configure JMX inputs for the Splunk Add-on for JBoss¶
The Splunk Add-on for JBoss relies on the Splunk Add-on for JMX to collect performance metrics for local or remote JBoss servers using MBean attributes. The Splunk Add-on for JBoss provides a jmx_templates.conf that the Splunk Add-on for JMX can invoke.
If you do not want to collect performance metrics for the JBoss server and only want to collect local logs or thread information from JMX MBean operations, you do not need to perform this configuration.
Prerequisite: You msust install Java Runtime 1.7 or later on the same machine as the Splunk Add-on for JMX. You also need to create a Management User or Application User to establish the JMX connection to the JBoss server. See Enable remote management through JMX for information.
-
Install the latest version of the Splunk Add-on for JMX on the Splunk Enterprise instance responsible for JMX data collection, usually a heavy forwarder. This add-on can collect JMX metrics locally or remotely.
-
Copy the following JBoss .jar files to the Splunk Add-on for JMX
bin/libfolder:
jboss-cli-client.jarjbossws-api-1.0.1.Final.jar-
jbossws-common-2.1.0.Final.jarNote
If you are using version 3.1.0 of the Splunk Add-on for JMX you do not need to copy these .jar files as the files are already included.
a. Go to your JBoss installation directory and navigate to
$JBOSS_HOME/bin/client/jboss-cli-client.jar.b. Copy the
jboss-cli-client.jarfile to$SPLUNK_HOME/etc/apps/Splunk_TA_jmx/bin/lib.c. Download the
jbossws-api-1.0.1.Final.jarandjbossws-common-2.1.0.Final.jarfiles from the MVN repository at http://mvnrepository.com/artifact/org.jboss.ws/jbossws-api/1.0.1.Final and http://mvnrepository.com/artifact/org.jboss.ws/jbossws-common/2.1.0.Final, respectively.d. Copy the
jbossws-api-1.0.1.Final.jarandjbossws-common-2.1.0.Final.jarfiles to$SPLUNK_HOME/etc/apps/Splunk_TA_jmx/bin/lib.
-
After copying, verify the files successfully copied to your
$SPLUNK_HOME/etc/apps/Splunk_TA_jmx/bin/libdirectory before continuing. -
Restart the add-on.
-
Go to Splunk Web and access the configuration pages for the Splunk Add-on for JMX, either by clicking Splunk Add-on for JMX in the left nav, or going to Apps > Manage Apps, then clicking Launch app in the row for Splunk Add-on for JMX.
-
Click Add to add a new JMX server.
-
Enter a Name and an optional JVM Description for your JBoss server.
-
For Connection Type, select one of the following from the dropdown menu:
- Use URL directly - Example:
service:jmx:remoting-jmx://<IP_Address>:9999 (JBoss EAP 6.x server)service:jmx:remote+http://<IP_Address>:9990 (JBoss EAP 7.x server)The JBoss server can be local (installed on the same server as the Splunk Add-on for JMX) or remote.
- Customized script
The JBoss server must be installed on the same server as the Splunk Add-on for JMX.
- Process id
The JBoss server must be installed on the same server as the Splunk Add-on for JMX.
- Process file
The JBoss server must be installed on the same server as the Splunk Add-on for JMX.
-
Click Add.
-
Navigate to the input configurations by clicking Configurations > Inputs.
-
Click Create New Input to create a new JMX input.
-
Enter a Name and optional Description for your input, then select the server that you just configured in the Servers tab.
-
On the Templates tab, select one or more of the predefined templates for JBoss to collect the data that you want.
-
Enter
jboss:jmxin the Source Type text box. -
Click Add to enable your JMX input.
-
Validate that data is coming in by searching for:
Search
sourcetype=jboss:jmx
For more information about configuring JMX inputs, refer to Configure the inputs for the Splunk Add-on for JMX in the Splunk Add-on for Java Management Extensions manual.