ansible-roles/filebeat/templates/log2mail.j2
Jérémy Lecour 264941e5a0
All checks were successful
continuous-integration/drone/push Build is passing
WIP: configure log2mail to catch errors in filebeat/metricbeat logs
It doesn't work yet because of files permissions.
2020-04-03 10:14:01 +02:00

5 lines
190 B
Django/Jinja

file = /var/log/filebeat/filebeat
pattern = "\bERROR\b"
mailto = {{ filebeat_log2mail_alert_email or log2mail_alert_email or general_alert_email | mandatory }}
template = /etc/log2mail/mail