Logstash twiter input plugin error

Hello guys,
I'm using Logstash 6.1.0 and ElasticSearch 6.1.0.

I'm using testing logstash twitter input plugin with this configuration. (passwords from twitter dev API end ES configuration).

input {
twitter {
consumer_key => "myConsumerKey"
consumer_secret => "myConsumerSecret"
oauth_token => "myauthtoken"
oauth_token_secret => "myauthtokanesecret"
keywords => [ "keyword"]
full_tweet => true
}
}
output {
stdout { codec => rubydebug }
elasticsearch {
hosts => "http://localhost:9200"
user => "elastic"
password => "password"
index => "mytweets"
}
}

I have an error:
[2017-12-25T11:59:36,253][WARN ][logstash.inputs.twitter ] Twitter client error {:message=>"", :exception=>"Twitter::Error::Unauthorized", :backtrace
=>["C:/appl/elk/logstash-6.1.0/vendor/bundle/jruby/2.3.0/gems/twitter-5.15.0/lib/twitter/streaming/response.rb:21:in on_headers_complete'", "org/ruby _http_parser/RubyHttpParser.java:370:in<<'", "C:/appl/elk/logstash-6.1.0/vendor/bundle/jruby/2.3.0/gems/twitter-5.15.0/lib/twitter/streaming/respons
e.rb:16:in <<'", "C:/appl/elk/logstash-6.1.0/vendor/bundle/jruby/2.3.0/gems/logstash-input-twitter-3.0.7/lib/logstash/inputs/twitter/patches.rb:31:instream'", "C:/appl/elk/logstash-6.1.0/vendor/bundle/jruby/2.3.0/gems/logstash-input-twitter-3.0.7/lib/logstash/inputs/twitter/patches.rb:58:in requ est'", "C:/appl/elk/logstash-6.1.0/vendor/bundle/jruby/2.3.0/gems/twitter-5.15.0/lib/twitter/streaming/client.rb:37:infilter'", "C:/appl/elk/logstas
h-6.1.0/vendor/bundle/jruby/2.3.0/gems/logstash-input-twitter-3.0.7/lib/logstash/inputs/twitter.rb:138:in run'", "C:/appl/elk/logstash-6.1.0/logstash -core/lib/logstash/pipeline.rb:524:ininputworker'", "C:/appl/elk/logstash-6.1.0/logstash-core/lib/logstash/pipeline.rb:517:in `block in start_input'
"], :options=>nil}

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