I'm using beats/filebeat-kubernetes.yaml at v7.8.1 · elastic/beats · GitHub to ingest K8S. There have been 2 issues:
- Filebeat picks up older logs when there is an other application deployment and generates old indices like filebeat-2021.03.01 etc. (index: filebeat-%{+YYYY.MM.dd}
- Filebeat misses some logs from the new pods unless I terminate Filebeat pods.
I think that the timestamp in filebeat-%{+YYYY.MM.dd} is from system rather than from the log file. Isn't it?