I've setup logstash as file reader for *.gz log files in "read" mode.
These files are copied from remote server to local folders every 15 minutes under user logstash.
Files and folders have owner "logstash" and mode - 0644.
What i observer, that logstash is reading files, write them to since_db but not removing.
Also there are subfolders with month and date in parent folder.
Example: /opt/logstash/remote_logs/12/22/log.gz
file {
path => ["/opt/logstash/remote_logs/**/*.gz"]
sincedb_path => "/etc/logstash/conf.d/filereader/since_remote.db"
mode => "read"
}
Also i didn't get any errors in logstash-plain.log regarding logstash cannot remove file.
Logstash version is: 7.10.0
Please advise how to solve this problem.
Thank you.