# Encrypted connection between Logstash and Elasticsearch

**URL:** <https://discuss.elastic.co/t/encrypted-connection-between-logstash-and-elasticsearch/277091>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-security\
**Created:** [June 25, 2021, 4:34pm UTC](https://discuss.elastic.co/t/encrypted-connection-between-logstash-and-elasticsearch/277091 "2021-06-25T16:34:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![manfred](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/manfred/32/77079_2.png) [@manfred](https://discuss.elastic.co/u/manfred)\
**Post date:** [June 25, 2021, 4:34pm UTC](https://discuss.elastic.co/t/encrypted-connection-between-logstash-and-elasticsearch/277091/1 "2021-06-25T16:34:21Z")

</div>

Hi. How to encrypt communication between Logstash and Elasticsearch DB ? From what I read it uses by default plain HTTP, is there a way to make it HTTPS ?

---

<div class="post-metadata">

**Author:** ![elasticforme](https://avatars.discourse-cdn.com/v4/letter/e/f05b48/32.png) [@elasticforme](https://discuss.elastic.co/u/elasticforme)\
**Post date:** [June 25, 2021, 4:42pm UTC](https://discuss.elastic.co/t/encrypted-connection-between-logstash-and-elasticsearch/277091/2 "2021-06-25T16:42:29Z")

</div>

yes you can use all kind of security

[https://www.elastic.co/blog/configuring-ssl-tls-and-https-to-secure-elasticsearch-kibana-beats-and-logstash](https://www.elastic.co/blog/configuring-ssl-tls-and-https-to-secure-elasticsearch-kibana-beats-and-logstash)

---

<div class="post-metadata">

**Author:** ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)\
**Post date:** [June 28, 2021, 4:51am UTC](https://discuss.elastic.co/t/encrypted-connection-between-logstash-and-elasticsearch/277091/3 "2021-06-28T04:51:32Z")

</div>

The documentation for configuring security (including HTTPS) is available here: [Configure security for the Elastic Stack | Elasticsearch Guide [7.13] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/configuring-stack-security.html)

---

<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:** [July 26, 2021, 4:52am UTC](https://discuss.elastic.co/t/encrypted-connection-between-logstash-and-elasticsearch/277091/4 "2021-07-26T04:52:32Z")

</div>

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