Metricbeat 5.0.0-alpha5 processors range works other than documented


I use metricbeat 5.0.0-alpha5 with processors and range.
I tried:

- drop_event:

which leads to configuration error:

2016/08/11 07:51:14.398256 beat.go:174: INFO Setup Beat: metricbeat; Version: 5.0.0-alpha5
2016/08/11 07:51:14.398327 condition.go:488: ERR Failed to initialize lookup condition: unexpected field pct
2016/08/11 07:51:14.398350 beat.go:284: CRIT Exiting: error initializing processors: unexpected field pct

I tried:

- drop_event:
      range: 0.0001

which has no configuration error and leads to:

2016-08-11T09:55:05+02:00 DBG New condition range: map[<= 0.0001]
2016-08-11T12:05:42+02:00 DBG Drop event {

which finally works.
So maybe documentation need to be updated.

Thank you @kaem2111 for reporting this issue. Indeed it's a bug in the documentation, and we will fix it as soon as possible. For more details about the conditions, you can also check the meta issue, that confirms the format of the range condition.

Here is the PR that solves the issue:

This topic was automatically closed after 21 days. New replies are no longer allowed.