# Help with monitoring MBeans with jmx plugin of logstash

**URL:** https://discuss.elastic.co/t/help-with-monitoring-mbeans-with-jmx-plugin-of-logstash/63624
**Category:** Logstash
**Created:** [October 21, 2016, 2:43pm UTC](https://discuss.elastic.co/t/help-with-monitoring-mbeans-with-jmx-plugin-of-logstash/63624 "2016-10-21T14:43:55Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![harperkej](https://avatars.discourse-cdn.com/v4/letter/h/7ab992/32.png) [@harperkej](https://discuss.elastic.co/u/harperkej)
#### Post date: [October 21, 2016, 2:43pm UTC](https://discuss.elastic.co/t/help-with-monitoring-mbeans-with-jmx-plugin-of-logstash/63624/1 "2016-10-21T14:43:55Z")

</div>

Hi everyone 🙂  
I am using logstash input jmx plugin to retrieve some parameters from a Java application.

The idea it to get two or more attributes from on MBean through jmx plugin and to show those attributes in Kibana UI but within the same data table, but the query actually is generating me three events(i am asking to get the value of three attributes) and that's not suitable for me. I want the query to trigger only one event and that event would contain all the values of these attributes.

Here is the logstash input configuration file =\>  
input{  
jmx{  
path =\> "/apps/logstash\_conf/jmxconf"  
type =\> "jmx",  
polling\_frequency =\> 15  
}  
}

Json JMX configuration file =\>

{  
"host":"localhost",   
"port":19002,  
"queries":[  
{  
"object\_name":"com..ts:service=ServiceManager,serviceType=PlcSocketConnector,serviceName=_,name=_",  
"attributes":["ConnectorConnectionState","SocketDriverForeignHostPort","SocketDriverForeignHostAddr"],  
"object\_alias":"serviceName=${serviceName}.${name}"  
}  
]  
}

Logstash with above configurations is generating me three events...i want only one event to be generated and that event would contain all the three attributes configured on query on Json JMX configuration.

If someone has encounter on such situations or is aware of any workaround i would truly appreciate the help.

Thank you in advance 🙂

---

<div class="post-metadata">

### Author: ![Raphi\_Gloor](https://avatars.discourse-cdn.com/v4/letter/r/48db29/32.png) [@Raphi\_Gloor](https://discuss.elastic.co/u/Raphi_Gloor)
#### Post date: [February 17, 2017, 1:42pm UTC](https://discuss.elastic.co/t/help-with-monitoring-mbeans-with-jmx-plugin-of-logstash/63624/2 "2017-02-17T13:42:32Z")

</div>

Have you found a workaround? Stuck in exactly the same situation.

---

<div class="post-metadata">

### Author: ![Raphi\_Gloor](https://avatars.discourse-cdn.com/v4/letter/r/48db29/32.png) [@Raphi\_Gloor](https://discuss.elastic.co/u/Raphi_Gloor)
#### Post date: [February 17, 2017, 2:12pm UTC](https://discuss.elastic.co/t/help-with-monitoring-mbeans-with-jmx-plugin-of-logstash/63624/3 "2017-02-17T14:12:46Z")

</div>

Maybe possible with the logstash-filter-aggregate plugin

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [July 6, 2017, 4:28am UTC](https://discuss.elastic.co/t/help-with-monitoring-mbeans-with-jmx-plugin-of-logstash/63624/4 "2017-07-06T04:28:31Z")

</div>


