Skip to content

Instantly share code, notes, and snippets.

@arslanm
Last active July 21, 2017 06:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arslanm/4a71e1b12c1f5dcc3f7ac736fe483f41 to your computer and use it in GitHub Desktop.
Save arslanm/4a71e1b12c1f5dcc3f7ac736fe483f41 to your computer and use it in GitHub Desktop.
filebeat.yml config file for filebeat as DaemonSet
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