:message=>"undefined method for twitter input plugin

Hello !
I'm not sure what is going on, I cannot ingest tweets from Twitter with my basic configuration:

 input {
        twitter {
                consumer_key => "my consumer key"
                consumer_secret => "my consumer secret"
                oauth_token => "my token"
                oauth_token_secret => "my token secret"
                keywords => [ "logstash", "elasticsearch" ]
                full_tweet => true
                use_proxy => true
                proxy_address => "myproxy"
                proxy_port => "3128"
        }
}

output {
  stdout {
    codec => rubydebug
  }
  elasticsearch {
    protocol => "http"
    host => "localhost"
    index => "twitter"
    document_type => "tweet"
  }
}

Here's the full trace:

{:timestamp=>"2016-10-07T13:10:21.917000+0200", :message=>"undefined method `filter' for nil:NilClass", :exception=>#<NoMethodError: undefined method `filter' for nil:NilClass>, :backtrace=>["/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-input-twitter-2.2.2/lib/logstash/inputs/twitter.rb:128:in `run'", "/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.4.0-java/lib/logstash/pipeline.rb:342:in `inputworker'", "/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.4.0-java/lib/logstash/pipeline.rb:336:in `start_input'"], :options=>nil, :level=>:warn}

I'm on Debian Jessie, logstash 2.4.0 and Elasticsearch 2.4.1.
Is there any problem to my configuration ? Thank you very much.

1 Like

Hi.

No news on this issue ?

I just open a new topic on similar issue : [2.3.1] Reload Twitter input conf => undefined method `sample' for nil:NilClass

--
Julien