【问题标题】:how to configure logstash with elasticsearch in window8?如何在window8中使用elasticsearch配置logstash?
【发布时间】:2016-09-20 21:54:11
【问题描述】:

我目前正在尝试使用 Logstash 网站的指南在 Windows 7 上安装和运行 Logstash。我正在努力配置和使用带有elasticsearch的logstash。使用以下内容创建了 logstash-simple.conf

`

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>

【问题讨论】:

    标签: logstash logstash-configuration


    【解决方案1】:

    在错误中读取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
    

    【讨论】:

    • 我终于想通了。文件的实际扩展名不是 .conf,而是 .txt。现在我改变了它..它现在可以工作了。
    【解决方案2】:

    验证扩展名是 .conf 还是其他类似 .txt (logstash-simple.conf.txt) 的东西

    【讨论】:

      猜你喜欢
      • 2017-03-20
      • 1970-01-01
      • 1970-01-01
      • 2016-02-15
      • 2016-06-07
      • 1970-01-01
      • 2017-10-18
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多