I am working on elastalert. I am able to send the email alerts whenever my condition matches. Now my use case is I want to send email whenever any error is encountered.