JMX plugin, multiple input in one file

Hi

I was wondering if there's possibility to add multiply hosts and jmx points to my jmx logstash config file. Something like that:
[{
"host" : "abc1",
"port" : 3502,
"alias" : "app1",
"queries" : [
{
"object_name" : "java.lang:type=OperatingSystem",
"object_alias" : "System"
},
{
"object_name" : "java.lang:type=Memory",
"object_alias" : "System"
}]
},
{
"host" : "abc2",
"port" : 3502,
"alias" : "app2",
"queries" : [
{
"object_name" : "java.lang:type=OperatingSystem",
"object_alias" : "System"
},
{
"object_name" : "java.lang:type=Memory",
"object_alias" : "System"
}]
}]

Of course it didn't work, is there way to make it work?:smiley:

link to plugin doc: https://www.elastic.co/guide/en/logstash/current/plugins-inputs-jmx.html

Cheers KM

1 Like

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