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:in
new'", "/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:in
request'", "/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:in
run'", "/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:in
start_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 }
}