# Need help on LogStash encryption

**URL:** <https://discuss.elastic.co/t/need-help-on-logstash-encryption/25341>\
**Category:** Logstash\
**Created:** [July 10, 2015, 5:49pm UTC](https://discuss.elastic.co/t/need-help-on-logstash-encryption/25341 "2015-07-10T17:49:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Giri\_Sgs](https://avatars.discourse-cdn.com/v4/letter/g/dbc845/32.png) [@Giri\_Sgs](https://discuss.elastic.co/u/Giri_Sgs)\
**Post date:** [July 10, 2015, 5:49pm UTC](https://discuss.elastic.co/t/need-help-on-logstash-encryption/25341/1 "2015-07-10T17:49:57Z")

</div>

Hi Friends,

Is there any way to read public keys from a keyserver & encrypt messages in logstash.

I am not getting how to read key form keyserver.... any suggestions please ......

- Thanks

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [July 10, 2015, 9:42pm UTC](https://discuss.elastic.co/t/need-help-on-logstash-encryption/25341/2 "2015-07-10T21:42:14Z")

</div>

Can you elaborate?  
What do you want to encrypt, over the wire or the actual message?

---

<div class="post-metadata">

**Author:** ![Giri\_Sgs](https://avatars.discourse-cdn.com/v4/letter/g/dbc845/32.png) [@Giri\_Sgs](https://discuss.elastic.co/u/Giri_Sgs)\
**Post date:** [July 11, 2015, 1:53pm UTC](https://discuss.elastic.co/t/need-help-on-logstash-encryption/25341/3 "2015-07-11T13:53:31Z")

</div>

I have to encrypt actual message.

I have to connect to keystore to get a key for encryption.

In my case Logstash is a producer to kafka message broker.

any suggestions plz ...

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [July 12, 2015, 8:29am UTC](https://discuss.elastic.co/t/need-help-on-logstash-encryption/25341/4 "2015-07-12T08:29:43Z")

</div>

There is nothing that we support here I'm afraid, you'll have to build it yourself.

If you are just using LS to send encrypted data to Kafka then you can probably build your own encryption filter. But if you are wanting to send the data to ES then it's a different story.

---

<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 6, 2017, 5:34am UTC](https://discuss.elastic.co/t/need-help-on-logstash-encryption/25341/5 "2017-07-06T05:34:55Z")

</div>


