volkera
(Volker)
April 11, 2017, 1:19pm
1
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 => "Asbury Park Press NJ | Jersey Shore & New Jersey News "
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.
volkera
(Volker)
April 12, 2017, 3:00pm
3
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.
system
(system)
Closed
May 10, 2017, 3:05pm
5
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.