当我运行命令sudo bin/logstash -f logstash.conf
时,出现此错误
[ERROR] 2018-04-05 10:22:32.872 [Ruby-0-Thread-1: /usr/share/logstash/vendor/bundle/jruby/2.3.0/gems/stud-0.0.23/lib/stud/task.rb:22] sourceloader - No configuration found in the configured sources.
我不知道该怎么做了。 Logstash重新安装没有帮助。更改logstash配置也没有帮助。
谁能告诉我如何解决这个问题?
这是我当前的配置:
input {
file {
type => "rails logs"
path => "/home/user/apps/demo/log/logstash_development.log"
codec => json {
charset => "UTF-8"
}
}
}
output {
# Print each event to stdout.
stdout {
codec => rubydebug
}
elasticsearch {
# Setting 'embedded' will run a real elasticsearch server inside logstash.
# This option below saves you from having to run a separate process just
# for ElasticSearch, so you can get started quicker!
embedded => true
}
}
答案 0 :(得分:0)
logstash.conf
文件位于 config 文件夹中,而不位于 bin 中。
使用W:\logstash\bin>logstash -f .\..\config\logstash.conf
之类的命令。