Hi All,
I am in China where Twitter is Blocked.
I created my dev app in https://apps.twitter.com and collected all essential Key and tokens.
My Conf file is as below :-
input {
twitter {
consumer_key => 'XXXXX'
consumer_secret => 'XXXXX'
oauth_token => 'XXX-XXXX'
oauth_token_secret => 'XXXX'
keywords => ['Text1']
full_tweet => true
}
}
output {
stdout {
codec => rubydebug
}
}
While running as in localhost mode, I am getting Error.
[2018-04-26T12:06:30,005][WARN ][logstash.inputs.twitter ] Twitter client error {:message=>"Connection refused - connect(2) for "172.16.51.158" port 1080", :exception=>"Errno::ECONNREFUSED", :backtrace=>["org/jruby/ext/socket/RubyTCPSocket.java:134:in
initialize'", "org/jruby/RubyIO.java:875:in
new'", "C:/logstash/vendor/bundle/jruby/2.3.0/gems/logstash-input-twitter-3.0.7/lib/logstash/inputs/twitter/patches.rb:26:instream'", "C:/logstash/vendor/bundle/jruby/2.3.0/gems/logstash-input-twitter-3.0.7/lib/logstash/inputs/twitter/patches.rb:58:in
request'", "C:/logstash/vendor/bundle/jruby/2.3.0/gems/twitter-5.15.0/lib/twitter/streaming/client.rb:37:infilter'", "C:/logstash/vendor/bundle/jruby/2.3.0/gems/logstash-input-twitter-3.0.7/lib/logstash/inputs/twitter.rb:138:in
run'", "C:/logstash/logstash-core/lib/logstash/pipeline.rb:516:ininputworker'", "C:/logstash/logstash-core/lib/logstash/pipeline.rb:509:in
block in start_input'"], :options=>nil}
[2018-04-26T12:06:31,066][WARN ][logstash.inputs.twitter ] Twitter client error {:message=>"Connection refused - connect(2) for "172.16.51.158" port 1080", :exception=>"Errno::ECONNREFUSED", :backtrace=>["org/jruby/ext/socket/RubyTCPSocket.java:134:ininitialize'", "org/jruby/RubyIO.java:875:in
new'", "C:/logstash/vendor/bundle/jruby/2.3.0/gems/logstash-input-twitter-3.0.7/lib/logstash/inputs/twitter/patches.rb:26:instream'", "C:/logstash/vendor/bundle/jruby/2.3.0/gems/logstash-input-twitter-3.0.7/lib/logstash/inputs/twitter/patches.rb:58:in
request'", "C:/logstash/vendor/bundle/jruby/2.3.0/gems/twitter-5.15.0/lib/twitter/streaming/client.rb:37:infilter'", "C:/logstash/vendor/bundle/jruby/2.3.0/gems/logstash-input-twitter-3.0.7/lib/logstash/inputs/twitter.rb:138:in
run'", "C:/logstash/logstash-core/lib/logstash/pipeline.rb:516:ininputworker'", "C:/logstash/logstash-core/lib/logstash/pipeline.rb:509:in
block in start_input'"], :options=>nil}
Please tell me how to resolve this.
I checked other Threads also , but not able to find exact solution.
Thanks.