Hi,
I am successfully able to integrate JMX plugin for logstash. Now to i am trying to Visualize the JMX data.
For this i am trying to add custom fields to the parsed jmx data.
Example:
if [type] == "jmx" { if ("OperatingSystem.ProcessCpuLoad" in [metric_path] or "OperatingSystem.SystemCpuLoad" in [metric_path]) { ruby { code => "event['cpuLoad'] = event['metric_value_number'] * 100" add_tag => [ "cpuLoad" ] } } }
But, In KIbana it is not displaying any such newly added field, this the date i am getting in Kibana.
@version:1 @timestamp:May 30th 2016, 18:50:36.622 host:indlin3402 path:file://SHUBHAMD01/Users/shubhamd/projects/Logstash/logstash/bin/jmx type:jmx metric_path:OperatingSystem.ProcessCpuLoad metric_value_number:0.003 _id:AVUB0r_4sUXN-4lFtxGq _type:jmx _index:jmx _score:
How can i change this to add new field which i have defined in the filter.
Also, is there any predefined templates to visualise JMX data on Kibana.