How to clear filters from the Dashboard?

We upgraded Elastic Cloud version 7.13.2 to 7.15.2.

In our web page, we have a button and embed Dashboard like this.
image

The dashboard URL in iframe is saved object embed code what Kibana provides which is like below.

https://[DOMAIN].co.jp/s/[SPACE]/app/kibana#/dashboard/[ID]?embed=true&_g=(refreshInterval%3A(pause%3A!t%2Cvalue%3A0)%2Ctime%3A(from%3Anow-7d%2Fd%2Cto%3Anow))

When the button is clicked, above URL is reloaded to clear existing filters and update the dashboard which worked fine with v.7.13.2.
However in v.7.15.2, filters reappear and the dashboard data is filtered although the button is clicked.

What should I do to use the button just like before?
If the filter state is stored in the url, how can I clear the state and go back to unfiltered dashboard again?

Hi @m-amano, this is a good question! Yes the way that dashboard reads state from the URL has changed between 7.13 and 7.15. But the good news is that it still reads state on soft refresh.

The difference is that now the filters aren't stored in the URL, so you actually have to override them. Try using this url instead:

https://[DOMAIN].co.jp/s/[SPACE]/app/kibana#/dashboard/[ID]?embed=true&_g=(refreshInterval%3A(pause%3A!t%2Cvalue%3A0)%2Ctime%3A(from%3Anow-7d%2Fd%2Cto%3Anow))&_a=(filters:())

The difference here is the &_a=(filters:()) at the end, which tells the dashboard to remove all filters.

@devon.thomson
Thanks for your reply! I'll try with the url you mentioned!

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