All Apps and Add-ons

adding multiple JVM hosts in config.xml

sramiz
Path Finder

hello.

whats the correct syntax of adding multple JVM instances in config.xml or its one config per jvm ( i doubt it though).

here's what my config.xml looks like

<jmxserver host="devappa40" jvmDescription="Dev_Portal" jmxport="5002">
<jmxserver host="devappb12" jvmDescription="Dev_Switch" jmxport="9192">

I can see the first host but not the 2nd one.

any help is appreciated...

0 Karma
1 Solution

Damien_Dallimor
Ultra Champion
0 Karma

Damien_Dallimor
Ultra Champion

The app ships with examples of how to declare multiple jmx server elements.

https://github.com/damiendallimore/SplunkModularInputsJavaFramework/blob/master/jmx/bin/config/examp...

0 Karma

harsmarvania57
SplunkTrust
SplunkTrust

Hi sramiz,

You need use / at the end of line before > , correct syntax is as below:

<jmxserver host="devappa40" jvmDescription="Dev_Portal" jmxport="5002" />
<jmxserver host="devappb12" jvmDescription="Dev_Switch" jmxport="9192" />
0 Karma
Get Updates on the Splunk Community!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...