sudo filebeat modules list
filebeat modules enable apache2 mysql
filebeat -e --modules nginx -M "nginx.access.var.paths=[/var/log/nginx/access.log*]"
- module: nginx access: var.paths: ["/var/log/nginx/access.log*"]
- module: nginx
access:
var.paths: ["/var/log/nginx/access.log*"]
Path ${path.config}/modules.d/*.yml
${path.config}/modules.d/*.yml
You can find useful configuration files templates on the Filebeat directory of this Github: https://github.com/Alexandre-Guth/Elastic-Stack-FileBeat-Logspout/tree/master/FileBeat
Source: https://www.elastic.co/guide/en/beats/filebeat/current/configuration-filebeat-options.html
There was an error while loading. Please reload this page.