# What is the query string format used to express filters, etc?

**URL:** <https://discuss.elastic.co/t/what-is-the-query-string-format-used-to-express-filters-etc/30101>\
**Category:** Kibana\
**Created:** [September 27, 2015, 9:11pm UTC](https://discuss.elastic.co/t/what-is-the-query-string-format-used-to-express-filters-etc/30101 "2015-09-27T21:11:36Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![djmcgreal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/djmcgreal/32/52956_2.png) [@djmcgreal](https://discuss.elastic.co/u/djmcgreal)\
**Post date:** [September 27, 2015, 9:11pm UTC](https://discuss.elastic.co/t/what-is-the-query-string-format-used-to-express-filters-etc/30101/1 "2015-09-27T21:11:36Z")

</div>

Hi Kibana experts,  
I need to parse the query string used to specify date ranges and filters within Kibana's state URLs. Is there a standard format this string follows?  
Best, Dan.

---

<div class="post-metadata">

**Author:** ![djmcgreal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/djmcgreal/32/52956_2.png) [@djmcgreal](https://discuss.elastic.co/u/djmcgreal)\
**Post date:** [October 1, 2015, 10:37am UTC](https://discuss.elastic.co/t/what-is-the-query-string-format-used-to-express-filters-etc/30101/2 "2015-10-01T10:37:44Z")

</div>

Someone must know 😄

---

<div class="post-metadata">

**Author:** ![Pieter\_Agenbag](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pieter_agenbag/32/4562_2.png) [@Pieter\_Agenbag](https://discuss.elastic.co/u/Pieter_Agenbag)\
**Post date:** [October 1, 2015, 10:51am UTC](https://discuss.elastic.co/t/what-is-the-query-string-format-used-to-express-filters-etc/30101/3 "2015-10-01T10:51:08Z")

</div>

Its [Rison](http://pollinimini.net/blog/rison-compact-json-for-uris/) 🙂

---

<div class="post-metadata">

**Author:** ![djmcgreal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/djmcgreal/32/52956_2.png) [@djmcgreal](https://discuss.elastic.co/u/djmcgreal)\
**Post date:** [October 1, 2015, 10:54am UTC](https://discuss.elastic.co/t/what-is-the-query-string-format-used-to-express-filters-etc/30101/4 "2015-10-01T10:54:19Z")

</div>

Thanks, I'd never have figured that out!  
Dan.

PS There's even a [Jackson module](https://github.com/bazaarvoice/rison) for it. I'm super-delighted.

---

<div class="post-metadata">

**Author:** ![Pieter\_Agenbag](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pieter_agenbag/32/4562_2.png) [@Pieter\_Agenbag](https://discuss.elastic.co/u/Pieter_Agenbag)\
**Post date:** [October 1, 2015, 11:01am UTC](https://discuss.elastic.co/t/what-is-the-query-string-format-used-to-express-filters-etc/30101/5 "2015-10-01T11:01:16Z")

</div>

I just "borrowed" the rison.js from the kibana source 😇

---

<div class="post-metadata">

**Author:** ![djmcgreal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/djmcgreal/32/52956_2.png) [@djmcgreal](https://discuss.elastic.co/u/djmcgreal)\
**Post date:** [October 1, 2015, 11:03am UTC](https://discuss.elastic.co/t/what-is-the-query-string-format-used-to-express-filters-etc/30101/6 "2015-10-01T11:03:29Z")

</div>

I had been going through the source but was getting waylaid by Node's querystring stuff.

Hopefully I won't have to borrow it into Java, as there's even a [Jackson module](https://github.com/bazaarvoice/rison) for it. I'm super-super-delighted!

---

<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:** [July 6, 2017, 2:12pm UTC](https://discuss.elastic.co/t/what-is-the-query-string-format-used-to-express-filters-etc/30101/7 "2017-07-06T14:12:08Z")

</div>

Closed on July 6, 2017, 2:12pm UTC


