# Load index template through logstash

**URL:** <https://discuss.elastic.co/t/load-index-template-through-logstash/293328>\
**Category:** Beats\
**Tags:** winlogbeat\
**Created:** [January 3, 2022, 8:47am UTC](https://discuss.elastic.co/t/load-index-template-through-logstash/293328 "2022-01-03T08:47:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![okopnik](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/okopnik/32/97440_2.png) [@okopnik](https://discuss.elastic.co/u/okopnik)\
**Post date:** [January 3, 2022, 8:47am UTC](https://discuss.elastic.co/t/load-index-template-through-logstash/293328/1 "2022-01-03T08:47:26Z")

</div>

For a while, I've been shipping events from winlogbeat to logstash and then to elastic. I used my own, very basic template. I cannot figure out how to load the winlogbeat template to elastic. Is it possible to do this while sending the data to Logstash?

---

<div class="post-metadata">

**Author:** ![kvch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kvch/32/72058_2.png) [@kvch](https://discuss.elastic.co/u/kvch)\
**Post date:** [January 3, 2022, 12:17pm UTC](https://discuss.elastic.co/t/load-index-template-through-logstash/293328/2 "2022-01-03T12:17:19Z")

</div>

Yes, it is possible. You should run the `setup` subcommand of Winlogbeat: [Load the Elasticsearch index template | Winlogbeat Reference [7.16] | Elastic](https://www.elastic.co/guide/en/beats/winlogbeat/current/winlogbeat-template.html#load-template-manually)

Let me know how it goes.

---

<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:** [January 31, 2022, 2:17pm UTC](https://discuss.elastic.co/t/load-index-template-through-logstash/293328/3 "2022-01-31T14:17:47Z")

</div>

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