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

41 lines
731 B
YAML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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