I have a source event stream which is coming from a log tail. I'm trying to enrich this by using the filter directive. Some searching mentioned using #{ENV['MYVAR']}
would work but I am getting an empty string as the value. The filter is as below:
<filter logtag.mytag>
@type record_transformer
enable_ruby
<record>
mykey "#{ENV['MYVAR']}"
</record>
</filter>
Is it possible to add an env variable the way I'm doing it, and if so what am I doing incorrectly? Any help is appreciated.