# Elasticsearch-templating

**URL:** <https://community.grafana.com/t/elasticsearch-templating/2618>\
**Category:** General\
**Created:** [September 6, 2017, 7:42am UTC](https://community.grafana.com/t/elasticsearch-templating/2618 "2017-09-06T07:42:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![urshoaib93](https://avatars.discourse-cdn.com/v4/letter/u/ee59a6/32.png) [@urshoaib93](https://community.grafana.com/u/urshoaib93)\
**Post date:** [September 6, 2017, 7:42am UTC](https://community.grafana.com/t/elasticsearch-templating/2618/1 "2017-09-06T07:42:42Z")

</div>

hi all,

can anyone please help me to create a template variable for elastic search?

---

<div class="post-metadata">

**Author:** ![torkel](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/torkel/32/20_2.png) [@torkel](https://community.grafana.com/u/torkel)\
**Post date:** [September 6, 2017, 8:41am UTC](https://community.grafana.com/t/elasticsearch-templating/2618/2 "2017-09-06T08:41:02Z")

</div>

Here are the templating docs for elasticsearch:  
[http://docs.grafana.org/features/datasources/elasticsearch/#templating](http://docs.grafana.org/features/datasources/elasticsearch/#templating)

Here is an example of templated dashboard:  
[http://play.grafana.org/dashboard/db/elasticsearch-templated?orgId=1&var-source=site&var-host=server1&var-host=server2](http://play.grafana.org/dashboard/db/elasticsearch-templated?orgId=1&var-source=site&var-host=server1&var-host=server2)

To dashboard settings menu \> templating and look at the variable definitions.
