# Not Able to load template manually for logstach!

**URL:** https://discuss.elastic.co/t/not-able-to-load-template-manually-for-logstach/108543
**Category:** Beats
**Tags:** filebeat
**Created:** [November 21, 2017, 10:20am UTC](https://discuss.elastic.co/t/not-able-to-load-template-manually-for-logstach/108543 "2017-11-21T10:20:44Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![SJN8](https://avatars.discourse-cdn.com/v4/letter/s/f08c70/32.png) [@SJN8](https://discuss.elastic.co/u/SJN8)
#### Post date: [November 21, 2017, 10:20am UTC](https://discuss.elastic.co/t/not-able-to-load-template-manually-for-logstach/108543/1 "2017-11-21T10:20:44Z")

</div>

Hi All ,

I am not able to load template manually from filebeat as i am using logstach as outpout .

getting below error :-

./filebeat -setup filebeat.template.json  
Exiting: Dashboard loading requested but the Elasticsearch output is not configured/enabled

but in Docs it is mentioned , if logstach is used as o/p , then tempolate need to be loaded manually .

Also once templated are loaded , i can load sample dashboard .

please help me on the same asap .

---

<div class="post-metadata">

### Author: ![lara](https://avatars.discourse-cdn.com/v4/letter/l/e274bd/32.png) [@lara](https://discuss.elastic.co/u/lara)
#### Post date: [November 21, 2017, 1:03pm UTC](https://discuss.elastic.co/t/not-able-to-load-template-manually-for-logstach/108543/2 "2017-11-21T13:03:40Z")

</div>

Hi,

Before anything, can you please tell me your Filebeat version?  
I can answer you in case of the 5.6 version.

---

<div class="post-metadata">

### Author: ![SJN8](https://avatars.discourse-cdn.com/v4/letter/s/f08c70/32.png) [@SJN8](https://discuss.elastic.co/u/SJN8)
#### Post date: [November 21, 2017, 1:05pm UTC](https://discuss.elastic.co/t/not-able-to-load-template-manually-for-logstach/108543/3 "2017-11-21T13:05:49Z")

</div>

Hi ,

below is my filebeat's version ,

filebeat version 5.6.3 (amd64), libbeat 5.6.3

---

<div class="post-metadata">

### Author: ![lara](https://avatars.discourse-cdn.com/v4/letter/l/e274bd/32.png) [@lara](https://discuss.elastic.co/u/lara)
#### Post date: [November 21, 2017, 1:31pm UTC](https://discuss.elastic.co/t/not-able-to-load-template-manually-for-logstach/108543/4 "2017-11-21T13:31:28Z")

</div>

Hi,

[https://www.elastic.co/guide/en/beats/filebeat/5.6/filebeat-template.html](https://www.elastic.co/guide/en/beats/filebeat/5.6/filebeat-template.html)

if your Filebeat is installed on the same elasticsearch server, you can follow those instructions with no modification.  
Otherwise, if you have your template on a remote machine, transfer the file filebeat.template.json to your server, change to directory where you had copy the file and load the template so (my elasticsearch server is a CentOs 7):

curl -H 'Content-Type: application/json' -XPUT '[http://localhost:9200/\_template/filebeat](http://localhost:9200/_template/filebeat)' -d@filebeat.template.json

it should load the template into elasticsearch.  
Check it in this way:

curl XGET 'localhost:9200/\_cat/templates?v&s=name&pretty'

it should show you this output:

name template order version  
filebeat filebeat-\* 0

and confirm that the template "filebeat" is there.

I am new in this elastic world and I know that templates can also be referenced directly in other ways and configuration.  
but the above example apparently worked for me.

let me know  
lara

---

<div class="post-metadata">

### Author: ![lara](https://avatars.discourse-cdn.com/v4/letter/l/e274bd/32.png) [@lara](https://discuss.elastic.co/u/lara)
#### Post date: [November 21, 2017, 1:33pm UTC](https://discuss.elastic.co/t/not-able-to-load-template-manually-for-logstach/108543/5 "2017-11-21T13:33:47Z")

</div>

please note:  
the command is formatted strangely in my post, it all goes in one line, no interruption:

curl -H 'Content-Type: application/json' -XPUT '[http://localhost:9200/\_template/filebeat](http://localhost:9200/_template/filebeat)' -d@filebeat.template.json

---

<div class="post-metadata">

### Author: ![SJN8](https://avatars.discourse-cdn.com/v4/letter/s/f08c70/32.png) [@SJN8](https://discuss.elastic.co/u/SJN8)
#### Post date: [November 21, 2017, 1:42pm UTC](https://discuss.elastic.co/t/not-able-to-load-template-manually-for-logstach/108543/6 "2017-11-21T13:42:38Z")

</div>

Thanks Lara ,

i can see template is loaded , 'll get back to you in case of any other issue .

😀

---

<div class="post-metadata">

### Author: ![SJN8](https://avatars.discourse-cdn.com/v4/letter/s/f08c70/32.png) [@SJN8](https://discuss.elastic.co/u/SJN8)
#### Post date: [November 22, 2017, 6:51am UTC](https://discuss.elastic.co/t/not-able-to-load-template-manually-for-logstach/108543/7 "2017-11-22T06:51:07Z")

</div>

Hi Lara ,

Template is loaded but facing issue while loading dashboard to Kibana ,

2017/11/22 06:43:41.482479 beat.go:625: CRIT Exiting: Error importing Kibana dashboards: fail to create the Elasticsearch loader: Elasticsearch output is not configured/enabled  
Exiting: Error importing Kibana dashboards: fail to create the Elasticsearch loader: Elasticsearch output is not configured/enabled

i have mention required setting in filebeat and i am using filebeat-6.0.0 version .

---

<div class="post-metadata">

### Author: ![lara](https://avatars.discourse-cdn.com/v4/letter/l/e274bd/32.png) [@lara](https://discuss.elastic.co/u/lara)
#### Post date: [November 22, 2017, 9:13am UTC](https://discuss.elastic.co/t/not-able-to-load-template-manually-for-logstach/108543/8 "2017-11-22T09:13:53Z")

</div>

Hi,

On filebeat 6.0 I cannot help.

As for dashboards etc. I had used the standard that were mentioned here:

> **[elastic/beats-dashboards](https://github.com/elastic/beats-dashboards)**
>
> beats-dashboards - DEPRECATED. Moved to https://github.com/elastic/beats. Please use the new repository to add new issues.

  
(follow instructions)  
I do not know if now filebeat is shipped with up-to-date and targeted dashboards. As for Filebeat in general, I have not investigated those loaded dashboards yet.

Just a note:have you configured the logstash part output.conf ?  
And also all input and filter required...

lara

---

<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: [November 23, 2017, 11:13am UTC](https://discuss.elastic.co/t/not-able-to-load-template-manually-for-logstach/108543/9 "2017-11-23T11:13:12Z")

</div>

Hi,

Unfortunately, Filebeat 6.0 is not able to load dashboards without configuring the Elasticsearch output.  
In 6.1 a new option `setup.dashboards.always_kibana` is introduced to solve this problems.

If you cannot upgrade to 6.1, you could load them using the Kibana API:

```auto
curl --user <username>:<password> -XPOST localhost:5601/api/kibana/dashboards/import -H 'kbn-xsrf:true' -H 'Content-type:application/json' -d @./my-dashboards.json

```

If you don't use X-Pack, just emit the `--user` option.

---

<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: [December 21, 2017, 11:13am UTC](https://discuss.elastic.co/t/not-able-to-load-template-manually-for-logstach/108543/10 "2017-12-21T11:13:23Z")

</div>

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