mirror of
https://github.com/MichaelCade/90DaysOfDevOps.git
synced 2025-01-31 01:45:03 +07:00
31 lines
718 B
YAML
31 lines
718 B
YAML
## Filebeat configuration
|
|
## https://github.com/elastic/beats/blob/master/deploy/docker/filebeat.docker.yml
|
|
#
|
|
|
|
filebeat.config:
|
|
modules:
|
|
path: ${path.config}/modules.d/*.yml
|
|
reload.enabled: false
|
|
|
|
filebeat.autodiscover:
|
|
providers:
|
|
# The Docker autodiscover provider automatically retrieves logs from Docker
|
|
# containers as they start and stop.
|
|
- type: docker
|
|
hints.enabled: true
|
|
|
|
processors:
|
|
- add_cloud_metadata: ~
|
|
|
|
output.elasticsearch:
|
|
hosts: ['http://elasticsearch:9200']
|
|
username: elastic
|
|
password: ${ELASTIC_PASSWORD}
|
|
|
|
## HTTP endpoint for health checking
|
|
## https://www.elastic.co/guide/en/beats/filebeat/current/http-endpoint.html
|
|
#
|
|
|
|
http.enabled: true
|
|
http.host: 0.0.0.0
|