# How to add filters on healthmetric in json input

**URL:** <https://discuss.elastic.co/t/how-to-add-filters-on-healthmetric-in-json-input/75485>\
**Category:** Kibana\
**Created:** [February 17, 2017, 12:07pm UTC](https://discuss.elastic.co/t/how-to-add-filters-on-healthmetric-in-json-input/75485 "2017-02-17T12:07:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mehdichilla](https://avatars.discourse-cdn.com/v4/letter/m/90db22/32.png) [@mehdichilla](https://discuss.elastic.co/u/mehdichilla)\
**Post date:** [February 17, 2017, 12:07pm UTC](https://discuss.elastic.co/t/how-to-add-filters-on-healthmetric-in-json-input/75485/1 "2017-02-17T12:07:47Z")

</div>

Hello,  
we use kibana 5.1.1 & elasticsearch 5.1.1 with gauge-sg et health metric plugins.  
I am trying to filter in the construction of my visualization the values a zero of the deconnected people.  
Would you have a track to communicate to me?  
Below the request sent and the reply received  
thank you in advance

request  
{  
"query": {  
"query\_string": {  
"query": "_",  
"analyze\_wildcard": true  
}  
},  
"size": 0,  
"\_source": {  
"excludes": []  
},  
"aggs": {  
"2": {  
"terms": {  
"field": "nomPrenom.keyword",  
"size": 500,  
"order": {  
"1": "desc"  
}  
},  
"aggs": {  
"1": {  
"sum": {  
"script": {  
"inline": "doc['dureePasLibreJour'].value_100/doc['dureeConnexion'].value",  
"lang": "expression"  
}  
}  
}  
}

```
}

```

}  
}

---

<div class="post-metadata">

**Author:** ![shaunak](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shaunak/32/6643_2.png) [@shaunak](https://discuss.elastic.co/u/shaunak)\
**Post date:** [February 18, 2017, 1:40pm UTC](https://discuss.elastic.co/t/how-to-add-filters-on-healthmetric-in-json-input/75485/2 "2017-02-18T13:40:18Z")

</div>

Hi @mehdichilla,

I'm sorry but I'm not following the question. Would you mind explaining a different way, perhaps using some example data or annotated screenshots?

Thanks,

Shaunak

---

<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:** [March 18, 2017, 1:40pm UTC](https://discuss.elastic.co/t/how-to-add-filters-on-healthmetric-in-json-input/75485/3 "2017-03-18T13:40:29Z")

</div>

Closed on March 18, 2017, 1:40pm UTC

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