Getting logstash-input-jmx up and running


(Bill Youngman) #1

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


(Bill Youngman) #2

Figured it out.

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


(system) #3

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