Parse only files with given extension into logstash

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.

The path directive takes a glob-pattern. Try specifying a glob that only matches what you are looking for, e.g. /home/xyz/data/sample/**/**/*.gz.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.