I’m having trouble saving a Rule within a pipeline. I’m attempting to pull the TestID and TestName from a message and insert them into new fields. The Rule will not save stating a failed to Post (500) error.
Test threads did not complete within the max testing duration limit for test group IRM - DNS as of 3/28/2019 2:47:51 PM
Emt Service will attempt to abort threads:
Test ID Threads Active:
855a2549-9f43-4c7d-b28f-dbdf28a2fa14|IPADR3APP01P
Here’s the rule
rule “EMT: Generate TestID and TestName fields”
when
has_field(“Instance_Failing”) == “true”
then
let message_field = to_string($message.message);
let ID_Name = regex("(\w+)-(\w+)-(\w+)-(\w+)-(\w+)|(\w+)", to_string($message.message_field));
let TestID_TestName = split("|", value: ID_Name,);
let TestID = TestID_TestName[0];
let TestName = TestID_TestName[1];
set_field(“Instance_TesID”, Instance_TestID);
end
I’ve tried with the following syntax nad it fails as well, but without any errors.
let ID_Name = regex(pattern: “[a-zA-Z0-9]±[a-zA-Z0-9]±[a-zA-Z0-9]±[a-zA-Z0-9]±[a-zA-Z0-9]+|[a-zA-Z0-9]+”, value: message_field, );
Thanks for your help.