I can use filters such as "environment" to add an environment variable to my logs with the logstash agent. This is very useful when you need to enrich your logs with metadata, for example:
filter {
environment {
add_field_from_env => {
"myvar" => "MY_ENV_VAR"
}
}
}
Is it possible to do the same with logstash-forwarder or are you restricted to a network and a files+fields section as shown in the example on github?
Thanks