As per https://www.elastic.co/guide/en/logstash/current/environment-variables.html
Tried v2.3 and v5.0
E.g.
$ export LS_BEATS_IN_PORT=5044
sample config file
input {
beats {
port => ${LS_BEATS_IN_PORT}
}
}
And it fails
$ bin/logstash -t -f test.conf
The given configuration is invalid. Reason: Expected one of #, ", ', -, [, { at line 3, column 13 (byte 31) after input {
beats {
port => {:level=>:fatal}
If I replace with a number, it works.