Http_poller: dynamic URL parameters

Is it possible to use a variables instead of hardcoded date in the url?

http_poller {

type => app_android
urls => {
app_android => {
method => get
url => "https://api.app.com/android/rankings.json?date=2017-04-08&country=DE"
headers => {
Accept => "application/json"
}
auth => {
user => "0653999ae743ab916b716c9889e496a9292182"
password => ""
}
}
}
proxy => "http://127.0.0.1:3140"
request_timeout => 60
schedule => { every => "24h"}
codec => "json"
metadata_target => "http_poller_metadata"
}

It doesn't look like the URLs support the sprintf interpolation that would allow you to reference environment variables.

hi magnus, thx for the reply. Do you know if there are feature requests pending regarding dynamic URL parametes or usage of environment variables?

I don't know, but look on GitHub.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.