logstash-plugins / logstash-filter-throttle

Apache License 2.0
10 stars 14 forks source link

Use before_count > after_count #3

Closed duylong closed 8 years ago

duylong commented 9 years ago

Hi,

We can not use this case:

throttle {
  after_count => 5
  before_count => 6
  ...
}

When "before_count" greater than "after_count", "after_count" is never considered.

frapex commented 8 years ago

That is an invalid range. Works as designed.

Invalid range:

puts (5..6).to_a

Result:

(nothing returned)

Good range:

puts (5..6).to_a

Result:

5
6