# Clicking 1 field but filtering based on other field for drildowns

**URL:** <https://discuss.elastic.co/t/clicking-1-field-but-filtering-based-on-other-field-for-drildowns/294836>\
**Category:** Kibana\
**Created:** [January 19, 2022, 2:55pm UTC](https://discuss.elastic.co/t/clicking-1-field-but-filtering-based-on-other-field-for-drildowns/294836 "2022-01-19T14:55:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![orhiee](https://avatars.discourse-cdn.com/v4/letter/o/eb9ed0/32.png) [@orhiee](https://discuss.elastic.co/u/orhiee)\
**Post date:** [January 19, 2022, 2:55pm UTC](https://discuss.elastic.co/t/clicking-1-field-but-filtering-based-on-other-field-for-drildowns/294836/1 "2022-01-19T14:55:14Z")

</div>

Sorry for the possible confusing title, but here is what I am trying to do:  
in my dashboard for DNS I have name of the domain and number of hits (ex: [elastic.co](http://elastic.co) - 100hits).  
When I click the (+) on Kibana next to "[elastic.co](http://elastic.co)" it adds the filter "domain:elastic.co", however I want the filter to be based on the "answer.IP" filed values in the same document.

Why/what I am trying:  
problem: when you apply a filter on a dashboard, if the other visualisations don't have that field, they all return empty.

- lets say we have 2 different types of documents in our Elasticsearch Connections and DNS.
- both these documents have a field called "IP".
- the DNS doc also has a field called domain name, which is more human readable then IP, example: domain [elastic.co](http://elastic.co), IP 123.123.123.123

In my Kibana I want to show the user, Domain name from the DNS docs, but when users filter based on a value on the screen, I want the filter to be the value of the IP and not the domain name.

- otherwise, since the CONNECTION docs/visuals don't have the "domain Name" field those show empty, thus I can't drill down.

real life example:  
Zeek Connection logs - have destination IP  
zeek DNS logs - have DNS answers.  
I want to show DNS QUESTION in kibana, but filter on the value of "DNS answers" as "destination IP".

hope it makes sense 🙂  
ps, I was not able to find this on my searches if I missed it please feel free to refer me to a link  
thanks in advance.

---

<div class="post-metadata">

**Author:** ![Tomo\_M](https://avatars.discourse-cdn.com/v4/letter/t/848f3c/32.png) [@Tomo\_M](https://discuss.elastic.co/u/Tomo_M)\
**Post date:** [January 21, 2022, 10:08pm UTC](https://discuss.elastic.co/t/clicking-1-field-but-filtering-based-on-other-field-for-drildowns/294836/2 "2022-01-21T22:08:57Z")

</div>

As far as I know, there's no such settings in kibana. My suggestion is to use an enrich  
processor pipeline or something to add domain fields to any index you need to filter.

---

<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:** [February 18, 2022, 10:09pm UTC](https://discuss.elastic.co/t/clicking-1-field-but-filtering-based-on-other-field-for-drildowns/294836/3 "2022-02-18T22:09:49Z")

</div>

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