Twitter Client Error "Connection Refused"

Twitter client error {:message=>"Connection refused - Connection refused", :exception=>"Errno::ECONNREFUSED", :backtrace=>["org/jruby/ext/socket/RubyTCPSocket.java:126:in initialize'", "org/jruby/RubyIO.java:871:innew'", "/root/logstash-5.0.0/vendor/bundle/jruby/1.9/gems/logstash-input-twitter-3.0.3/lib/logstash/inputs/twitter/patches.rb:26:in stream'", "/root/logstash-5.0.0/vendor/bundle/jruby/1.9/gems/logstash-input-twitter-3.0.3/lib/logstash/inputs/twitter/patches.rb:58:inrequest'", "/root/logstash-5.0.0/vendor/bundle/jruby/1.9/gems/twitter-5.15.0/lib/twitter/streaming/client.rb:37:in filter'", "/root/logstash-5.0.0/vendor/bundle/jruby/1.9/gems/logstash-input-twitter-3.0.3/lib/logstash/inputs/twitter.rb:138:inrun'", "/root/logstash-5.0.0/logstash-core/lib/logstash/pipeline.rb:331:in inputworker'", "/root/logstash-5.0.0/logstash-core/lib/logstash/pipeline.rb:325:instart_input'"], :options=>nil}

twitter.conf

input {
twitter {
consumer_key => "x"
consumer_secret => "x"
oauth_token => "x"
oauth_token_secret => "x"
keywords => ["modi"]
full_tweet => "true"

    }

}
output {
elasticsearch { hosts => ["localhost:9200"]
index => "twitter"
document_type => "realtime"
}
stdout { codec => rubydebug }
}

Is there a proxy or firewall in the way?

I gave the proxy and port number. Now it is working fine.

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