# Logstash error failed to install template

**URL:** <https://discuss.elastic.co/t/logstash-error-failed-to-install-template/327521>\
**Category:** Logstash\
**Created:** [March 13, 2023, 5:46am UTC](https://discuss.elastic.co/t/logstash-error-failed-to-install-template/327521 "2023-03-13T05:46:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![supraja\_inamadugu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/supraja_inamadugu/32/105898_2.png) [@supraja\_inamadugu](https://discuss.elastic.co/u/supraja_inamadugu)\
**Post date:** [March 13, 2023, 5:46am UTC](https://discuss.elastic.co/t/logstash-error-failed-to-install-template/327521/1 "2023-03-13T05:46:55Z")

</div>

[ERROR] 2023-03-12 22:42:30.743 [Ruby-0-Thread-10: /opt/homebrew/Cellar/logstash/8.6.1/libexec/vendor/bundle/jruby/2.6.0/gems/logstash-output-elasticsearch-11.12.1-java/lib/logstash/plugin\_mixins/elasticsearch/common.rb:161] elasticsearch - Failed to install template {:message=\>"Failed to load default template for Elasticsearch v6 with ECS v8; caused by: #\<ArgumentError: Template file '/opt/homebrew/Cellar/logstash/8.6.1/libexec/vendor/bundle/jruby/2.6.0/gems/logstash-output-elasticsearch-11.12.1-java/lib/logstash/outputs/elasticsearch/templates/ecs-v8/elasticsearch-6x.json' could not be found\>", :exception=\>RuntimeError, :backtrace=\>["/opt/homebrew/Cellar/logstash/8.6.1/libexec/vendor/bundle/jruby/2.6.0/gems/logstash-output-elasticsearch-11.12.1-java/lib/logstash/outputs/elasticsearch/template\_manager.rb:37:in `load_default_template'", "/opt/homebrew/Cellar/logstash/8.6.1/libexec/vendor/bundle/jruby/2.6.0/gems/logstash-output-elasticsearch-11.12.1-java/lib/logstash/outputs/elasticsearch/template_manager.rb:24:in `install\_template'", "/opt/homebrew/Cellar/logstash/8.6.1/libexec/vendor/bundle/jruby/2.6.0/gems/logstash-output-elasticsearch-11.12.1-java/lib/logstash/outputs/elasticsearch.rb:583:in `install_template'", "/opt/homebrew/Cellar/logstash/8.6.1/libexec/vendor/bundle/jruby/2.6.0/gems/logstash-output-elasticsearch-11.12.1-java/lib/logstash/outputs/elasticsearch.rb:349:in `finish\_register'", "/opt/homebrew/Cellar/logstash/8.6.1/libexec/vendor/bundle/jruby/2.6.0/gems/logstash-output-elasticsearch-11.12.1-java/lib/logstash/outputs/elasticsearch.rb:305:in `block in register'", "/opt/homebrew/Cellar/logstash/8.6.1/libexec/vendor/bundle/jruby/2.6.0/gems/logstash-output-elasticsearch-11.12.1-java/lib/logstash/plugin_mixins/elasticsearch/common.rb:167:in `block in after\_successful\_connection'"]}

---

<div class="post-metadata">

**Author:** ![supraja\_inamadugu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/supraja_inamadugu/32/105898_2.png) [@supraja\_inamadugu](https://discuss.elastic.co/u/supraja_inamadugu)\
**Post date:** [March 13, 2023, 5:48am UTC](https://discuss.elastic.co/t/logstash-error-failed-to-install-template/327521/2 "2023-03-13T05:48:12Z")

</div>

Can some one help me on fixing above issue

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [March 13, 2023, 6:06pm UTC](https://discuss.elastic.co/t/logstash-error-failed-to-install-template/327521/3 "2023-03-13T18:06:17Z")

</div>

> [@supraja\_inamadugu](#):
>
> ArgumentError: Template file '/opt/homebrew/Cellar/logstash/8.6.1/libexec/vendor/bundle/jruby/2.6.0/gems/logstash-output-elasticsearch-11.12.1-java/lib/logstash/outputs/elasticsearch/templates/ecs-v8/elasticsearch-6x.json' could not be found

logstash 8.6.1 does not support elasticsearch 6.x. If I am reading the [support matrix](https://www.elastic.co/support/matrix#matrix_compatibility) correctly it only supports elasticsearch 8.6.

---

<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:** [April 10, 2023, 6:06pm UTC](https://discuss.elastic.co/t/logstash-error-failed-to-install-template/327521/4 "2023-04-10T18:06:22Z")

</div>

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