# Does the twitter plugin work with elasticsearch 5.5?

**URL:** <https://discuss.elastic.co/t/does-the-twitter-plugin-work-with-elasticsearch-5-5/97026>\
**Category:** Elasticsearch\
**Created:** [August 14, 2017, 9:58pm UTC](https://discuss.elastic.co/t/does-the-twitter-plugin-work-with-elasticsearch-5-5/97026 "2017-08-14T21:58:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![aliyesami](https://avatars.discourse-cdn.com/v4/letter/a/ecb155/32.png) [@aliyesami](https://discuss.elastic.co/u/aliyesami)\
**Post date:** [August 14, 2017, 9:58pm UTC](https://discuss.elastic.co/t/does-the-twitter-plugin-work-with-elasticsearch-5-5/97026/1 "2017-08-14T21:58:45Z")

</div>

I am getting the following error and looking on web I don't see any resolution , please advise .

> [2017-08-14T17:50:54,446][WARN][logstash.inputs.twitter] Twitter client error {:message=\>"undefined method `filter' for nil:NilClass", :exception=>"NoMethodError", :backtrace=>["/root/logstash-5.5.1/vendor/bundle/jruby/1.9/gems/logstash-input-twitter-3.0.5/lib/logstash/inputs/twitter.rb:138:in `run'", "/root/logstash-5.5.1/logstash-core/lib/logstash/pipeline.rb:456:in `inputworker'", "/root/logstash-5.5.1/logstash-core/lib/logstash/pipeline.rb:449:in `start\_input'"], :options=\>nil}

my conf file is

input {  
twitter {  
consumer\_key =\> "ytFgKrCUwfxxxx"  
consumer\_secret =\> "XRwTqIpERddcDn4vUFfxxxxxxxxxxxxxxxxxxxxxxxx"  
oauth\_token =\> "773602797757534208-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"  
oauth\_token\_secret =\> "qctQkQ0qITGxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"  
keywords =\> ["@Trump"]  
full\_tweet =\> true  
use\_proxy =\> true  
proxy\_address =\> "[http://our](http://our) proxy host name"  
proxy\_port =\> 8080

```
}

```

}

filter {  
}

output {  
elasticsearch {  
hosts =\> "hadoop5"  
index =\> "my\_tweets"  
}

---

<div class="post-metadata">

**Author:** ![aliyesami](https://avatars.discourse-cdn.com/v4/letter/a/ecb155/32.png) [@aliyesami](https://discuss.elastic.co/u/aliyesami)\
**Post date:** [August 15, 2017, 12:18pm UTC](https://discuss.elastic.co/t/does-the-twitter-plugin-work-with-elasticsearch-5-5/97026/2 "2017-08-15T12:18:44Z")

</div>

someone must have used twitter plugin with elasticsearch 5.x , can you please reply ?

---

<div class="post-metadata">

**Author:** ![kerk1v](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kerk1v/32/57535_2.png) [@kerk1v](https://discuss.elastic.co/u/kerk1v)\
**Post date:** [September 7, 2017, 8:13am UTC](https://discuss.elastic.co/t/does-the-twitter-plugin-work-with-elasticsearch-5-5/97026/3 "2017-09-07T08:13:29Z")

</div>

Basically I get the same error as you do, but only when refreshing the Logstash configuration or when stopping logstash. After a while the messages eventually go away.

Also, the Logstash Twitter plugin uses quite an indecent amount of CPU. I am not making heavy use of it, have just one filter that strips some fields I am not interested in, and nothing else.

Probably it's not one of [elastic.co](http://elastic.co)'s priorities to work on this plugin.

---

<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:** [October 5, 2017, 8:13am UTC](https://discuss.elastic.co/t/does-the-twitter-plugin-work-with-elasticsearch-5-5/97026/4 "2017-10-05T08:13:29Z")

</div>

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