I wanted to read an environment variable so I used the environment filter.
This was my config:
input
{stdin{}}
filter{
environment{
add_metadata_from_env => {"hadoop" => "HADOOP_HOME"}
}
}
output{stdout{codec=>rubydebug}}
where "HADOOP_HOME" is my environment variable.
The output however did not show the extra field "hadoop" and its not giving me any errors too.
So what is wrong? Please help!