Getting environment variables as array

Hi, I´m trying to set PATH in file input plugin from env variables, but doesn´t seem to work.

I run a "complex" logic to set files that I want to process with logstash before execute it, so I set a env variable with paths, PATHS="file1", "file2"...

In logstash conf

input {
file {
...
PATH => ["${PATHS}"]
...

but, "File paths must be absolute, relative path specified" error raises. I know PATH=>["${file1}","${file2}"] works, but I don´t know how many files i´ll use in advance, so this is not a solution in my case.

Is it possible to pass in an array (as array or as string) to logstash conf vía env. variables?

Is it possible to pass in an array (as array or as string) to logstash conf vía env. variables?

Most likely not. Perhaps you can generate the Logstash configuration file or supply the files via the command line?

logstash -e 'input { file { path => [...] } }' -f other-config.conf