Fully tested Filebeat module to ingest Exim 4 logs
- Copy
module/exim4
to/usr/share/filebeat/module/
- Copy
modules.d/exim4.yml.disabled
to/etc/filebeat/modules.d/exim4.yml
All configuration is done in /etc/filebeat/modules.d/exim4.yml
.
By default both main and reject logs are ingested. This behaviour can be changed by setting the corresponding enabled
flag to true
or false
respectively:
- module: exim4
main:
enabled: true
reject:
enabled: false
The module expects the main log in /var/log/exim/main.log
and the reject log in /var/log/exim/reject.log
. It's possible to use custom paths for the logs by specifying var.paths
:
- module: exim4
main:
enabled: true
var.paths:
- /var/log/exim_mainlog
reject:
enabled: true
var.paths:
- /var/log/exim_rejectlog