Could you please help me? Here is my logstash.conf and it is working but for this I need to write a cookie manualy. How to login to http://localhost:8080/api/zzzzz/login - make a POST request, get a cookie and than automaticaly put a it to http://localhost:8080/api/xxxxx/yyyyy ?
input {
http_poller {
urls => {
test2 => {
url => "http://localhost:8080/api/xxxxx/yyyyy"
method => "get"
headers => {
Accept => "application/json"
Cookie => "JSESSIONID=xxxxxxx"
}
}
}
request_timeout => 60
# Supports "cron", "every", "at" and "in" schedules by rufus scheduler
schedule => { cron => "* * * * * UTC"}
codec => "json"
# A hash of request metadata info (timing, response headers, etc.) will be sent here
metadata_target => "http_poller_metadata"
}
}
output {
stdout {
codec => rubydebug
}
}