# Secure Connection Between Filebeat & Logstash using Basic Auth

**URL:** <https://discuss.elastic.co/t/secure-connection-between-filebeat-logstash-using-basic-auth/352269>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [February 1, 2024, 9:57am UTC](https://discuss.elastic.co/t/secure-connection-between-filebeat-logstash-using-basic-auth/352269 "2024-02-01T09:57:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dhiwakar\_Ravikumar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dhiwakar_ravikumar/32/131318_2.png) [@Dhiwakar\_Ravikumar](https://discuss.elastic.co/u/Dhiwakar_Ravikumar)\
**Post date:** [February 1, 2024, 9:57am UTC](https://discuss.elastic.co/t/secure-connection-between-filebeat-logstash-using-basic-auth/352269/1 "2024-02-01T09:57:24Z")

</div>

I want to secure the connection between filebeat & logstash using basic authentication. For logstash, I figured out that we can enable authentication for the logstash http input plugin BUT  
neither is such an option available for the input beats plugin for logstash  
nor such an option available for the output logstash plugin for filebeat.

What are my options to secure besides SSL ?

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [February 1, 2024, 10:22am UTC](https://discuss.elastic.co/t/secure-connection-between-filebeat-logstash-using-basic-auth/352269/2 "2024-02-01T10:22:05Z")

</div>

> [@Dhiwakar\_Ravikumar](#):
>
> What are my options to secure besides SSL ?

On Logstash side there is none, if you want to secure communication between beats and logstash you need to use SSL.

If you do not want to use SSL you will need to secure the communicaton outside Logstash using a Firewall for example to only allow specific IP addresses.

---

<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:** [February 29, 2024, 12:22pm UTC](https://discuss.elastic.co/t/secure-connection-between-filebeat-logstash-using-basic-auth/352269/3 "2024-02-29T12:22:58Z")

</div>

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