I am trying to make logstash installation work by simply executing the command given in the documentation to echo back what ever typed.But that gives me the following error.
My command
C:\logstash-1.4.0\bin>logstash.bat agent -e 'input{stdin{}}output{stdout{}}'
And the error
Error: Expected one of #, input, filter, output at line 1, column 1 (byte 1) aft
er
You may be interested in the '--configtest' flag which you can
use to validate logstash's configuration before you choose
to restart a running system."
Please help.Thanks in advance!
Try without quotes
I am testing with logstash-1.4.0 on linux with this tutorial.
I think it is possible a bug on this version.
For example, I test this command on both linux and window. Everything is ok on linux. But it will occur your error at window!!
For my recommendation, you can write your configuration in a file. For example, save
input{stdin{}}output{stdout{}}
to a file call "stdin.conf". Then when you start logstash, don't use-e
flag, instead use-f
and specific your configuration file.Hope this can help you.
I get this error when I run
-e
with--debug
. I have to remove-e
. Example: