Hello,
The link below have many examples you can use. I’m still learning how to write pipeline/s and I get most of my information here when I need to write one.
Hope that helps
EDIT:
I tried to create these pipelines rules for you. If anything I maybe on the right track.
rule "Fields that DO match"
when
has_field("my_field") AND contains(to_string($message.my_field),"CertUtil.exe") == has_field("some_other_field") AND contains(to_string($message.some_other_field),"bob")
then
set_field("new_field","true");
end
rule "Fields that DONT match"
when
has_field("my_field") AND contains(to_string($message.my_field),"CertUtil.exe") == has_field("some_other_field") AND contains(to_string($message.does_not_exist),"bob")
then
set_field("new_field","alert");
end
Rule "route to stream"
when
has_field("new_field")AND contains(to_string($message.new_field),"alert")
then
route_to_stream(id:"5d8acba383d72e04cba96317");
end