У меня есть filebeat в docker в windows 10.
Dockerfile:
FROM docker.elastic.co/beats/filebeat:7.6.0
COPY filebeat.yml /usr/share/filebeat/filebeat.yml
COPY sample.log /usr/share/filebeat/sample.log
USER root
RUN chown root:filebeat /usr/share/filebeat/filebeat.yml
RUN chown root:filebeat /usr/share/filebeat/sample.log
USER filebeat
filebeat.yml:
filebeat.inputs:
- type: log
enabled: true
paths:
- /usr/share/filebeat/sample.log
output.file:
path: /usr/share/filebeat
filename: filebeat-output
тогда я просто запускаю docker. И проверьте вывод, с помощью docker exe c -i filebeat bash и не увидите файл filebeat-output
Что я делаю неправильно? Почему вывод не генерирует?