# Filebeat to Logstash Basic Authentication

**URL:** <https://discuss.elastic.co/t/filebeat-to-logstash-basic-authentication/212320>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [December 18, 2019, 12:27pm UTC](https://discuss.elastic.co/t/filebeat-to-logstash-basic-authentication/212320 "2019-12-18T12:27:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![JY\_DT](https://avatars.discourse-cdn.com/v4/letter/j/5e9695/32.png) [@JY\_DT](https://discuss.elastic.co/u/JY_DT)\
**Post date:** [December 18, 2019, 12:27pm UTC](https://discuss.elastic.co/t/filebeat-to-logstash-basic-authentication/212320/1 "2019-12-18T12:27:03Z")

</div>

Hello,

I'm using a typical setup with Filebeat agents running on different Windows clients and Logstash and Elasticsearch setup on a separate server (Windows). I'm using the latest version 7.5.

I need to configure basic authentication from Filebeat to Logstash.  
This option is available for Elasticsearch:  
output.elasticsearch:  
#Optional protocol and basic auth credentials.  
#protocol: "https"  
#username: "elastic"  
#password: "changeme"

but not for Logstash. So, how do I configure basic authentication between Filebeat and Logstash in that case.

Thanks in advance,  
Jy

---

<div class="post-metadata">

**Author:** ![Magnus\_Kessler](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnus_kessler/32/42001_2.png) [@Magnus\_Kessler](https://discuss.elastic.co/u/Magnus_Kessler)\
**Post date:** [December 18, 2019, 12:49pm UTC](https://discuss.elastic.co/t/filebeat-to-logstash-basic-authentication/212320/2 "2019-12-18T12:49:25Z")

</div>

The beats protocol used to communicate between Filebeat and Logstash does not support basic authentication. It does however support PKI based authentication, where you'd use a client certificate on the Filebeat side, and set up the Logstash input to require a client certificate for its encrypted channel. See the [documentation](https://www.elastic.co/guide/en/beats/filebeat/current/configuring-ssl-logstash.html) for more details.

---

<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:** [January 15, 2020, 12:58pm UTC](https://discuss.elastic.co/t/filebeat-to-logstash-basic-authentication/212320/3 "2020-01-15T12:58:44Z")

</div>

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