Is there a way to read environmental values in logstash config file . I want to pass in an env value to write test cases for logstash config but I am not able to do so . For ex I want to do the following in my logatsh config file
input {
if [ $ENV_VALUE] = test {
stdin{}
}else{
Default config
}
}
filter {..}
output
{
if [ $ENV_VALUE] = test {
stdout { codec => rubydebug }
}else{
Default config
}
}