我正在尝试通过简单地执行文档中给出的命令来使logstash安装工作,以回显曾经输入的内容.但是这给了我以下错误.
我的命令
C:\logstash-1.4.0\bin>logstash.bat agent -e 'input{stdin{}}output{stdout{}}'
Run Code Online (Sandbox Code Playgroud)
而错误
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."
Run Code Online (Sandbox Code Playgroud)
请帮忙.谢谢!
我正在使用本教程在linux上使用logstash-1.4.0进行测试.
我认为这个版本可能存在错误.
例如,我在linux和window上测试了这个命令.在linux上一切都很好.但它会在窗口发生你的错误!!
bin> logstash agent -e'input {stdin {}} output {stdout {}}'
根据我的建议,您可以在文件中编写配置.例如,保存input{stdin{}}output{stdout{}}到文件调用"stdin.conf".然后,当您启动logstash时,请不要使用-e标志,而是使用-f并指定您的配置文件.
bin> logstash agent -f stdin.conf
希望这可以帮到你.
| 归档时间: |
|
| 查看次数: |
9655 次 |
| 最近记录: |