I am using Logstash (6.4.0 in a Docker Image) to unzip (.gz files) and delete the processed file after EOF. My Input filter is like this,
path => "/input/**/*.gz"
mode => "read"
file_completed_action => "delete"
Interestingly, the file which are not being processed, get immediately processed after I make a restart of the Logstash Docker.
Please let me know, if I need to configure some more Options in the File plugin. Many thanks for the help.