# Twitter Logstash - undefined method \`filter' for nil:NilClass

**URL:** <https://discuss.elastic.co/t/twitter-logstash-undefined-method-filter-for-nil-nilclass/59045>\
**Category:** Logstash\
**Created:** [August 26, 2016, 2:06pm UTC](https://discuss.elastic.co/t/twitter-logstash-undefined-method-filter-for-nil-nilclass/59045 "2016-08-26T14:06:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Azlirn](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/azlirn/32/11619_2.png) [@Azlirn](https://discuss.elastic.co/u/Azlirn)\
**Post date:** [August 26, 2016, 2:06pm UTC](https://discuss.elastic.co/t/twitter-logstash-undefined-method-filter-for-nil-nilclass/59045/1 "2016-08-26T14:06:29Z")

</div>

Hi all,

I am working on utilizing the ELK stack to do some live Twitter research and I am running into some issues when utilizing large tracks.  
I know by Twitter's standards, the track size has a limit of 400 terms with a byte size of each term between 1 and 60 bytes.

I have checked my "track" in the configuration file and I am using 220 unique terms.

I do notice that if I keep my "track" REALLY short (like less than ten terms) I don't seem to run into this issue.

So my issues are,

1. How do I fix the error?
2. This error doesn't seem to match the scenario, thoughts?

- Version: 2.3.4

- Operating System: OSX

- Config File: [http://hastebin.com/ovasusufos.coffee](http://hastebin.com/ovasusufos.coffee)

- Full Error:  
`undefined method 'filter' for nil:NilClass {:exception=>#<NoMethodError: undefined method 'filter' for nil:NilClass>, :backtrace=>["/Users/.../logstash-2.3.4/vendor/bundle/jruby/1.9/gems/logstash-input-twitter-2.2.2/lib/logstash/inputs/twitter.rb:128:in 'run'", "/Users/.../logstash-2.3.4/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.4-java/lib/logstash/pipeline.rb:342:in ' 'inputworker'", "/Users/.../logstash-2.3.4/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.4-java/lib/logstash/pipeline.rb:336:in 'start_input'"], :options=>nil, :level=>:warn}`

---

<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:41am UTC](https://discuss.elastic.co/t/twitter-logstash-undefined-method-filter-for-nil-nilclass/59045/2 "2017-07-06T04:41:24Z")

</div>


