我试图通过简单地执行文档中给出的命令来回显所输入的内容来使 Logstash 安装工作。但这给了我以下错误。
我的命令
C:\logstash-1.4.0\bin>logstash.bat agent -e 'input{stdin{}}output{stdout{}}'
和错误
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."
请帮忙。提前致谢!
我正在 Linux 上使用 Logstash-1.4.0 进行测试tutorial.
我认为这个版本可能存在错误。
例如,我在linux和window上测试了这个命令。 Linux下一切正常。但是在window上会出现你的错误!!
bin>logstash 代理 -e '输入{stdin{}}输出{stdout{}}'
对于我的建议,您可以将配置写入文件中。例如,保存input{stdin{}}output{stdout{}}
到一个名为“stdin.conf”的文件。然后当你启动logstash时,不要使用-e
标志,而是使用-f
并指定您的配置文件。
bin>logstash 代理 -f stdin.conf
希望这可以帮到你。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)