How to send an email using logstash only if your log message has particular string

Thanks Badger it helped .