# Filtering/Visualising JMX fields

**URL:** https://discuss.elastic.co/t/filtering-visualising-jmx-fields/51326
**Category:** Logstash
**Created:** [May 30, 2016, 1:28pm UTC](https://discuss.elastic.co/t/filtering-visualising-jmx-fields/51326 "2016-05-30T13:28:39Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![shubham\_deodia](https://avatars.discourse-cdn.com/v4/letter/s/a8b319/32.png) [@shubham\_deodia](https://discuss.elastic.co/u/shubham_deodia)
#### Post date: [May 30, 2016, 1:28pm UTC](https://discuss.elastic.co/t/filtering-visualising-jmx-fields/51326/1 "2016-05-30T13:28:39Z")

</div>

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.

---

<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: [July 6, 2017, 4:55am UTC](https://discuss.elastic.co/t/filtering-visualising-jmx-fields/51326/2 "2017-07-06T04:55:30Z")

</div>


