I’ve tried to read up the docs and this forum before posting this but couldn’t find similar issue.
I’m trying to implement a pipeline rule like below to route certain message based on a string.
rule "New_Route" when contains(to_string($message.message), "\"source\"\:\"something\"") then route_to_stream("new stream"); remove_from_stream("All messages"); end
Now what makes this tricky is that what I’m looking for a string like this
And at the same time we have to put the search substring within double quotes.
So I have to escape the double quotes, but the UI doesn’t let me to save the rule this way and throw an error “Saving rule “undefined” failed with status: There was an error fetching a resource: . Additional information: Not available”
I have tried to put the search substring into single quotes as well but it didn’t work.
Any idea would be appreciated.