# Filebeat 6 fails to connect to proxy server

**URL:** <https://discuss.elastic.co/t/filebeat-6-fails-to-connect-to-proxy-server/146955>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [September 1, 2018, 8:06pm UTC](https://discuss.elastic.co/t/filebeat-6-fails-to-connect-to-proxy-server/146955 "2018-09-01T20:06:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![victor3](https://avatars.discourse-cdn.com/v4/letter/v/57b2e6/32.png) [@victor3](https://discuss.elastic.co/u/victor3)\
**Post date:** [September 1, 2018, 8:06pm UTC](https://discuss.elastic.co/t/filebeat-6-fails-to-connect-to-proxy-server/146955/1 "2018-09-01T20:06:24Z")

</div>

I am upgrading filebeat 5 to 6.2. As part of upgrade, I introduce filebeat 6 ssl to replace stunnel. It works well when no proxy between filebeat 6 and Logstash server. With proxy server, filebeat 6 fails to connect to proxy server. Previously with filebeat 5(no ssl) and stunnel, it worked with proxy server without problem.

Appreciate any help.

**filebeat 6 config:**

output.logstash:  
enabled: true  
hosts: ["my\_logstash\_server:443"]  
proxy\_url: 'socks5://my\_proxy\_server:10008'  
proxy\_use\_local\_resolver: true

**Error in filebeat 6 log:**  
...  
|2018-09-02T05:08:49.237+1000|INFO|instance/beat.go:213|Setup Beat: filebeat; Version: 6.2.2|  
|2018-09-02T05:08:49.239+1000|INFO|transport/proxy.go:53|proxy host: 'my\_proxy\_server:10008'  
....  
2018-09-02T05:08:50.348+1000 ERROR pipeline/output.go:74 Failed to connect: proxy: SOCKS5 proxy at my\_proxy\_server:10008 has unexpected version 60

---

<div class="post-metadata">

**Author:** ![kvch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kvch/32/72058_2.png) [@kvch](https://discuss.elastic.co/u/kvch)\
**Post date:** [September 3, 2018, 8:28am UTC](https://discuss.elastic.co/t/filebeat-6-fails-to-connect-to-proxy-server/146955/2 "2018-09-03T08:28:08Z")

</div>

Could you please share you full configuration formatted using `</>`? How did you enable SSL?  
The error you are facing seems to be a proxy error.

---

<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 1, 2018, 8:28am UTC](https://discuss.elastic.co/t/filebeat-6-fails-to-connect-to-proxy-server/146955/3 "2018-10-01T08:28:10Z")

</div>

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