youtubebeat/vendor/github.com/elastic/beats/filebeat/tests/open-file-handlers/filebeat.yml

42 lines
731 B
YAML
Raw Normal View History

2018-11-18 11:08:38 +01:00
filebeat.prospectors:
# Reads logs generated by the generator containers
- type: log
paths:
- /logfiles/*
close_inactive: 1m
ignore_older: 2m
clean_inactive: 5m
# Reads docker container logs
#- type: log
# paths:
# - /var/lib/docker/containers/*/*-json.log
# Reads system logs
#- type: log
# paths:
# - /var/log/*
#
# Outputs, send to ES and file
output.elasticsearch:
enabled: true
hosts: ["${ES_HOST}"]
username: "${ES_USER}"
password: "${ES_PASSWORD}"
template.enabled: true
bulk_max_size: 2048
output.file:
enabled: true
path: "/tmp/filebeat"
rotate_every_kb: 10000
number_of_files: 7
# Logging
logging.to_files: true
logging.level: debug
logging.files:
path: /var/log/filebeat