I am using the following input plugin to parse ".gz" files in all subfolders into logstash:
input {
file {
#type => "gzip"
path => "/home/xyz/data/sample/**/**/*"
mode => "read"
file_completed_action => "log"
file_completed_log_path => "/home/xyz/data/log.txt"
}
}
The final level subfolder contains ".gz" files but also a metadata file with ".info" extension. I want LS to only push data from ".gz" files and ignore ".info" files.
How do I do that?
Using "type" doesn't help.