# Filter (?) in Kibana

**URL:** https://discuss.elastic.co/t/filter-in-kibana/45709
**Category:** Kibana
**Created:** [March 29, 2016, 4:02pm UTC](https://discuss.elastic.co/t/filter-in-kibana/45709 "2016-03-29T16:02:23Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Gnosis](https://avatars.discourse-cdn.com/v4/letter/g/3e96dc/32.png) [@Gnosis](https://discuss.elastic.co/u/Gnosis)
#### Post date: [March 29, 2016, 4:02pm UTC](https://discuss.elastic.co/t/filter-in-kibana/45709/1 "2016-03-29T16:02:23Z")

</div>

Hi all,

I'm a new user of Kibana and i'd like to know if it's possible to make a "link" between two documents.

For example, if i have one doc whose represent the ask to a server and another doc whose represent the answer.  
Is there a way to count the ask without answer with the help of filter ? Or must i join the two docs in ElasticSearch ??

Thanks

---

<div class="post-metadata">

### Author: ![stormpython](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stormpython/32/7190_2.png) [@stormpython](https://discuss.elastic.co/u/stormpython)
#### Post date: [March 29, 2016, 5:19pm UTC](https://discuss.elastic.co/t/filter-in-kibana/45709/2 "2016-03-29T17:19:35Z")

</div>

You may want to checkout this [documentation](https://www.elastic.co/guide/en/elasticsearch/guide/current/relations.html). Its a good read on how to deal with relational data in Elasticsearch.

---

<div class="post-metadata">

### Author: ![Gnosis](https://avatars.discourse-cdn.com/v4/letter/g/3e96dc/32.png) [@Gnosis](https://discuss.elastic.co/u/Gnosis)
#### Post date: [March 29, 2016, 5:27pm UTC](https://discuss.elastic.co/t/filter-in-kibana/45709/3 "2016-03-29T17:27:01Z")

</div>

Thx for the answer.  
so i must do the work with ElasticSearch ?  
Can't do it using Kibana ?

---

<div class="post-metadata">

### Author: ![stormpython](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stormpython/32/7190_2.png) [@stormpython](https://discuss.elastic.co/u/stormpython)
#### Post date: [March 29, 2016, 6:14pm UTC](https://discuss.elastic.co/t/filter-in-kibana/45709/4 "2016-03-29T18:14:08Z")

</div>

If you simply want to count documents that are of type ask and not type answer, then you'd need to index the \_type field and filter on that. That would answer your last question, but if you are looking to link documents, its best to do that in Elasticsearch beforehand.

---

<div class="post-metadata">

### Author: ![Gnosis](https://avatars.discourse-cdn.com/v4/letter/g/3e96dc/32.png) [@Gnosis](https://discuss.elastic.co/u/Gnosis)
#### Post date: [April 15, 2016, 1:37pm UTC](https://discuss.elastic.co/t/filter-in-kibana/45709/5 "2016-04-15T13:37:26Z")

</div>

Ok thx for your answer

---

<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, 1:56pm UTC](https://discuss.elastic.co/t/filter-in-kibana/45709/6 "2017-07-06T13:56:04Z")

</div>


