Logstash Http Poller Method Head

I'm trying to retrieve data from an CUSTOM API which only allows HEAD requests, consequently the result is an empty body.
where could the header response data be?
is it possible to capture the data from a response header?
http poller support header method?

input {
http_poller {
urls => {
mytest => {
method => head
url => "https://myurl"
headers => {
"X-IBM-Client-Id" => "myid"
"X-IBM-Client-Secret" => "mysecret"
"Content-Type" => "mycontenttype"
}
}
request_timeout => 30
schedule => { cron => "* * * * * UTC"}
metadata_target => "http_poller_metadata"
}
}

filter {
}

output {
stdout { codec => rubydebug }
}

Thanks

Yes. See the metadata_target option. Note that it has a default value.

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