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 {} }