# Logstash 2.1 error on greater than

**URL:** https://discuss.elastic.co/t/logstash-2-1-error-on-greater-than/35950
**Category:** Logstash
**Created:** [November 30, 2015, 8:47pm UTC](https://discuss.elastic.co/t/logstash-2-1-error-on-greater-than/35950 "2015-11-30T20:47:01Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Gabriel\_Rosca](https://avatars.discourse-cdn.com/v4/letter/g/e19adc/32.png) [@Gabriel\_Rosca](https://discuss.elastic.co/u/Gabriel_Rosca)
#### Post date: [November 30, 2015, 8:47pm UTC](https://discuss.elastic.co/t/logstash-2-1-error-on-greater-than/35950/1 "2015-11-30T20:47:01Z")

</div>

Hi guys,

My logstash crash after I upgrade from 1.5 to 2.1 with the bellow error:

NoMethodError: undefined method `\>' for nil:NilClass  
output\_func at (eval):529  
outputworker at /opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.1.0-java/lib/logstash/pipeline.rb:276  
start\_outputs at /opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.1.0-java/lib/logstash/pipeline.rb:193

if "metric" in [tags] {  
if [events.count] \> 3 {  
stdout {  
codec =\> line {  
format =\> "rate: %{events.count} "  
}  
}  
}  
}

---

<div class="post-metadata">

### Author: ![Gabriel\_Rosca](https://avatars.discourse-cdn.com/v4/letter/g/e19adc/32.png) [@Gabriel\_Rosca](https://discuss.elastic.co/u/Gabriel_Rosca)
#### Post date: [November 30, 2015, 9:41pm UTC](https://discuss.elastic.co/t/logstash-2-1-error-on-greater-than/35950/2 "2015-11-30T21:41:35Z")

</div>

Looks like the problem was with the DOT field name. I had to update my config

if "metric" in [tags] {  
if [events][count] \>= 3 {  
stdout {  
codec =\> line {  
format =\> "rate: %{[events][count]}"  
}  
}  
}  
}

---

<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, 5:20am UTC](https://discuss.elastic.co/t/logstash-2-1-error-on-greater-than/35950/3 "2017-07-06T05:20:41Z")

</div>


