Hi
I have an Azure file that I want to monitor using FileBeat. I am using the helm chart for this purpose, with the following values.yaml
:
nodeSelector: { beta.kubernetes.io/os: linux }
extraVolumes:
- name: module-that-produces-logs
persistentVolumeClaim:
claimName: module-that-produces-logs
extraVolumeMounts:
- name: module-that-produces-logs
mountPath: /mnt/log/module-that-produces-logs
readOnly: true
filebeatConfig:
filebeat.yml: |
output.elasticsearch:
hosts: ["elasticsearch-master.logging.svc.cluster.local:9200"]
filebeat.inputs:
- type: log
file_identity.path: ~
enabled: true
paths:
- /mnt/log/*/*/*.log
- /mnt/log/*/*.log
- /mnt/log/*/*/*.txt
- /mnt/log/*/*.txt
However, I am experiencing two issues that are causing me a headache:
- Filebeat sends the entire .log file contents instead of just the latest changes to elasticsearch. I hoped that this would be resolved by using
file_identity.path
, but no such luck. Any advice on how to move forward would be appreciated. - This configuration creates two pods of filebeat, which subsequently mounts two instances of the azure file and sends two duplicates to elasticsearch. How do I reduce to just one pod? I cant seem to find this option in the filebeat helm chart
values.yaml
.
Thanks in advance,
/David