we are using AWS and we terminate instances frequently.
These instances contain an application which logs to file and filebeat sends the logs to logstash.
Before we terminate the instances we remove them from active traffic so no logs are generated.
We want to be sure that all logs have been send to logstash before we terminate the instance and loose logs.
Is there a way to check filebeat's processing status in order to see that the specified files have been processed up to this point?