Created
May 26, 2020 23:38
-
-
Save jasodeep/caada4e10ce55add63f02cff9a65c9be to your computer and use it in GitHub Desktop.
filebeat 7.x sample config file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
filebeat.inputs: | |
- type: log | |
paths: | |
- /var/log/nginx/access.log | |
fields: | |
tags: ['nginx_access_log'] | |
service: foobar | |
env: uat | |
fields_under_root: true | |
exclude_files: ['\.gz$'] | |
max_bytes: 786432 | |
output.logstash: | |
hosts: ["logstash.foobar.com:443"] | |
logging.level: info | |
logging.to_files: true | |
logging.files: | |
path: /var/log/filebeat | |
name: filebeat | |
keepfiles: 7 | |
permissions: 0644 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment