# Getting logstash-input-jmx up and running

**URL:** https://discuss.elastic.co/t/getting-logstash-input-jmx-up-and-running/73526
**Category:** Logstash
**Created:** [February 1, 2017, 1:56pm UTC](https://discuss.elastic.co/t/getting-logstash-input-jmx-up-and-running/73526 "2017-02-01T13:56:18Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![byoungman](https://avatars.discourse-cdn.com/v4/letter/b/838e76/32.png) [@byoungman](https://discuss.elastic.co/u/byoungman)
#### Post date: [February 1, 2017, 1:56pm UTC](https://discuss.elastic.co/t/getting-logstash-input-jmx-up-and-running/73526/1 "2017-02-01T13:56:18Z")

</div>

I am new to the entire framework and one of the things that we want to do at my company is to use this jmx plug-in to monitor the JVM Metrics on our various Tomcat servers. So I was able to successfully get the plug-in installed but not sure if I'm going about configuring it the right way.

In the logstash.conf file I have jmx configured as such:  
input {  
jmx  
{  
path =\> "D:\LS\logstash-5.1.1\config\jmx.conf"  
polling\_frequency =\> 60  
type =\> "jmx"  
}  
}

In the jmx.conf file I have this:  
"host" : ip address of the machine I want to connect to  
"port" : 1099  
"queries" : [  
{  
//Required, the object name of Mbean to request  
"object\_name" : "java.lang:type=Memory",  
//Optional, use this alias in the metrics value instead of the object\_name  
"object\_alias" : "Memory"  
}, {  
"object\_name" : "java.lang:type=Runtime",  
//Optional, set of attributes to retrieve. If not set retrieve  
//all metrics available on the configured object\_name.  
"attributes" : ["Uptime", "StartTime"],  
"object\_alias" : "Runtime"  
}, {  
//object\_name can be configured with \* to retrieve all matching Mbeans  
"object\_name" : "java.lang:type=GarbageCollector,name=_",  
"attributes" : ["CollectionCount", "CollectionTime"],  
//object\_alias can be based on specific value from the object\_name thanks to ${}.  
//In this case ${type} will be replaced by GarbageCollector...  
"object\_alias" : "${type}.${name}"  
}, {  
"object\_name" : "java.nio:type=BufferPool,name=_",  
"object\_alias" : "${type}.${name}"  
}  
]

I'm not sure if this is running correctly or not - not sure how to test it.  
I know I've included a lot of information but I wanted to try and give as much detail as possible.

TIA,  
Bill

---

<div class="post-metadata">

### Author: ![byoungman](https://avatars.discourse-cdn.com/v4/letter/b/838e76/32.png) [@byoungman](https://discuss.elastic.co/u/byoungman)
#### Post date: [February 17, 2017, 3:23pm UTC](https://discuss.elastic.co/t/getting-logstash-input-jmx-up-and-running/73526/2 "2017-02-17T15:23:40Z")

</div>

Figured it out.

Started from scratch and did a complete uninstall/reinstall of the framework and was able to get it up and running.

---

<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: [March 17, 2017, 3:24pm UTC](https://discuss.elastic.co/t/getting-logstash-input-jmx-up-and-running/73526/3 "2017-03-17T15:24:03Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
