# Is it possible to specify the search term in the request to Kibana for a saved search?

**URL:** <https://discuss.elastic.co/t/is-it-possible-to-specify-the-search-term-in-the-request-to-kibana-for-a-saved-search/25788>\
**Category:** Kibana\
**Created:** [July 17, 2015, 10:47am UTC](https://discuss.elastic.co/t/is-it-possible-to-specify-the-search-term-in-the-request-to-kibana-for-a-saved-search/25788 "2015-07-17T10:47:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![russellseymour](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/russellseymour/32/1298_2.png) [@russellseymour](https://discuss.elastic.co/u/russellseymour)\
**Post date:** [July 17, 2015, 10:47am UTC](https://discuss.elastic.co/t/is-it-possible-to-specify-the-search-term-in-the-request-to-kibana-for-a-saved-search/25788/1 "2015-07-17T10:47:06Z")

</div>

Hello,

I would like to be able to give users a URL to Kibana that links to a saved search and passes the value for a parameterised object in the query. For example, the following URL:

```
http://kibana/#/discover/MySearch?provisionid=1234

```

In this case the 'MySearch' search would be used and the token 'provisionid' in the ES query would be replaced with the value specified, e.g. 1234.

Is this possible? I know it was in Kibana 3.

Thanks, Russell

---

<div class="post-metadata">

**Author:** ![tbragin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tbragin/32/45166_2.png) [@tbragin](https://discuss.elastic.co/u/tbragin)\
**Post date:** [July 18, 2015, 2:26pm UTC](https://discuss.elastic.co/t/is-it-possible-to-specify-the-search-term-in-the-request-to-kibana-for-a-saved-search/25788/2 "2015-07-18T14:26:51Z")

</div>

Templates and scripts work differently in Kibana 4, compared to Kibana 3, and as a result are easier to create and manipulate with external tools.

The URL itself can contain the entire dashboard and visualization schema:  
`
http://localhost:5601/#/visualize/create?type=histogram&indexPattern=logstash-*&_g=(time:(from:now-2d,mode:relative,to:now))&_a=(vis:(aggs:!((params:(),schema:metric,type:count),(params:(extended_bounds:(),field:'@timestamp',interval:auto,min_doc_count:1),schema:segment,type:date_histogram)),type:histogram))`

[https://localhost:5601/#/dashboard/Logstash-Dashboard?\_g=(refreshInterval:(display:Off,pause:!f,section:0,value:0),time:(from:'2014-09-12T19:46:10.400Z',mode:absolute,to:'2014-10-21T22:07:13.825Z')](https://localhost:5601/#/dashboard/Logstash-Dashboard?_g=(refreshInterval:(display:Off,pause:!f,section:0,value:0),time:(from:'2014-09-12T19:46:10.400Z',mode:absolute,to:'2014-10-21T22:07:13.825Z')))&\_a=(filters:!(),panels:!((col:2,id:'Logstash:-Docs-over-Time',row:9,size\_x:6,size\_y:4,type:visualization),(col:9,id:Logstash-User-Agents,row:1,size\_x:3,size\_y:5,type:visualization),(col:1,id:Logstash-Map,row:1,size\_x:8,size\_y:8,type:visualization)),query:(query\_string:(analyze\_wildcard:!t,query:'\*')),title:'Logstash%20Dashboard')

See similar discussions on Github: [https://github.com/elastic/kibana/issues/1482](https://github.com/elastic/kibana/issues/1482)

---

<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:16pm UTC](https://discuss.elastic.co/t/is-it-possible-to-specify-the-search-term-in-the-request-to-kibana-for-a-saved-search/25788/3 "2017-07-06T14:16:16Z")

</div>


