Custom header with a ISO-8601 format in the logstash http_poller input

Is there a way to generate a header with ISO-8601 time when using http_poller input plugin?
e.g:
input {
http_poller {
urls => {
notification => {
method => get
url => "http://host:port/api"
headers => {
"Content-Type" => "application/json"
"X-AuthKey" => "xxxxxxxxxxxxx"
"X-Date" => "????????????"
}
type => "notification_event"
}
}
socket_timeout => 30
request_timeout => 30
codec => "plain"
schedule => { "every" => "1m" }
}
}

where I need to generate current date in ISO8601 format for "X-Date" header everytime the http_poller sends a request.
Any input would be very helpful.

Thanks

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