Can reproduce 
My error looks slightly different, though:
The given configuration is invalid. Reason: undefined method `get' for {"url"=>"..."}:hash:
Did you mean? gem
With this configuration:
input {
http_poller {
urls => {
localhost => {
url => "..."
}
}
codec => "json_lines"
schedule => { every => "60s" }
metadata_target => "[@metadata][http_poller]"
}
}