# Load index template into Elasticsearch

**URL:** https://discuss.elastic.co/t/load-index-template-into-elasticsearch/318814
**Category:** Beats
**Tags:** filebeat
**Created:** [November 14, 2022, 12:53am UTC](https://discuss.elastic.co/t/load-index-template-into-elasticsearch/318814 "2022-11-14T00:53:37Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![sharbich](https://avatars.discourse-cdn.com/v4/letter/s/5daacb/32.png) [@sharbich](https://discuss.elastic.co/u/sharbich)
#### Post date: [November 14, 2022, 12:53am UTC](https://discuss.elastic.co/t/load-index-template-into-elasticsearch/318814/1 "2022-11-14T00:53:37Z")

</div>

Hello,  
I want to issue the following command. However, I can only access my elasticsearch via ssl.  
Therefore I get the following error message:

> root@nmanme01:~# filebeat setup -E output.logstash.enabled=false -E output.elasticsearch.hosts=['[https://elasticsearch.intern.example.com:9200](https://elasticsearch.intern.example.com:9200)'] -E setup.kibana.host=[https://kibana.intern.example.com:5601](https://kibana.intern.example.com:5601)  
> Exiting: couldn't connect to any of the configured Elasticsearch hosts. Errors: [error connecting to Elasticsearch at [https://elasticsearch.intern.example.com:9200](https://elasticsearch.intern.example.com:9200): 401 Unauthorized: {"error":{"root\_cause":[{"type":"security\_exception","reason":"missing authentication credentials for REST request [/]","header":{"WWW-Authenticate":["Basic realm="security" charset="UTF-8"","Bearer realm="security"","ApiKey"]}}],"type":"security\_exception","reason":"missing authentication credentials for REST request [/]","header":{"WWW-Authenticate":["Basic realm="security" charset="UTF-8"","Bearer realm="security"","ApiKey"]}},"status":401}]

What can I do?

---

<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 12, 2022, 2:53am UTC](https://discuss.elastic.co/t/load-index-template-into-elasticsearch/318814/2 "2022-12-12T02:53:48Z")

</div>

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