# Logstash input elasticsearch

**URL:** <https://discuss.elastic.co/t/logstash-input-elasticsearch/326561>\
**Category:** Logstash\
**Created:** [February 27, 2023, 9:59am UTC](https://discuss.elastic.co/t/logstash-input-elasticsearch/326561 "2023-02-27T09:59:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![almteref](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/almteref/32/97409_2.png) [@almteref](https://discuss.elastic.co/u/almteref)\
**Post date:** [February 27, 2023, 9:59am UTC](https://discuss.elastic.co/t/logstash-input-elasticsearch/326561/1 "2023-02-27T09:59:55Z")

</div>

Hi all  
I have question about the logstash  
in elasticsearch input plugin can I use the search template ID that I created in my cluster ? rether than pass query ?

![example logstach input 2](https://us1.discourse-cdn.com/elastic/original/3X/e/4/e4cc49c1149ade2e6905598fcee1e14762339cdd.png)

![example](https://us1.discourse-cdn.com/elastic/original/3X/b/6/b6c99fddb0d2cb37144dd5665a7fdadb0d583d33.png)

![example logstach input](https://us1.discourse-cdn.com/elastic/original/3X/7/5/752ad3244543cbdc50923c934edca1b3b64483f3.png)

---

<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:** [March 27, 2023, 10:00am UTC](https://discuss.elastic.co/t/logstash-input-elasticsearch/326561/2 "2023-03-27T10:00:21Z")

</div>

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