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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...