Last active
July 21, 2017 06:35
-
-
Save arslanm/4a71e1b12c1f5dcc3f7ac736fe483f41 to your computer and use it in GitHub Desktop.
filebeat.yml config file for filebeat as DaemonSet
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.registry_file: /var/log/filebeat.registry | |
logging.level: ${LOG_LEVEL:error} | |
# if you want cloud metadata included in your elastic | |
processors: | |
- add_cloud_metadata: | |
fields_under_root: true | |
fields: | |
program: filebeat_k8s | |
hostname: ${FILEBEAT_HOST:${HOSTNAME}} | |
filebeat.prospectors: | |
- input_type: log | |
paths: | |
- /var/log/containers/*.log | |
symlinks: true | |
tail_files: true | |
json.message_key: log | |
json.keys_under_root: true | |
json.add_error_key: true | |
multiline.pattern: '^[[:space:]]' | |
multiline.match: after | |
output.logstash: | |
hosts: [ "${LOGSTASH_HOST}:${LOGSTASH_PORT}" ] | |
ssl.enabled: true | |
ssl.certificate_authorities: ["/etc/ssl/cacert"] | |
ssl.certificate: "/etc/ssl/cert" | |
ssl.key: "/etc/ssl/key" | |
ssl.key_passphrase: "password" | |
ssl.verification_mode: full | |
ssl.supported_protocols: [TLSv1.1, TLSv1.2] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment