-3
我正在嘗試使用Logstash網站的準則在Windows 7上安裝並運行Logstash。我正在努力配置和使用彈性搜索logstash。當我執行以下命令創建logstash-simple.conf下面內容如何在window8中使用elasticsearch配置logstash?
`
enter code here`input { stdin { } }
output {
elasticsearch { hosts => ["localhost:9200"] }
stdout { codec => rubydebug }
}
:
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>
最後我想通了。文件的擴展名不是.conf,而是.txt。現在我改變了..現在的工作。 –