graylog2-server icon indicating copy to clipboard operation
graylog2-server copied to clipboard

Using "match" as variable in pipeline rule causes uncaught exception

Open dmuensterer opened this issue 1 year ago • 0 comments

Expected Behavior

The rule editor has a syntax checker. It should highlight all syntax errors.

Current Behavior

When defining a variable named match an uncaught backend exception is triggered.

Possible Solution

Fix syntax checking.

Steps to Reproduce (for bugs)

Create pipeline rule and define a variable named match. E.g.

rule "test"
when
    has_field("message")
then
    let match = to_string($message.message);
end

dmuensterer avatar Feb 22 '24 11:02 dmuensterer