# How create template elasticsearch to grafana

**URL:** <https://community.grafana.com/t/how-create-template-elasticsearch-to-grafana/70554>\
**Category:** Elasticsearch\
**Tags:** elasticsearch, templating\
**Created:** [August 15, 2022, 9:14pm UTC](https://community.grafana.com/t/how-create-template-elasticsearch-to-grafana/70554 "2022-08-15T21:14:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vitoria2002campos](https://avatars.discourse-cdn.com/v4/letter/v/47e85d/32.png) [@vitoria2002campos](https://community.grafana.com/u/vitoria2002campos)\
**Post date:** [August 15, 2022, 9:14pm UTC](https://community.grafana.com/t/how-create-template-elasticsearch-to-grafana/70554/1 "2022-08-15T21:14:25Z")

</div>

**Please avoid posting in the Grafana parent category. Whenever possible choose a subcategory.**  
how create template elasticsearch to grafana using localhost and logstash

THANK YOU!!

~ the grafana team

---

<div class="post-metadata">

**Author:** ![usman.ahmad](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/usman.ahmad/32/29706_2.png) [@usman.ahmad](https://community.grafana.com/u/usman.ahmad)\
**Post date:** [August 16, 2022, 10:42am UTC](https://community.grafana.com/t/how-create-template-elasticsearch-to-grafana/70554/2 "2022-08-16T10:42:59Z")

</div>

Hi @vitoria2002campos,

Welcome to the :grafana: community forum !!

Please check the following documentation [link](https://grafana.com/docs/grafana/latest/datasources/elasticsearch/) as how to use Elasticsearch Datasource and create Template variables

Hope this helps !!

---

<div class="post-metadata">

**Author:** ![vitoriadelaraestudo](https://avatars.discourse-cdn.com/v4/letter/v/b5e925/32.png) [@vitoriadelaraestudo](https://community.grafana.com/u/vitoriadelaraestudo)\
**Post date:** [August 16, 2022, 5:14pm UTC](https://community.grafana.com/t/how-create-template-elasticsearch-to-grafana/70554/3 "2022-08-16T17:14:26Z")

</div>

the documention didn’t work, i need to get my data on elasticsearch and put in grafana. But i saw the documentation and doesn’t working. I have a index to get my data.
