# Confused about filter "bar" for Kibana visualization

**URL:** https://discuss.elastic.co/t/confused-about-filter-bar-for-kibana-visualization/89476
**Category:** Kibana
**Created:** [June 15, 2017, 12:09am UTC](https://discuss.elastic.co/t/confused-about-filter-bar-for-kibana-visualization/89476 "2017-06-15T00:09:12Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![clowder](https://avatars.discourse-cdn.com/v4/letter/c/ecb155/32.png) [@clowder](https://discuss.elastic.co/u/clowder)
#### Post date: [June 15, 2017, 12:09am UTC](https://discuss.elastic.co/t/confused-about-filter-bar-for-kibana-visualization/89476/1 "2017-06-15T00:09:13Z")

</div>

Sorry for not knowing a lot since I am very new...

I have been playing around with using the sub aggregations in Kibana's visualization tab. One aspect of it I don't understand is the filter metric. You can specify a new sub bucket to be of type filter and then it creates a new text field below it called "filter 1." I have figured out that you can type words in it and then Kibana will filter the elastic search data with those words. However, what I am curious about is how to limit the scope of the filter. Can I make it only look at certain fields? Can I pass it filters like I can on the console? Is there a better way to filter data based off one field that shares values with other fields in the same "data point"?

I have been reading a lot about how to use filters from the console, I'm just curious how to use that textfield in the visualization editor.

---

<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: [June 15, 2017, 9:02am UTC](https://discuss.elastic.co/t/confused-about-filter-bar-for-kibana-visualization/89476/2 "2017-06-15T09:02:40Z")

</div>

The filters in the filter aggregation support the [Elasticsearch query string syntax](https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-query-string-query.html#query-string-syntax) which does support limiting terms to a specific field and a whole lot more

```auto
fielda:foo fieldb:"bar baz"

```

---

<div class="post-metadata">

### Author: ![clowder](https://avatars.discourse-cdn.com/v4/letter/c/ecb155/32.png) [@clowder](https://discuss.elastic.co/u/clowder)
#### Post date: [June 15, 2017, 5:20pm UTC](https://discuss.elastic.co/t/confused-about-filter-bar-for-kibana-visualization/89476/3 "2017-06-15T17:20:14Z")

</div>

but is that the same in the filter bar I described? The one in kibana? Because if I pass a query like it describes in the link it doesn't work.

---

<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 13, 2017, 5:20pm UTC](https://discuss.elastic.co/t/confused-about-filter-bar-for-kibana-visualization/89476/4 "2017-07-13T17:20:23Z")

</div>

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