HI
I'm new to EKL and trying to learn this. I've installed the logstash-2.2.2 and elasticsearch-2.1.1 in my machine. I'm trying to read the twitters feed as given in the logstash guide but it's throwing the Unauthorized exception. Please follow the configuration in my conf file:
input {
twitter {
consumer_key => "XXXXXXXXXXXXXX"
consumer_secret => "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
follows => ["Oracle","Java"]
full_tweet => true
oauth_token => "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
oauth_token_secret => "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
}
}
output {
elasticsearch {
hosts => ["127.0.0.1:9200"]
}
}
The output when starting the logstash is as below:
Logstash startup completed
←[33m {:exception=>Twitter::Error::Unauthorized, :backtrace=>["C:/EKL/logstash-2
.2.2/vendor/bundle/jruby/1.9/gems/twitter-5.15.0/lib/twitter/streaming/response.
rb:21:in on_headers_complete'", "org/ruby_http_parser/RubyHttpParser.java:370:i n
<<'", "C:/EKL/logstash-2.2.2/vendor/bundle/jruby/1.9/gems/twitter-5.15.0/lib/
twitter/streaming/response.rb:16:in <<'", "C:/EKL/logstash-2.2.2/vendor/bundle/ jruby/1.9/gems/logstash-input-twitter-2.2.0/lib/logstash/inputs/twitter/patches. rb:31:in
stream'", "C:/EKL/logstash-2.2.2/vendor/bundle/jruby/1.9/gems/logstash
-input-twitter-2.2.0/lib/logstash/inputs/twitter/patches.rb:58:in request'", "C :/EKL/logstash-2.2.2/vendor/bundle/jruby/1.9/gems/twitter-5.15.0/lib/twitter/str eaming/client.rb:37:in
filter'", "C:/EKL/logstash-2.2.2/vendor/bundle/jruby/1.9
/gems/logstash-input-twitter-2.2.0/lib/logstash/inputs/twitter.rb:128:in run'", "C:/EKL/logstash-2.2.2/vendor/bundle/jruby/1.9/gems/logstash-core-2.2.2-java/li b/logstash/pipeline.rb:331:in
inputworker'", "C:/EKL/logstash-2.2.2/vendor/bund
le/jruby/1.9/gems/logstash-core-2.2.2-java/lib/logstash/pipeline.rb:325:in `star
t_input'"], :options=>nil, :level=>:warn}←[0m
I've tried to read the feeds from a java program same time from the same machine with same access keys and oauth keys and it's working very well and printing all the feeds there. It is clear now there is no firewall or machine issue here. It seems there is some issue or bug and Logstash end.
Please help to resolve this as it is a show stopper issue for me now.
Thanks
Jitender