# Allow a user to filter and drill down Kibana widgets

**URL:** <https://discuss.elastic.co/t/allow-a-user-to-filter-and-drill-down-kibana-widgets/86921>\
**Category:** Kibana\
**Created:** [May 24, 2017, 8:49am UTC](https://discuss.elastic.co/t/allow-a-user-to-filter-and-drill-down-kibana-widgets/86921 "2017-05-24T08:49:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Riccardone](https://avatars.discourse-cdn.com/v4/letter/r/c0e974/32.png) [@Riccardone](https://discuss.elastic.co/u/Riccardone)\
**Post date:** [May 24, 2017, 8:49am UTC](https://discuss.elastic.co/t/allow-a-user-to-filter-and-drill-down-kibana-widgets/86921/1 "2017-05-24T08:49:49Z")

</div>

Hi,  
I have replicated some data in an ElasticSearch index. I'm going to create one or more widgets and then embed them in an existing web application.

My question is:  
To allow the user to enter terms for filtering, do I need to create a custom Html View with a button and then show a Kibana widget or is there a Kibana feature to provide a input form for filtering widget and embed it in an existing UI?

Thanks for your help  
Regards  
Riccardo

---

<div class="post-metadata">

**Author:** ![LeeDr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leedr/32/9289_2.png) [@LeeDr](https://discuss.elastic.co/u/LeeDr)\
**Post date:** [May 26, 2017, 3:13pm UTC](https://discuss.elastic.co/t/allow-a-user-to-filter-and-drill-down-kibana-widgets/86921/2 "2017-05-26T15:13:24Z")

</div>

Hi Riccardo,

Here's one thing you can do to give users a selection from a list of terms.

1. I created a Data Table view using a Terms aggregation on machine.os.raw
2. I created a Line Chart with a Date Histogram of the Count of docs.
3. I added both of these to a new Dashboard in Kibana
4. I clicked the Share menu item and copied the embedded iframe link
5. I put that in an html file and then opened it
6. now I can click the "+" icon to add a filter for any of those values and then impacts the line chart
7. I have to delete or disable each filter before adding another one since no docs would match 2 of those filters.

 ![](https://us1.discourse-cdn.com/elastic/original/3X/0/5/05ca075effa035728d83949f349a35780c938023.gif)

I don't think there's a way to have the actual query bar visible in an embedded iframe from Kibana. I see some enhancement requests for something like that.

> <https://github.com/elastic/kibana/issues/3046>

---

<div class="post-metadata">

**Author:** ![Riccardone](https://avatars.discourse-cdn.com/v4/letter/r/c0e974/32.png) [@Riccardone](https://discuss.elastic.co/u/Riccardone)\
**Post date:** [May 26, 2017, 3:56pm UTC](https://discuss.elastic.co/t/allow-a-user-to-filter-and-drill-down-kibana-widgets/86921/3 "2017-05-26T15:56:30Z")

</div>

Thanks, this helps

Regards  
Riccardo

---

<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:** [June 23, 2017, 3:56pm UTC](https://discuss.elastic.co/t/allow-a-user-to-filter-and-drill-down-kibana-widgets/86921/4 "2017-06-23T15:56:54Z")

</div>

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