Single jmx configuration json file possible for multiple servers to connect to logstash


Currently i have configured single jmx json file for a single server in logstash jmx input configuration as below.

"host" : "localhost" ,
"port" : 9000,
"alias" : "jmx.elasticsearch" ,
"queries" : [
"object_name" : "java.lang:type=Memory" ,
"object_alias" : "Memory"

Is it possible to add more hosts and ports in the same json file?

No. The path option on a jmx input points to a directory. Each file in the directory describes the metrics that should be fetched from a single JVM. You need one file per JVM.

Thank You. Is there any better alternative for Jmx then logstash input which is used for distributed servers?

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