Logstash integrate with Elasticsearch


(Kishore Kumar) #1

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" } }'


(Magnus Bäck) #2

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?

(Kishore Kumar) #3

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


(Magnus Bäck) #4

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


(Kishore Kumar) #5

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 "


(Kishore Kumar) #6

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


(system) #7