graylog-plugin-pipeline-processor icon indicating copy to clipboard operation
graylog-plugin-pipeline-processor copied to clipboard

Regex matching not work in when clause without "== true" at the end

Open hc4 opened this issue 9 years ago • 2 comments

Problem description

This condition doesn't match without "== true" at the end.

when
  regex(".*", to_string($message.message)).matches == true

Environment

  • Graylog Version: 2.1.0-beta3
  • Pipeline Processor plugin version: 1.1.0-beta3

hc4 avatar Aug 15 '16 17:08 hc4

I guess this would require more aggressive resolution of return types.

As that can get arbitrarily complex, is limited to only a subset of built-in functions and has a reasonable workaround, I'd push this back.

However, since it is a useful feature I'll keep it open for now.

kroepke avatar Aug 18 '16 10:08 kroepke

At the very least we should return a parser error and not silently substitute false as the value here.

kroepke avatar Nov 28 '17 15:11 kroepke