# Error: undefined method \`\<=' for nil:NilClass\>,

**URL:** https://discuss.elastic.co/t/error-undefined-method-for-nil-nilclass/74873
**Category:** Logstash
**Created:** [February 13, 2017, 11:56am UTC](https://discuss.elastic.co/t/error-undefined-method-for-nil-nilclass/74873 "2017-02-13T11:56:32Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![polymorfiqcoder](https://avatars.discourse-cdn.com/v4/letter/p/e495f1/32.png) [@polymorfiqcoder](https://discuss.elastic.co/u/polymorfiqcoder)
#### Post date: [February 13, 2017, 11:56am UTC](https://discuss.elastic.co/t/error-undefined-method-for-nil-nilclass/74873/1 "2017-02-13T11:56:32Z")

</div>

try to push windows EventLog into logstash and get pereodicaly .. `\<=' for nil:NilClass\>,  
Woindows 2008r2 w/Cyrilic locale

```
input {
    
    # get events from NxLog via tcp+json
    tcp {
        type => "EventLog"
	codec => json { charset => "CP1251" }
        host => "127.0.0.1"
        port => "3515"
        tags => ["tcpjson"]
    }
       
output {
    stdout { codec => rubydebug }
}
}

```

> 16:46:08.365 [[main]\>worker3] ERROR logstash.pipeline - Exception in pipelineworker, the pipeline stopped processing new events, please check your filter configuration and restart Logstash. {"exception"=\>#\<NoMethodError: undefined method `<=' for nil:NilClass>, "backtrace"=>["(eval):606:in `initialize'", "org/jruby/RubyArray.java:1613:in `each'", "(eval):604:in `initialize'", "org/jruby/RubyProc.java:281:in `call'", "(eval):623:in `initialize'", "org/jruby/RubyArray.java:1613:in `each'", "(eval):618:in `initialize'", "org/jruby/RubyProc.java:281:in `call'", "(eval):293:in `filter\_func'", "C:/Apps/logstash/logstash-core/lib/logstash/pipeline.rb:300:in `filter_batch'", "org/jruby/RubyProc.java:281:in `call'", "C:/Apps/logstash/logstash-core/lib/logstash/util/wrapped\_synchronous\_queue.rb:201:in `each'", "org/jruby/RubyHash.java:1342:in `each'", "C:/Apps/logstash/logstash-core/lib/logstash/util/wrapped\_synchronous\_queue.rb:200:in `each'", "C:/Apps/logstash/logstash-core/lib/logstash/pipeline.rb:299:in `filter\_batch'", "C:/Apps/logstash/logstash-core/lib/logstash/pipeline.rb:287:in `worker_loop'", "C:/Apps/logstash/logstash-core/lib/logstash/pipeline.rb:263:in `start\_workers'"]}  
> 16:46:08.458 [LogStash::Runner] FATAL logstash.runner - An unexpected error occurred! {:error=\>#\<NoMethodError: undefined method `<=' for nil:NilClass>, :backtrace=>["(eval):606:in `initialize'", "org/jruby/RubyArray.java:1613:in `each'", "(eval):604:in `initialize'", "org/jruby/RubyProc.java:281:in `call'", "(eval):623:in `initialize'", "org/jruby/RubyArray.java:1613:in `each'", "(eval):618:in `initialize'", "org/jruby/RubyProc.java:281:in `call'", "(eval):293:in `filter\_func'", "C:/Apps/logstash/logstash-core/lib/logstash/pipeline.rb:300:in `filter_batch'", "org/jruby/RubyProc.java:281:in `call'", "C:/Apps/logstash/logstash-core/lib/logstash/util/wrapped\_synchronous\_queue.rb:201:in `each'", "org/jruby/RubyHash.java:1342:in `each'", "C:/Apps/logstash/logstash-core/lib/logstash/util/wrapped\_synchronous\_queue.rb:200:in `each'", "C:/Apps/logstash/logstash-core/lib/logstash/pipeline.rb:299:in `filter\_batch'", "C:/Apps/logstash/logstash-core/lib/logstash/pipeline.rb:287:in `worker_loop'", "C:/Apps/logstash/logstash-core/lib/logstash/pipeline.rb:263:in `start\_workers'"]}  
> 16:46:08.614 [Ruby-0-Thread-8: C:/Apps/logstash/vendor/bundle/jruby/1.9/gems/logstash-input-tcp-4.1.0/lib/logstash/inputs/tcp.rb:150] ERROR logstash.inputs.tcp - An error occurred. Closing connection {:client=\>"127.0.0.1:57806", :exception=\>#\<Errno::EBADF: Bad file descriptor - Bad file descriptor\>, :backtrace=\>["org/jruby/RubyIO.java:3037:in `sysread'", "C:/Apps/logstash/vendor/bundle/jruby/1.9/gems/logstash-input-tcp-4.1.0/lib/logstash/inputs/tcp.rb:240:in `read'", "C:/Apps/logstash/vendor/bundle/jruby/1.9/gems/logstash-input-tcp-4.1.0/lib/logstash/inputs/tcp.rb:164:in `handle_socket'", "C:/Apps/logstash/vendor/bundle/jruby/1.9/gems/logstash-input-tcp-4.1.0/lib/logstash/inputs/tcp.rb:153:in `server\_connection\_thread'"]}

---

<div class="post-metadata">

### Author: ![polymorfiqcoder](https://avatars.discourse-cdn.com/v4/letter/p/e495f1/32.png) [@polymorfiqcoder](https://discuss.elastic.co/u/polymorfiqcoder)
#### Post date: [February 17, 2017, 4:41am UTC](https://discuss.elastic.co/t/error-undefined-method-for-nil-nilclass/74873/2 "2017-02-17T04:41:27Z")

</div>

some more logs:

> ```
> 09:37:51.826 [[main]>worker1] ERROR logstash.pipeline - Exception in pipelineworker, the pipeline stopped processing new events, please check your filter configuration and restart Logstash. {"exception"=>#<NoMethodError: undefined method `<=' for nil:NilClass>, "backtrace"=>["(eval):722:in `initialize'", "org/jruby/RubyArray.java:1613:in `each'", "(eval):720:in `initialize'", "org/jruby/RubyProc.java:281:in `call'", "(eval):753:in `initialize'", "org/jruby/RubyArray.java:1613:in `each'", "(eval):748:in `initialize'", "org/jruby/RubyProc.java:281:in `call'", "(eval):330:in `filter_func'", "C:/Apps/logstash/logstash-core/lib/logstash/pipeline.rb:300:in `filter_batch'", "org/jruby/RubyProc.java:281:in `call'", "C:/Apps/logstash/logstash-core/lib/logstash/util/wrapped_synchronous_queue.rb:201:in `each'", "org/jruby/RubyHash.java:1342:in `each'", "C:/Apps/logstash/logstash-core/lib/logstash/util/wrapped_synchronous_queue.rb:200:in `each'", "C:/Apps/logstash/logstash-core/lib/logstash/pipeline.rb:299:in `filter_batch'", "C:/Apps/logstash/logstash-core/lib/logstash/pipeline.rb:287:in `worker_loop'", "C:/Apps/logstash/logstash-core/lib/logstash/pipeline.rb:263:in `start_workers'"]}
> 09:37:52.513 [LogStash::Runner] FATAL logstash.runner - An unexpected error occurred! {:error=>#<NoMethodError: undefined method `<=' for nil:NilClass>, :backtrace=>["(eval):722:in `initialize'", "org/jruby/RubyArray.java:1613:in `each'", "(eval):720:in `initialize'", "org/jruby/RubyProc.java:281:in `call'", "(eval):753:in `initialize'", "org/jruby/RubyArray.java:1613:in `each'", "(eval):748:in `initialize'", "org/jruby/RubyProc.java:281:in `call'", "(eval):330:in `filter_func'", "C:/Apps/logstash/logstash-core/lib/logstash/pipeline.rb:300:in `filter_batch'", "org/jruby/RubyProc.java:281:in `call'", "C:/Apps/logstash/logstash-core/lib/logstash/util/wrapped_synchronous_queue.rb:201:in `each'", "org/jruby/RubyHash.java:1342:in `each'", "C:/Apps/logstash/logstash-core/lib/logstash/util/wrapped_synchronous_queue.rb:200:in `each'", "C:/Apps/logstash/logstash-core/lib/logstash/pipeline.rb:299:in `filter_batch'", "C:/Apps/logstash/logstash-core/lib/logstash/pipeline.rb:287:in `worker_loop'", "C:/Apps/logstash/logstash-core/lib/logstash/pipeline.rb:263:in `start_workers'"]}
> 09:37:52.528 [Ruby-0-Thread-19: C:/Apps/logstash/vendor/bundle/jruby/1.9/gems/logstash-input-tcp-4.1.0/lib/logstash/inputs/tcp.rb:150] ERROR logstash.inputs.tcp - An error occurred. Closing connection {:client=>"127.0.0.1:50456", :exception=>#<Errno::EBADF: Bad file descriptor - Bad file descriptor>, :backtrace=>["org/jruby/RubyIO.java:3019:in `sysread'", "C:/Apps/logstash/vendor/bundle/jruby/1.9/gems/logstash-input-tcp-4.1.0/lib/logstash/inputs/tcp.rb:240:in `read'", "C:/Apps/logstash/vendor/bundle/jruby/1.9/gems/logstash-input-tcp-4.1.0/lib/logstash/inputs/tcp.rb:164:in `handle_socket'", "C:/Apps/logstash/vendor/bundle/jruby/1.9/gems/logstash-input-tcp-4.1.0/lib/logstash/inputs/tcp.rb:153:in `server_connection_thread'"]}
> 
> ```

---

<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: [March 17, 2017, 4:41am UTC](https://discuss.elastic.co/t/error-undefined-method-for-nil-nilclass/74873/3 "2017-03-17T04:41:39Z")

</div>

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