# Default Logstash Encryption to Elastic Cloud?

**URL:** <https://discuss.elastic.co/t/default-logstash-encryption-to-elastic-cloud/196530>\
**Category:** Logstash\
**Created:** [August 23, 2019, 1:09pm UTC](https://discuss.elastic.co/t/default-logstash-encryption-to-elastic-cloud/196530 "2019-08-23T13:09:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tyler\_hilsabeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tyler_hilsabeck/32/45249_2.png) [@tyler\_hilsabeck](https://discuss.elastic.co/u/tyler_hilsabeck)\
**Post date:** [August 23, 2019, 1:09pm UTC](https://discuss.elastic.co/t/default-logstash-encryption-to-elastic-cloud/196530/1 "2019-08-23T13:09:10Z")

</div>

Will Logstash automatically encrypt traffic to an elastic cloud instance if the cloud endpoint it specified as https? Upon packet inspection it seems that it is but I want to verify.

This is my pipefile config:

```
output{
  elasticsearch{
      hosts => ["https://XYXYXYXYXYXYXYXY:9243"]
      user => "XXXXX"
      password => "YYYYYYYYY"
      index => "ZYZYZYZYZY"
      ilm_rollover_alias => "ZYZYZYZYZY"
      ilm_pattern => "000001"
      ilm_policy => "XYXYXYXYXY"
  }
}

```

Thanks!

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [August 23, 2019, 2:07pm UTC](https://discuss.elastic.co/t/default-logstash-encryption-to-elastic-cloud/196530/2 "2019-08-23T14:07:56Z")

</div>

Yes, if you specify https then it will use TLS.

---

<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 20, 2019, 2:08pm UTC](https://discuss.elastic.co/t/default-logstash-encryption-to-elastic-cloud/196530/3 "2019-09-20T14:08:09Z")

</div>

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