# Encryption used by Logstash to talk to Elastic Search

**URL:** <https://discuss.elastic.co/t/encryption-used-by-logstash-to-talk-to-elastic-search/249755>\
**Category:** Logstash\
**Created:** [September 24, 2020, 7:27am UTC](https://discuss.elastic.co/t/encryption-used-by-logstash-to-talk-to-elastic-search/249755 "2020-09-24T07:27:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pooja](https://avatars.discourse-cdn.com/v4/letter/p/a5b964/32.png) [@Pooja](https://discuss.elastic.co/u/Pooja)\
**Post date:** [September 24, 2020, 7:27am UTC](https://discuss.elastic.co/t/encryption-used-by-logstash-to-talk-to-elastic-search/249755/1 "2020-09-24T07:27:22Z")

</div>

How do you ensure data processing between logstash on premise is secured while in transit to Elasticsearch

---

<div class="post-metadata">

**Author:** ![Frank\_Hassanabad](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/frank_hassanabad/32/49255_2.png) [@Frank\_Hassanabad](https://discuss.elastic.co/u/Frank_Hassanabad)\
**Post date:** [September 25, 2020, 2:20pm UTC](https://discuss.elastic.co/t/encryption-used-by-logstash-to-talk-to-elastic-search/249755/2 "2020-09-25T14:20:56Z")

</div>

Hi @Pooja, this might not be the right forums for you as we deal mostly with Elastic endpoint and security operations server side, but this is easy enough to answer for you here:

This should help you out if you haven't found them yet. It's going to be your typical Authentication and Authorization models for your security needs and you can use TLS/https to encrypt the data and then user based roles for authorization through "basic auth" or through API keys:

> **[Configuring Security in Logstash | Logstash Reference \[7.9\] | Elastic](https://www.elastic.co/guide/en/logstash/current/ls-security.html)**

  

> **[Setting up TLS on a cluster | Elasticsearch Reference \[7.9\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/ssl-tls.html)**

Good luck ☘

---

<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:** [October 23, 2020, 2:21pm UTC](https://discuss.elastic.co/t/encryption-used-by-logstash-to-talk-to-elastic-search/249755/3 "2020-10-23T14:21:00Z")

</div>

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