so, I think I must be doing something wrong (as usual), and I can’t find anything (Google, docs.graylgo, anywhere) about what I could be doing wrong.
I’m trying a simple rule: if there are two fields, I want to concatenate them as “field1 (field2)”, like this…
rule "test"
when
has_field("event_localhost_ip") AND has_field("event_source")
then
let part_a = concat(to_string($message.event_source),to_string(" ("));
let part_b = concat(to_string($message.event_localhost_ip),to_string(")"));
let event_source_ip = concat(part_a,part_b);
set_field("event_source_ip");
set_field("event_pipeline", true);
end
“event_pipline” is there for debug’s - and it shows up. But “event_source_ip” doesn’t.
yeah, I thought as much.(about being a breaking change). No worries, I do think this should be a future improvement, like a major version change, though.