# Enable TLS logstash to \<-\> Elasticsearch

**URL:** https://discuss.elastic.co/t/enable-tls-logstash-to-elasticsearch/246986
**Category:** Logstash
**Created:** [August 31, 2020, 4:43pm UTC](https://discuss.elastic.co/t/enable-tls-logstash-to-elasticsearch/246986 "2020-08-31T16:43:59Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Fetakunen](https://avatars.discourse-cdn.com/v4/letter/f/ccd318/32.png) [@Fetakunen](https://discuss.elastic.co/u/Fetakunen)
#### Post date: [August 31, 2020, 4:43pm UTC](https://discuss.elastic.co/t/enable-tls-logstash-to-elasticsearch/246986/1 "2020-08-31T16:43:59Z")

</div>

Hi, i'm trying to secure my stack to enable alerts. Elasticsearch and Kibana is up and running but when i'm trying to enable https to the elasticsearch from logstash i get crash.

The output config looks like this:

output {  
if [type] == "firewall" {  
elasticsearch {  
id =\> "pfelk"  
hosts =\> ["[https://localhost:9200](https://localhost:9200)"]  
index =\> "pfelk-%{+YYYY.MM.dd}"  
manage\_template =\> true  
template =\> "/etc/logstash/conf.d/templates/pf-geoip.json"  
template\_name =\> "pf-geoip"  
template\_overwrite =\> false  
cacert =\> "/etc/logstash/va.ca"  
user =\> "yyy"  
password =\> "xxx"  
}  
}

tailing the log i get this output:

[2020-08-31T16:41:42,589][INFO][logstash.outputs.elasticsearch][main] Elasticsearch pool URLs updated {:changes=\>{:removed=\>, :added=\>[[https://yyyyyy:xxxxxx@localhost:9200/](https://yyyyyy:xxxxxx@localhost:9200/)]}}  
[2020-08-31T16:41:42,967][ERROR][logstash.agent] Failed to execute action {:id=\>:main, :action\_type=\>LogStash::ConvergeResult::FailedAction, :message=\>"Could not execute action: PipelineAction::Create, action\_result: false", :backtrace=\>nil}

I see nothing the in Elasticsearch log.

---

<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: [September 28, 2020, 4:44pm UTC](https://discuss.elastic.co/t/enable-tls-logstash-to-elasticsearch/246986/2 "2020-09-28T16:44:08Z")

</div>

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