Closed jgough closed 4 years ago
The environment variables are scrubbed so they won't affect the test execution. To explicitly indicate that an environment variable should be passed on to the Logstash child invoke LFV with --keep-env MYVAR
. I should document this in the readme file so people won't have to read the --help
fine print.
Sorry, didn't spot that option in there! Thanks for all your work on this :-)
It looks like environment variables aren't being passed through to logstash when it is run. For example with this config file:
When I run
MYVAR=foo logstash -f ./test.conf
I get the correct output:
If I run
MYVAR=foo logstash-filter-verifier test.json test.conf
Then logstash exits with an error:
I'm actually trying to use variables to change the config values in a test environment so it would be good if this were supported.