Skip to content

Instantly share code, notes, and snippets.

@cgutshall
Created January 10, 2020 21:10
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 cgutshall/ea322d018e481e8bf54f704189cdb23a to your computer and use it in GitHub Desktop.
Save cgutshall/ea322d018e481e8bf54f704189cdb23a to your computer and use it in GitHub Desktop.
filebeat.yml
filebeat.autodiscover:
providers:
- type: kubernetes
host: ${NODE_NAME}
hints.enabled: true
hints.default_config:
type: container
paths:
- /var/log/containers/*${data.kubernetes.container.id}.log
output.elasticsearch:
hosts: ["${ELASTICSEARCH_HOST:elasticsearch}:${ELASTICSEARCH_PORT:9200}"]`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment