Graylog2 / Graylog2/graylog2-server

from_input does not return true

Open
#19,407 4 comments 0 reactions 0 assignees View on GitHub
bug triaged
Dominant language
Java
Stars
8.1k
Forks
1.1k
Avg merge
1d 20h
Merged PRs (30d)
217

Description

I've never used this function before, but since the pipeline editor defaults to the UI, i thought i'd give the pipeline GUI editor a try.

I cannot get any pipeline rules to correctly return true when i use `from_input`. I'd tried both the input name as well as the input id.

Using `get_field("gl2_source_input") == ""` does work.

Example:
image

Pipeline rule:

```
rule "route for testing duplicating messages"
when
// get_field("gl2_source_input") == "662017e1cfcecf538d9a72f5z" ||
from_input(
id : "662017e1cfcecf538d9a72f5"
)
then
set_field(
field : "aaatest",
value : "test"
);
end
```

## Expected Behavior

`from_input` returns true if the condition is true

## Current Behavior

`from_input` always returns false.

## Possible Solution

## Steps to Reproduce (for bugs)

1. Create a pipeline using `from_input` using the rule editor tester

## Context

## Your Environment

* Graylog Version: 6.0.1
* Browser version: Google Chrome Version 125.0.6422.61 (Official Build) (arm64)

Please let me know if there are any questions.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.