Graylog2 / graylog-plugin-pipeline-processor

[DEPRECATED] Graylog Pipeline Message Processor Plugins
https://www.graylog.org/
GNU General Public License v3.0
21 stars 15 forks source link

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

Open hc4 opened 8 years ago

hc4 commented 8 years ago

Problem description

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

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

Environment

kroepke commented 8 years ago

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 commented 6 years ago

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