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" } }'
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?
--verbose
or --debug
?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.
© 2020. All Rights Reserved - Elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.