Give path as an argument

Hi!
Is there a way to give path as an argument?

I was thinking at something like this:

input {

    file {

        path => argv

        sincedb_path => "NUL"

        start_position => "beginning"

    }

}

logstash c:\path_to_file\input_file.csv -f logstash_config.conf

Thanks,
Vince

You can use environment variables. Not quite the same but you could get it to work depending on what you are trying to do.

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