Bug in http_poller: Environment variables don't always evaluate with http_poller

You can see the full details here:http://pastebin.com/3sLsemjU
but the basic problem is that env substitution is not happening on all the fields.
Specifically, this env substitution doesn't work:

I need this form so that I can specify request headers.

input {
http_poller {
urls => {
test2 => {
method => get
url => "http://${ADDRESS}:8080/Fred.txt"
}
}
interval => 60
}
}

This substitution does work, but this form of using the http_poller doesn't seem to allow headers to be specified.
input {

http_poller {
urls => { "test2" => "http://${ADDRESS}:8080/Fred.txt" }
interval => 30
}

}

1 Like

any development on this? I have the exact same problem here and cant find anything else anywhere on the cybernets.

I filed a pull request concerning this. Hopefully it will be considered. https://github.com/elastic/logstash/pull/6392

Thanks to @emile for the patch. It has been merged and will be available in 5.4.0 of Logstash

Hi @suyograo,

Why not in the 5.3.0 ?