Upgrade the Splunk Add-on for JMX
See the following upgrade options:
Upgrade to version 5.4.0 and above from version 5.2.2 or below
- Disable all currently configured inputs.
- In Splunk Web, navigate to the Manage Apps page.
- Navigate to the Splunk Add-on for Java Management Extensions and click the link to upgrade to the latest version of the add-on.
- SSH into the Splunk machine where the add-on is installed.
- Navigate to the
$SPLUNK_HOME/etc/apps/Splunk_TA_jmx/bin/lib
directory on the heavy forwarder. - Delete the following files, if they exist:
fastjson-1.2.76.jar
fastjson-1.2.60.jar
fastjson-1.2.5.jar
commons-discovery-0.2.jar
commons-logging-1.1.1.jar
jakarta.activation.jar
log4j-api-2.11.1.jar
log4j-core-2.11.1.jar
log4j-api-2.14.1.jar
log4j-core-2.14.1.jar
log4j-api-2.15.0.jar
log4j-core-2.15.0.jar
log4j-api-2.16.0.jar
log4j-core-2.16.0.jar
xercesImpl.jar
- Restart your Splunk platform instance.
- Enable the inputs.
Upgrade to version 5.2.2 from version 5.2.1 or below
- Disable all currently configured inputs.
- In Splunk Web, navigate to the Manage Apps page.
- Navigate to the Splunk Add-on for Java Management Extensions and click the link to upgrade to the latest version of the add-on.
- SSH into the Splunk machine where the add-on is installed.
- Navigate to the
$SPLUNK_HOME/etc/apps/Splunk_TA_jmx/bin/lib
directory on the heavy forwarder. - Delete the following files, if they exist:
fastjson-1.2.60.jar
fastjson-1.2.5.jar
commons-discovery-0.2.jar
commons-logging-1.1.1.jar
jakarta.activation.jar
log4j-api-2.11.1.jar
log4j-core-2.11.1.jar
log4j-api-2.14.1.jar
log4j-core-2.14.1.jar
log4j-api-2.15.0.jar
log4j-core-2.15.0.jar
xercesImpl.jar
- Restart your Splunk platform instance.
- Enable the inputs.
Upgrade to version 5.2.1 from version 5.2.0 or below
- Disable all currently configured inputs.
- In Splunk Web, navigate to the Manage Apps page.
- Navigate to the Splunk Add-on for Java Management Extensions and click the link to upgrade to the latest version of the add-on.
- SSH into the Splunk machine where the add-on is installed.
- Navigate to the
$SPLUNK_HOME/etc/apps/Splunk_TA_jmx/bin/lib
directory on the heavy forwarder. - Delete the following files, if they exist:
fastjson-1.2.60.jar
fastjson-1.2.5.jar
commons-discovery-0.2.jar
commons-logging-1.1.1.jar
jakarta.activation.jar
log4j-api-2.11.1.jar
log4j-core-2.11.1.jar
log4j-api-2.14.1.jar
log4j-core-2.14.1.jar
junit-4.11.jar
xercesImpl.jar
- Restart your Splunk platform instance.
- Enable the inputs.
Upgrade to version 5.2.0 from version 5.1.0 or below
- Disable all currently configured inputs.
- In Splunk Web, navigate to the Apps page.
- Navigate to the Splunk Add-on for Java Management Extensions and click the link to upgrade to the latest version of the add-on.
- Accept the terms and agreements.
- Log in with your Splunk.com credentials.
- Restart your Splunk platform deployment.
- SSH in to the Splunk machine where the add-on is installed.
- Navigate to the
$SPLUNK_HOME/etc/apps/Splunk_TA_jmx/bin/lib
directory. - Delete the following files, if they exist:
-
fastjson-1.2.60.jar
-
fastjson-1.2.5.jar
-
commons-discovery-0.2.jar
-
commons-logging-1.1.1.jar
-
jakarta.activation.jar
log4j-api-2.11.1.jar
log4j-core-2.11.1.jar
junit-4.11.jar
xercesImpl.jar
- Restart your Splunk platform instance.
- Enable the inputs.
Considerations if upgrading from version 3.0.2
If you are upgrading from version 3.0.2 or earlier of the Splunk Add-on for JMX, note that the assignment of the host
and source
fields has changed since the 3.1.0 release as noted in ADDON-5508. These changes may cause existing searches to no longer work. You will need to revise your SPL searches to use the correct host
or source
if any of your SPL searches depend on host
or source
.
Migration Guide
The Splunk Add-on for JMX is intended to replace the add-on components of Monitoring of Java Virtual Machines with JMX. Splunk built the Splunk Add-on for JMX as a separate add-on, so you cannot use the update function in your existing installation of the Monitoring of Java Virtual Machines with JMX app to install and use this add-on. The Splunk Add-on for JMX is compatible with the old app's inputs.conf
and XML configuration files, so you can manually upgrade and continue to use your old configurations.
Some features of the Monitoring of Java Virtual Machines with JMX app are not available in this add-on.
- Although the element
formatter
still exists for backwards compatibility, the add-on does not use it. Now the add-on indexes events in JSON format for better field extractions. - Although the attribute
filterImplementationClass
still exists in elementnotification
, the attribute is not used in this version.
Migration steps
This add-on does not work with the Monitoring of Java Virtual Machines with JMX app on the same Splunk Enterprise instance, so you must follow these migration steps to upgrade.
If you do not want to keep your old configurations and plan to create new data inputs, you can just remove the Monitoring of Java Virtual Machines with JMX app and install this add-on.
If you want to keep your old configurations, follow these steps.
- Find the folder where the Monitoring of Java Virtual Machines with JMX app is installed. By default, it is
$SPLUNK_HOME/etc/apps/jmx_ta
. - Back up your XML configuration files in the app folder or its sub-folders.
- Back up your
inputs.conf
in thelocal
folder. - If you changed your
inputs.conf
in thedefault
folder, merge your changes into your backup copy of yourlocal/inputs.conf
. - Backup all the other files in the
local
folder if you need them. - Uninstall the old app, or delete the app folder.
- Install the Splunk Add-on for Java Management Extensions.
- Put your backed up copy of your
local/inputs.conf
into$SPLUNK_HOME/etc/apps/Splunk_TA_jmx/local/
. - Put your backed up XML configuration files into
$SPLUNK_HOME/etc/apps/Splunk_TA_jmx/bin/config/
. - Check the value of configuration
config_file_dir
in yourlocal/inputs.conf
.- If you did not set any value for
config_file_dir
in the stanza[jmx]
in the old app'sinputs.conf
, the default value is now$SPLUNK_HOME/etc/apps/Splunk_TA_jmx/bin/config/
. If you did set it, please change it to$SPLUNK_HOME/etc/apps/Splunk_TA_jmx/bin/config/
. - Check the value of configuration
config_file_dir
in all your JMX data inputs in every app using those XML files. Make sure each data input'sconfig_file_dir
is set to$SPLUNK_HOME/etc/apps/Splunk_TA_jmx/bin/config/
.
- If you did not set any value for
- The default index is now the default index of Splunk Enterprise, instead of
jmx
. Also, the add-on does not include the indexjmx
index. If you want to use it, you need to add it manually. You also need to manually setindex=jmx
in all your JMX data inputs if you were using the old default value and want to continue to usejmx
.
Install the Splunk Add-on for JMX | Prepare JMX servers for the Splunk Add-on for JMX |
This documentation applies to the following versions of Splunk® Supported Add-ons: released
Feedback submitted, thanks!