How can I pass filters to a dashboard through url

Hi,

I have been trying to pass filters as part of url without success.
I followed examples in other threads
I would like to add following filters created manually on dashboard as part of url

{
  "query": {
    "match_phrase": {
      "metadata.test.raw": "test_1"
    }
  }
}

{
  "query": {
    "match_phrase": {
      "metadata.application.metric": "time"
    }
  }
}

These filters were obtained by clicking edit as DSL

I tried to pass one filter as below but that results in error

&_a=(filters:!(query:(match_phrase:(metadata%2Etest%2Eraw:test_1))))

Could someone help in creating url filter with both criteria

Thank you

Hi @kanna,

Welcome to the community! What error are you receiving?

It might be the case that they filter value is not quite in the right format. There is a similar question here that explains the use of RISON in the Kibana URL. Sadly the tool referenced is not available, but a good alternative to play with your query would be rison.dev.

Hope that helps!

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