# Exclude pattern in pie chart

**URL:** <https://discuss.elastic.co/t/exclude-pattern-in-pie-chart/69736>\
**Category:** Kibana\
**Created:** [December 22, 2016, 6:26am UTC](https://discuss.elastic.co/t/exclude-pattern-in-pie-chart/69736 "2016-12-22T06:26:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous4](https://avatars.discourse-cdn.com/v4/letter/a/c2a13f/32.png) [@anonymous4](https://discuss.elastic.co/u/anonymous4)\
**Post date:** [December 22, 2016, 6:26am UTC](https://discuss.elastic.co/t/exclude-pattern-in-pie-chart/69736/1 "2016-12-22T06:26:07Z")

</div>

I am trying to exclude some data from the pie chart and using exclude pattern from advanced option but it is not working. Syntax i am using is :  
-remote\_host : 192\*

But it is not working.

---

<div class="post-metadata">

**Author:** ![spalger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spalger/32/14092_2.png) [@spalger](https://discuss.elastic.co/u/spalger)\
**Post date:** [December 22, 2016, 5:18pm UTC](https://discuss.elastic.co/t/exclude-pattern-in-pie-chart/69736/2 "2016-12-22T17:18:17Z")

</div>

The exclude pattern uses regular-expression like syntax and only applies to the field of the aggregation [https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-terms-aggregation.html#\_filtering\_values\_2](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-terms-aggregation.html#_filtering_values_2)

---

<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:** [January 19, 2017, 5:18pm UTC](https://discuss.elastic.co/t/exclude-pattern-in-pie-chart/69736/3 "2017-01-19T17:18:47Z")

</div>

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