Hi,
I just had a strange issue, I had enabled the Elasticsearch module in FileBeat. Today, during a healthcheck, I saw that my coordinating node had over 90% disk utilization.
On logging on and validating with du -sh
I could not add up the disk usage. I ran lsof +L1
and found out that a lot of files were kept open by FileBeat even after they were rolled over by Elasticsearch.
I have now added the following lines to my modules.d/elasticsearch.yml
:
- module: elasticsearch
server:
# Added now to remove old files #
input:
close_renamed: true
close_timeout: 5m
enabled: true
#################################
# Server log
var.paths:
- /var/log/elasticsearch/irmelk.log
Now I see that filebeat clears the file when its done with it and does not keep the context open. Is this the correct approach to solve the issue?