Skip to content

Instantly share code, notes, and snippets.

@jasodeep
Created May 26, 2020 23:38
Show Gist options
  • Save jasodeep/caada4e10ce55add63f02cff9a65c9be to your computer and use it in GitHub Desktop.
Save jasodeep/caada4e10ce55add63f02cff9a65c9be to your computer and use it in GitHub Desktop.
filebeat 7.x sample config file
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