# :message=\>"undefined method for twitter input plugin

**URL:** <https://discuss.elastic.co/t/message-undefined-method-for-twitter-input-plugin/62481>\
**Category:** Logstash\
**Created:** [October 7, 2016, 11:14am UTC](https://discuss.elastic.co/t/message-undefined-method-for-twitter-input-plugin/62481 "2016-10-07T11:14:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon45667325](https://avatars.discourse-cdn.com/v4/letter/a/d78d45/32.png) [@anon45667325](https://discuss.elastic.co/u/anon45667325)\
**Post date:** [October 7, 2016, 11:14am UTC](https://discuss.elastic.co/t/message-undefined-method-for-twitter-input-plugin/62481/1 "2016-10-07T11:14:10Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![jlegrand](https://avatars.discourse-cdn.com/v4/letter/j/34f0e0/32.png) [@jlegrand](https://discuss.elastic.co/u/jlegrand)\
**Post date:** [November 7, 2016, 12:50pm UTC](https://discuss.elastic.co/t/message-undefined-method-for-twitter-input-plugin/62481/2 "2016-11-07T12:50:19Z")

</div>

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](https://discuss.elastic.co/t/2-3-1-reload-twitter-input-conf-undefined-method-sample-for-nil-nilclass/65218)

--  
Julien

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 4:30am UTC](https://discuss.elastic.co/t/message-undefined-method-for-twitter-input-plugin/62481/3 "2017-07-06T04:30:48Z")

</div>


