Running the below pipeline and my events are not being split into fields and the tag isn't being added. I would have to assume there is something wrong with my if
statement but I'm not sure what. The tag Exchange
is added by the filebeat agent and appears in the ElasticSearch output. The source field value is a partial match on a directory location that some of the files are being pulled from. No errors appear in the Logstash debug logs either.
if "Exchange" in [tags] and [source] =~ "\\FrontEnd\\ProtocolLog\\SmtpReceive" {
csv {
source => "message"
columns => [ "date","connector-id","session-id","sequence-number","local-endpoint","remote-endpoint","event","data","context" ]
convert => {
"date" => "date_time"
}
add_tag => ["FrontEnd SMTP Receive"]
}
}