# Write a plugin to enable logstash password protection

**URL:** <https://discuss.elastic.co/t/write-a-plugin-to-enable-logstash-password-protection/45609>\
**Category:** Logstash\
**Created:** [March 28, 2016, 4:32pm UTC](https://discuss.elastic.co/t/write-a-plugin-to-enable-logstash-password-protection/45609 "2016-03-28T16:32:58Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![M\_Situation](https://avatars.discourse-cdn.com/v4/letter/m/7ba0ec/32.png) [@M\_Situation](https://discuss.elastic.co/u/M_Situation)\
**Post date:** [March 28, 2016, 4:32pm UTC](https://discuss.elastic.co/t/write-a-plugin-to-enable-logstash-password-protection/45609/1 "2016-03-28T16:32:58Z")

</div>

Hi everyone,

I'm actually playing around elastic technologies and I want to write a logstash plugin to enable password protection. Does something like this already exist? If not, anyone can give me skeleton or sample configs to achieve it?

Thanks a lot!!

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [March 29, 2016, 5:47am UTC](https://discuss.elastic.co/t/write-a-plugin-to-enable-logstash-password-protection/45609/2 "2016-03-29T05:47:32Z")

</div>

Password protection of _what_?

---

<div class="post-metadata">

**Author:** ![M\_Situation](https://avatars.discourse-cdn.com/v4/letter/m/7ba0ec/32.png) [@M\_Situation](https://discuss.elastic.co/u/M_Situation)\
**Post date:** [March 29, 2016, 8:38pm UTC](https://discuss.elastic.co/t/write-a-plugin-to-enable-logstash-password-protection/45609/3 "2016-03-29T20:38:26Z")

</div>

Thanks for replying @magnusbaeck. As you see the shield plugin of elasticsearch, I want to do something similar i.e protect the access to my logstash by password. For instance, when a user want to ship his logs to my logstash using for example filebeat or topbeat, he need to pass credentials in his config files. I know tls exist for this purpose, but is it possible to have something like this?

---

<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:** [March 29, 2016, 8:43pm UTC](https://discuss.elastic.co/t/write-a-plugin-to-enable-logstash-password-protection/45609/4 "2016-03-29T20:43:40Z")

</div>

This would only be useful for a very small subset of plugins, eg how would it work with the tcp input?

---

<div class="post-metadata">

**Author:** ![M\_Situation](https://avatars.discourse-cdn.com/v4/letter/m/7ba0ec/32.png) [@M\_Situation](https://discuss.elastic.co/u/M_Situation)\
**Post date:** [March 29, 2016, 9:23pm UTC](https://discuss.elastic.co/t/write-a-plugin-to-enable-logstash-password-protection/45609/5 "2016-03-29T21:23:27Z")

</div>

Ok I see what you mean. thank you!!!

---

<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:04am UTC](https://discuss.elastic.co/t/write-a-plugin-to-enable-logstash-password-protection/45609/6 "2017-07-06T05:04:51Z")

</div>

Closed on July 6, 2017, 5:04am UTC


