# How can I pass filters to a dashboard through url

**URL:** https://discuss.elastic.co/t/how-can-i-pass-filters-to-a-dashboard-through-url/341455
**Category:** Kibana
**Created:** [August 23, 2023, 9:52am UTC](https://discuss.elastic.co/t/how-can-i-pass-filters-to-a-dashboard-through-url/341455 "2023-08-23T09:52:13Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![kanna](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kanna/32/124880_2.png) [@kanna](https://discuss.elastic.co/u/kanna)
#### Post date: [August 23, 2023, 9:52am UTC](https://discuss.elastic.co/t/how-can-i-pass-filters-to-a-dashboard-through-url/341455/1 "2023-08-23T09:52:13Z")

</div>

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

```auto
{
  "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

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

```

Could someone help in creating url filter with both criteria

Thank you

---

<div class="post-metadata">

### Author: ![carly.richmond](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carly.richmond/32/104935_2.png) [@carly.richmond](https://discuss.elastic.co/u/carly.richmond)
#### Post date: [August 24, 2023, 8:45am UTC](https://discuss.elastic.co/t/how-can-i-pass-filters-to-a-dashboard-through-url/341455/2 "2023-08-24T08:45:14Z")

</div>

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](https://discuss.elastic.co/t/is-kibana-supports-dynamic-filters-to-a-url/244613) 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](https://rison.dev/).

Hope that helps!

---

<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: [September 21, 2023, 8:46am UTC](https://discuss.elastic.co/t/how-can-i-pass-filters-to-a-dashboard-through-url/341455/3 "2023-09-21T08:46:02Z")

</div>

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