# Create a filter in metrics

**URL:** <https://discuss.elastic.co/t/create-a-filter-in-metrics/35299>\
**Category:** Kibana\
**Created:** [November 23, 2015, 11:29am UTC](https://discuss.elastic.co/t/create-a-filter-in-metrics/35299 "2015-11-23T11:29:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![v.montaldo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/v.montaldo/32/6099_2.png) [@v.montaldo](https://discuss.elastic.co/u/v.montaldo)\
**Post date:** [November 23, 2015, 11:29am UTC](https://discuss.elastic.co/t/create-a-filter-in-metrics/35299/1 "2015-11-23T11:29:13Z")

</div>

hi,  
I'm approaching to study Kibana.  
How can I write a filter in the metrics visualization?

Ex: count of type:"cliente"

thanks a lot Valentina

![](https://us1.discourse-cdn.com/elastic/original/2X/8/849b2e9c07381319ba0ef5416c083b585aee2c98.PNG)

---

<div class="post-metadata">

**Author:** ![NilsBecker](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nilsbecker/32/6243_2.png) [@NilsBecker](https://discuss.elastic.co/u/NilsBecker)\
**Post date:** [November 30, 2015, 7:32am UTC](https://discuss.elastic.co/t/create-a-filter-in-metrics/35299/2 "2015-11-30T07:32:47Z")

</div>

1. Go to " **Discover**"
2. **search** what you want or use some filters
3. **Save** your search (_save symbol in the right-upper-corner)_
4. **Visualize** -\> Metric -\> from saved search

---

<div class="post-metadata">

**Author:** ![Pieter\_Agenbag](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pieter_agenbag/32/4562_2.png) [@Pieter\_Agenbag](https://discuss.elastic.co/u/Pieter_Agenbag)\
**Post date:** [November 30, 2015, 1:02pm UTC](https://discuss.elastic.co/t/create-a-filter-in-metrics/35299/3 "2015-11-30T13:02:14Z")

</div>

Your visualization is already linked to an "authory\_vale" saved search.

You can change that search to include your required filter - or simply unlink it from the saved search which will add a "filter bar" to the top of the visualization screen similar to what you have on the discover page.

You can mix visualizations linked to different saved searches (with their filters) on the same dashboard - and a dashboard will always have the "filter bar" on top as well to filter all visualizations on the dashboard.

Regarding the "JSON input" , as far as I know , you cant use that to add filters.

---

<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, 2:07pm UTC](https://discuss.elastic.co/t/create-a-filter-in-metrics/35299/4 "2017-07-06T14:07:55Z")

</div>


