Logstash HTTP plugin dynamic URL

Dynamic URL with below does not work. When I replace the "oid" with a constant it works fine.

Can I have values changed in URL?

Thanks

output{
http {
format=>"json"
http_method=>"post"
url=>"http://localhost:9200/my/associate/%{[oid]}/_update?pretty"
}
stdout{
codec => json
}
}

answering my own question .. for someone with similar issues

Path referred in url "[script][params][pos][employee_oid]" is really how JSON data is created in "filter" including hierarchy

output{
http {
format=>"json"
http_method=>"post"
url=>"http://localhost:9200/my/associate/%{[script][params][pos][employee_oid]}/_update?pretty"
}
stdout{
codec => json
}
}

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