Special characters in regex pattern

I’m trying to write an if statement in Logstash to check if the message starts with a certain pattern, but Logstash crashes without any useful reason given in the log. I’m wondering if I’m not escaping the special character properly? Do you notice anything wrong with this line? I’m trying to drop any log which begins with </System

if [message] =~ /^<\/System/ { drop {} }

What does it log?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.