How to grep the logs for errors and send an email
https://docs.fluentd.org/how-to-guides/splunk-like-grep-and-...
The slack plugin you could use instead of email:
https://github.com/sowawa/fluent-plugin-slack