# Permanent filter on data view

**URL:** <https://discuss.elastic.co/t/permanent-filter-on-data-view/317993>\
**Category:** Kibana\
**Created:** [November 2, 2022, 2:01pm UTC](https://discuss.elastic.co/t/permanent-filter-on-data-view/317993 "2022-11-02T14:01:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joseph\_Predignac](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joseph_predignac/32/112830_2.png) [@Joseph\_Predignac](https://discuss.elastic.co/u/Joseph_Predignac)\
**Post date:** [November 2, 2022, 2:01pm UTC](https://discuss.elastic.co/t/permanent-filter-on-data-view/317993/1 "2022-11-02T14:01:29Z")

</div>

Hi everyone,  
I work with o365 logs, and I want to make exceptions on some users, some countries etc... For example, on a dashboard, I focus on login from countries except mine, to see suspicious logs. But, if I know a user lives in India, I want to make an exception on this user with India forever. Is there a way to make exceptions on kibana that are easier to manage that this way :

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/e/a/ea5e4e1385dfc9a532ef3d9587c266234c65c617.png)  
The problem with this filter option is that if I have multiple dashboards and a lot of filters, it's not possible to manage correctly.  
The option to pin a filter on all dashboards makes my filters disappear, so I can't use it.

Thank you for your help !

---

<div class="post-metadata">

**Author:** ![Stratoula\_Kalafateli](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stratoula_kalafateli/32/70923_2.png) [@Stratoula\_Kalafateli](https://discuss.elastic.co/u/Stratoula_Kalafateli)\
**Post date:** [November 2, 2022, 5:13pm UTC](https://discuss.elastic.co/t/permanent-filter-on-data-view/317993/2 "2022-11-02T17:13:52Z")

</div>

Hey @Joseph_Predignac! Welcome to our community!

The pin filter is the best option here. What do you mean with the:

> The option to pin a filter on all dashboards makes my filters disappear, so I can't use it.

Another thing you could do is use the reindex api [Reindex API | Elasticsearch Guide [8.11] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-reindex.html#docs-reindex-select-query) and create a new index with the documents you want. This means that you have to update your visualizations to use the new index though so I know that this is not the best solution.

---

<div class="post-metadata">

**Author:** ![Joseph\_Predignac](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joseph_predignac/32/112830_2.png) [@Joseph\_Predignac](https://discuss.elastic.co/u/Joseph_Predignac)\
**Post date:** [November 3, 2022, 9:24am UTC](https://discuss.elastic.co/t/permanent-filter-on-data-view/317993/3 "2022-11-03T09:24:15Z")

</div>

Hi,

Thank you for your quick answer. I'm going to check the API to see if it can help me.

About the pin filter, I encounter a bug when I use it. If I go on another computer to see the dashboard with the pinned filters, it makes all the filters disappear. Maybe an information that will help : if I create an exclusion filter like this one :

 ![pin filter](https://us1.discourse-cdn.com/elastic/original/3X/3/6/36ae562554b1534f2d319fa8e3138354b237212b.png)  
If the filter is not pinned, I can save my dashboard to keep the filter on this dashboard. But if I pin it, I can't save anymore. I think that it's because it's not saved on only this dashboard, but maybe that's not normal.  
I've seen on internet that if you perform a hard refresh on your browser, the pinned filter disappear, and that's a problem for my use of the filters. I want to keep them during months.

---

<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:** [November 30, 2022, 3:31pm UTC](https://discuss.elastic.co/t/permanent-filter-on-data-view/317993/4 "2022-11-30T15:31:32Z")

</div>



---

<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:** [December 28, 2022, 3:32pm UTC](https://discuss.elastic.co/t/permanent-filter-on-data-view/317993/5 "2022-12-28T15:32:20Z")

</div>

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