Hello,
I would like to run logstash as such:
logstash -e 'input { stdin {}} output { stdout {}}'
but within a docker container, using the logstash official image. Is there a way I can do this? I simply want to test the way it it processes some input text initially, but I don't want to install it directly on the host, because then I need to make sure that the java version is correct and so on, and so forth. So running it within a container would be much more practical.
The problem is that it doesn't work as such, because the default command in the container is a huge java executable, which probably doesn't allow for additional options in a 'normal way'.
Any ideas?
What I've tried thus far is changing the logstash.yml to:
input {
stdin {}
}
output {
stdout {}
}
But I get:
line 3: cannot unmarshal !!str `input {...` into map[string]interface {}