Logstash integrate with Elasticsearch

Trying to send output to elasticsearch from logstash is not working in windows. elasticsearch is running on it default port. Both are latest versions.

logstash -e 'input { stdin {} } output { elasticsearch { host => "localhost" } }'

Are you typing text directly to Logstash's stdin in your command console?

  • If yes, is there no output from Logstash at all? What if you start it with --verbose or --debug?
  • If no, how are you feeding it data?

Yes. Trying from command prompt. I would like to feed the data from stdin after logstash is started.

But this command is working
\bin>logstash -e 'input { stdin {} } output { stdout {} }'
io/console not supported; tty will not be manipulated
Logstash startup completed

Yes, Logstash has started and is waiting for you to type something and press Enter.

Thanks for reply. stdin and stdout is working. But in place of stdout elasticsearch is not working.error in log files:
"Error: Expected one of #, => at line 1, column 50 (byte 50) after output { elasticsearch { host "

Some how it is working if i run the same command from .conf file.