Configure JMX inputs for the Splunk Add-on for IBM WebSphere Application Server¶
The Splunk Add-on for IBM WebSphere Application Server relies on the Splunk Add-on for Java Management Extensions (JMX) to collect JMX metrics. The Splunk Add-on for IBM WAS provides a jmx_templates.conf that the Splunk Add-on for JMX can invoke.
Note
To collect JMX data from an IBM WebSphere application server, you need to install the IBM JDK or JRE, which you can download from https://www.ibm.com/support/pages/java-sdk. Put the JDK or JRE bin directory in the system path to make sure that the JMX data collection uses this IBM version of the Java runtime.
-
Install 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.
-
Go to your WebSphere installation directory and navigate to
$WAS_ROOT/WebSphere/AppServer/runtimes. -
Copy the following files to
$SPLUNK_HOME/etc/apps/Splunk_TA_jmx/bin/lib: -com.ibm.ws.admin.client_*.jar-com.ibm.ws.ejb.thinclient_*.jar-com.ibm.ws.orb_*.jar -
After copying, verify the files successfully copied to your
$SPLUNK_HOME/etc/apps/Splunk_TA_jmx/bin/libdirectory before continuing. For example, if you run the commandls /opt/splunk/etc/apps/Splunk_TA_jmx/bin/lib/com.ibm*, you should see something similar to:
/opt/splunk/etc/apps/Splunk_TA_jmx/bin/lib/com.ibm.ws.admin.client_8.5.0.jar
/opt/splunk/etc/apps/Splunk_TA_jmx/bin/lib/com.ibm.ws.ejb.thinclient_8.5.0.jar
/opt/splunk/etc/apps/Splunk_TA_jmx/bin/lib/com.ibm.ws.orb_8.5.0.jar
-
Restart the Splunk platform.
-
Go to Splunk Web and access the configuration pages for the Splunk Add-on for JMX, either by clicking on the name in the left nav, or going to Apps > Manage Apps, then clicking Launch app in the row for Splunk Add-on for JMX.
-
Select Add Server to add a new JMX server.
-
Enter a Name and an optional JVM Description for your server.
-
For Connection Type, choose Use URL directly from the dropdown menu.
-
Enter the URL in this format:
service:jmx:iiop://<hostname>/jndi/corbaname:iiop:<hostname>:9100/WsnAdminNameService#JMXConnector.
Note
The

-
Click Create.
-
Navigate to the task configurations by clicking Configurations > Tasks.
-
Click Add Task to create a new JMX task.
-
Enter a Name and optional Description for your task, then select the server that you just configured.
-
On the Templates tab, select one or more of the predefined templates to collect the data that you want.
-
On the Settings tab, set the source type to
ibm:was:jmx. -
Click Create to enable your JMX input.
For more information about configuring JMX inputs, refer to Configure inputs for the Splunk Add-on for JMX in the Splunk Add-on for Java Management Extensions manual.