Posting data to logstash docker image?

I'm running the logstash docker image, when started it said there was a process on port 9600. So I restarted opening port 9600 like so:

docker run -p 9600:9600 -it --rm logstash -e 'input { stdin { } } output { stdout { } }'

How can I post data to the instance? I've tried using curl with:

curl --data "param1=value1&param2=value2" localhost:9600

But I get back:

curl: (56) Recv failure: Connection reset by peer