Sequentially execute filter plugins on listed file inputs

I have two files that I input in logstash using the file plugin

Is there a way that the first file is parsed first?

input {
    file {
        path => "abc.txt"
        type => "first"
    }
    file {
        path => "xyz.txt"
        type => "second"
    }
}
filter {
    if [type] == "first" {
        # Filters that I want to run first
    }

    if [type] == "second" {
        # Filters that I want to run after first
    }
}

No, logstash does not maintain order amongst inputs.

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