All Apps and Add-ons

Get JMX Operations defined in MBeans in a Splunk view.

cralgomi
Engager

Hi All,

I am probably missing something obvious here, but I have set up in the config.xml file a MBean defining its two exposed operations, I am now wondering how to get data from these particular operations back in a Splunk view (by the way, this MBean is not exposing any attributes).

Thanks in advance!

Carlos

0 Karma

Damien_Dallimor
Ultra Champion

There is an example of invoking MBean operations in jmx_ta/bin/config/examples/config_operations_example.xml

<mbean domain="myAppDomain" properties="type=foo">

<!-- invoke operation with no arguments and write out result-->
<operation name="getSystemTime" outputname="systime" />

 <!-- invoke operation with int arguments and write out result-->
<operation name="doMultiply" outputname="multiplied">
  <parameter value="4" type="int" />
  <parameter value="6" type="int" />
</operation>

 <!-- invoke operation with several argument types and write out result-->
<operation name="concatentateArgs" outputname="concat">
  <parameter value="Hello" type="string" />
  <parameter value="World" type="string" />
  <parameter value="1.2" type="double" />
  <parameter value="true" type="boolean" />
</operation>

 <!-- invoke operation with no arguments and no result is returned-->
<operation name="someMethod"/>


</mbean>
0 Karma

cralgomi
Engager

Thanks a lot. | table ouputvarnname was the answer I was looking for.

0 Karma

Damien_Dallimor
Ultra Champion

Let's take this example :



Then :

index=foo mbean_domain=myAppDomain mbean_property_type=foo | table systime

cralgomi
Engager

I am aware of that example. What I am not sure is how to read from the outputname on a view.

0 Karma
Get Updates on the Splunk Community!

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

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