39 lines
842 B
YAML
39 lines
842 B
YAML
|
filebeat.config:
|
||
|
modules:
|
||
|
path: ${path.config}/modules.d/*.yml
|
||
|
reload.enabled: false
|
||
|
|
||
|
filebeat.autodiscover:
|
||
|
providers:
|
||
|
- type: docker
|
||
|
hints.enabled: true
|
||
|
|
||
|
processors:
|
||
|
- add_cloud_metadata: ~
|
||
|
|
||
|
output.elasticsearch:
|
||
|
hosts: '${ELASTICSEARCH_HOSTS:elasticsearch:9200}'
|
||
|
username: '${ELASTICSEARCH_USERNAME:}'
|
||
|
password: '${ELASTICSEARCH_PASSWORD:}'
|
||
|
|
||
|
#filebeat.inputs:
|
||
|
# - type: container
|
||
|
# paths:
|
||
|
# - '/var/lib/docker/containers/*/*.log'
|
||
|
#
|
||
|
#processors:
|
||
|
# - add_docker_metadata:
|
||
|
# host: "unix:///var/run/docker.sock"
|
||
|
#
|
||
|
# - decode_json_fields:
|
||
|
# fields: ["message"]
|
||
|
# target: "json"
|
||
|
# overwrite_keys: true
|
||
|
#
|
||
|
#output.elasticsearch:
|
||
|
# hosts: ["elasticsearch:9200"]
|
||
|
# indices:
|
||
|
# - index: "filebeat-%{[agent.version]}-%{+yyyy.MM.dd}"
|
||
|
#
|
||
|
#logging.json: true
|
||
|
#logging.metrics.enabled: false
|