# Logstash Twitter plugin proxy issue

**URL:** <https://discuss.elastic.co/t/logstash-twitter-plugin-proxy-issue/66408>\
**Category:** Logstash\
**Created:** [November 17, 2016, 2:19pm UTC](https://discuss.elastic.co/t/logstash-twitter-plugin-proxy-issue/66408 "2016-11-17T14:19:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vinoj\_Mathew](https://avatars.discourse-cdn.com/v4/letter/v/d2c977/32.png) [@Vinoj\_Mathew](https://discuss.elastic.co/u/Vinoj_Mathew)\
**Post date:** [November 17, 2016, 2:19pm UTC](https://discuss.elastic.co/t/logstash-twitter-plugin-proxy-issue/66408/1 "2016-11-17T14:19:45Z")

</div>

I am using Logstash5.0 with Twitter Plugin and it works fine with out any issue, if there is no proxy.

Some of our machines we have to set the proxy to get connected to the outside world. When I ran with proxy getting the following error

[2016-11-15T15:19:09,900][WARN][logstash.inputs.twitter] Twitter client error {:message=\>"Connection refused - Connection refused", :exception=\>"Errno::ECONNREFUSED

Added the following attributes which is provided with twitter plugin

input{  
twitter {  
use\_proxy =\> true  
proxy\_address =\> "[test.proxy.com](http://test.proxy.com)"  
proxy\_port =\> 80  
consumer\_key =\> "xxxx"  
consumer\_secret =\> "yXItFCUb3g5Rs0AxaRvCezby0HEbglT4p9X4zNkfpWqwYy1nXR"  
oauth\_token =\> "xxxxxxxxxx\*\*`strong text`\*\*"  
oauth\_token\_secret =\> "je06mbqFRI6J42Y7f0oIQ8fswoZ7kAD0OcVP6NLQoprQn"  
type =\> "tweets"  
keywords =\> ["la"]  
}  
}

while runing following error is received

06:18:29.187 [[main]\<twitter] WARN logstash.inputs.twitter - Twitter client error {:message=\>"End of file reached", :exception=\>"EOFError", :backtrace=\>["org/jruby/RubyIO.java:2914:in `readpartial'

Any help is really appreciated

---

<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:** [December 15, 2016, 2:19pm UTC](https://discuss.elastic.co/t/logstash-twitter-plugin-proxy-issue/66408/2 "2016-12-15T14:19:45Z")

</div>

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