# ERR failed to initialize elasticsearch plugin as output

**URL:** https://discuss.elastic.co/t/err-failed-to-initialize-elasticsearch-plugin-as-output/75276
**Category:** Beats
**Tags:** filebeat
**Created:** [February 16, 2017, 4:43am UTC](https://discuss.elastic.co/t/err-failed-to-initialize-elasticsearch-plugin-as-output/75276 "2017-02-16T04:43:18Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![franc\_right](https://avatars.discourse-cdn.com/v4/letter/f/f17d59/32.png) [@franc\_right](https://discuss.elastic.co/u/franc_right)
#### Post date: [February 16, 2017, 4:43am UTC](https://discuss.elastic.co/t/err-failed-to-initialize-elasticsearch-plugin-as-output/75276/1 "2017-02-16T04:43:19Z")

</div>

hello  
can someone help me understand the problem with this

Feb 14 12:25:57 localhost.localdomain systemd[1]: Started filebeat.  
Feb 14 12:25:57 localhost.localdomain systemd[1]: Starting filebeat...  
[ctf@localhost ~]$ sudo filebeat -c /etc/filebeat/filebeat.yml -e -d "\*"-path.config /etc/filebeat  
[sudo] password for ctf:  
2017/02/14 18:11:45.762963 beat.go:267: INFO Home path: [/home/ctf] Config path: [/home/ctf] Data path: [/home/ctf/data] Logs path: [/home/ctf/logs]  
2017/02/14 18:11:45.763304 beat.go:177: INFO Setup Beat: filebeat; Version: 5.1.2  
2017/02/14 18:11:45.763447 logp.go:219: INFO Metrics logging every 30s  
2017/02/14 18:11:45.765014 output.go:167: INFO Loading template enabled. Reading template file: /etc/filebeat/filebeat.template.json  
2017/02/14 18:11:45.767400 output.go:178: INFO Loading template enabled for Elasticsearch 2.x. Reading template file: /home/ctf/filebeat.template-es2x.json  
2017/02/14 18:11:45.767696 outputs.go:100: ERR failed to initialize elasticsearch plugin as output: Error loading template /home/ctf/filebeat.template-es2x.json: open /home/ctf/filebeat.template-es2x.json: no such file or directory  
2017/02/14 18:11:45.767951 beat.go:288: CRIT Exiting: error initializing publisher: Error loading template /home/ctf/filebeat.template-es2x.json: open /home/ctf/filebeat.template-es2x.json: no such file or directory  
Exiting: error initializing publisher: Error loading template /home/ctf/filebeat.template-es2x.json: open /home/ctf/filebeat.template-es2x.json: no such file or directory

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [February 16, 2017, 6:39am UTC](https://discuss.elastic.co/t/err-failed-to-initialize-elasticsearch-plugin-as-output/75276/2 "2017-02-16T06:39:09Z")

</div>

> [@franc\_right](#):
>
> Error loading template /home/ctf/filebeat.template-es2x.json: open /home/ctf/filebeat.template-es2x.json: no such file or directory

Does that file exist?

---

<div class="post-metadata">

### Author: ![franc\_right](https://avatars.discourse-cdn.com/v4/letter/f/f17d59/32.png) [@franc\_right](https://discuss.elastic.co/u/franc_right)
#### Post date: [February 21, 2017, 4:56pm UTC](https://discuss.elastic.co/t/err-failed-to-initialize-elasticsearch-plugin-as-output/75276/3 "2017-02-21T16:56:58Z")

</div>

i am looking for it but it does not exit, i am sorry i am near with elasticsearch, can you help me figure out how to create that template or download it.  
thank you

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [February 21, 2017, 8:49pm UTC](https://discuss.elastic.co/t/err-failed-to-initialize-elasticsearch-plugin-as-output/75276/4 "2017-02-21T20:49:24Z")

</div>

How did you install filebeat?

---

<div class="post-metadata">

### Author: ![franc\_right](https://avatars.discourse-cdn.com/v4/letter/f/f17d59/32.png) [@franc\_right](https://discuss.elastic.co/u/franc_right)
#### Post date: [February 21, 2017, 9:03pm UTC](https://discuss.elastic.co/t/err-failed-to-initialize-elasticsearch-plugin-as-output/75276/5 "2017-02-21T21:03:04Z")

</div>

hello, u figure it out, and it is working now but i am having a problem with Kibana. i am getting an error, failed to connect to console backend  
please check the kibana server is up and running message

---

<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 21, 2017, 9:03pm UTC](https://discuss.elastic.co/t/err-failed-to-initialize-elasticsearch-plugin-as-output/75276/6 "2017-03-21T21:03:11Z")

</div>

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