I am trying to create a rule in my pipeline where I can store (either programmatically or by hard-coding it) an array in my message.
Below is my code:
rule "sample_rule"
when
to_string($message.desired_column_name) == "test_value"
then
let msg = create_message("", "");
let id = to_string($message.desired_column_name);
let labels = ["FOO", "BAR"]; <<<<<<<<<<<<< Trying to store as an array here, but array data type is not (natively)supported.
set_field("id", id, "", "", msg);
set_field("labels", labels, "", "", msg);
route_to_stream("output_stream", "", msg);
end
I’ve gone through the docs and a couple of community posts as well, but haven’t found anything that really says that arrays are supported.
Is there a way to have a variable of the array data type in the Graylog Pipeline, perhaps by some plugin?
Move over to Github - in the Graylog server repository create a new issue, describe the feature you want to have, give context why you want that.
~once a week the developers look at new issues and that if seen as doable will be placed on the roadmap.