For one month I am using logstash, so I am still learning basics about it, and also elasticsearch and kibana. Yesterday, I tried to install and start using the new version "logstash 1.4.0". To do this, I follow this link , but when I try to run logstash with the following command :
bin\logstash -e 'input { stdin { } } output { stdout {} }'
I get this error :
“bin” is not recognized as an internal or external command, operable program or batch file.
The output is as follows:
No such command "-e"
Usage: logstash <command> [command args]
Run a command with the --help flag to see the arguments.
For example: logstash agent --help
Available commands:
agent - runs the logstash agent
version - emits version info about this logstash
web - runs the logstash web ui (called Kibana)
rspec - runs tests
For information, when I run java-version, I get this :
java version "1.7.0_40"
Java(TM) SE Runtime Environment (build 1.7.0_40-b43)
Java HotSpot(TM) 64-Bit Server VM (build 24.0-b56, mixed mode)**
Well, you can refer to this answer. The logstash 1.4.0 have some problem about the command.
For my suggestion, please save the input { stdin { } } output { stdout {} }
to a file call stdin.conf
.
Then use the following command to run logstash:
bin\logstash agent -f stdin.conf
You must put the stdin.conf file in the directory where you run logstash
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With