I'm using an http output plugin to push events to EventStore. I am unable to get a successful POST and get an failure do to a 307 http status code. I've found several postings indicating that the http output plugin should be following the redirect and I have set the follow_redirects = true. Any help understanding why this is not working would be helpful. The experiment can be found here https://github.com/Insanityisnice/logstash-rabbit-to-eventstore. I'm using docker to host everything, instructions are in the readme.md
The config file:
input {
rabbitmq {
host => ["${RABBITMQ_HOSTNAME}"]
exchange => "test"
exchange_type => "topic"
key => "test.#"
metadata_enabled => true
}
}
filter {
}
output {
stdout {
codec => rubydebug
}
http {
url => "http://${EVENTSTORE_HOSTNAME}:${EVENTSTORE_PORT}/streams/test"
http_method => "post"
content_type => "application/json"
follow_redirects => true
headers => { "ES-EventType" => "Test.Created" }
format => "message"
message => "{'data':'a'}"
}
}