Last active
April 10, 2019 05:51
-
-
Save rav94/8f078a75ff975c25b951e751e2b56115 to your computer and use it in GitHub Desktop.
Filebeat Configuration File
This file contains 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: docker | |
containers: | |
path: "/usr/share/dockerlogs/data" | |
stream: "stdout" | |
ids: | |
- "*" | |
cri.parse_flags: true | |
combine_partial: true | |
exclude_files: ['\.gz$'] | |
processors: | |
- add_docker_metadata: | |
host: "unix:///var/run/docker.sock" | |
filebeat.config.modules: | |
path: ${path.config}/modules.d/*.yml | |
reload.enabled: false | |
# setup filebeat to send output to logstash | |
output.logstash: | |
hosts: ["54.149.45.40:5044"] | |
# Write Filebeat own logs only to file to avoid catching them with itself in docker log files | |
logging.level: error | |
logging.to_files: false | |
logging.to_syslog: false | |
loggins.metrice.enabled: false | |
logging.files: | |
path: /var/log/filebeat | |
name: filebeat | |
keepfiles: 7 | |
permissions: 0644 | |
ssl.verification_mode: none |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment