我目前正在尝试使用Logstash网站的指南在Windows 7上安装和运行Logstash。我正在努力配置和使用带有elasticsearch的logstash。使用以下内容创建logstash-simple.conf
`
enter code here`input { stdin { } }
output {
elasticsearch { hosts => ["localhost:9200"] }
stdout { codec => rubydebug }
}
当我在Command下面执行时:
D:\logstash-2.4.0\bin>logstash agent -f logstash-simple.conf
我得到以下错误,我尝试了很多东西,但我得到同样的错误
←[31mNo config files found: D:/logstash-2.4.0/bin/logstash-simple.conf
Can you make sure this path is a logstash config file? {:level=>:error}←[0m
The signal HUP is in use by the JVM and will not work correctly on this platform
d:\ logstash-2.4.0 \ BIN>
答案 0 :(得分:0)
在错误中阅读No config files found
。因此Logstash找不到logstash-simple.conf文件。
所以试试
D:\logstash-2.4.0\bin>logstash agent -f [Direct path to the folder containing logstash-simple.conf]logstash-simple.conf
答案 1 :(得分:-1)
验证扩展名是否为 .conf 或其他类似 .txt (logstash-simple.conf.txt)