filebeat: prospectors: - paths: - "/data/logs/catalina.*.out" input_type: filebeat-log document_type: tomcat-log - paths: - "/data/logs/nginx*/logs/*.log" input_type: filebeat-log document_type: nginx-log registry_file: /etc/registry/mark output: logstash: hosts: ["logstash:5044"] logging: files: rotateeverybytes: 10485760 # = 10MB
filebeat 需要在每台需要采集的机器上面都启动一个容器。
执行 docker-compose up -d 查看启动的 容器