尽管我遵循了官方教程中的所有步骤,但当我尝试使用 Web 前端启动 Logstash 时,我遇到了异常。首先我试过logstash-1.1.10-flatjar.jar
了,它甚至没有开始。然后我发现了这个问题,所以我logstash-1.1.11.dev-flatjar.jar
按照建议下载了。现在,当我初始化它时它不会给出任何错误。但是当我找到我的浏览器时,myserver:9292
我在控制台和 web ui 上都看到了如下错误:
Errno::ENOENT: No such file or directory - file:/home/zimtest/Downloads/logstash-1.1.11.dev-flatjar.jar!/logstash/web/views/search/results.haml
org/jruby/RubyFile.java:333:in `initialize'
org/jruby/RubyIO.java:1179:in `open'
jar:file:/home/zimtest/Downloads/logstash-1.1.11.dev-flatjar.jar!/tilt/template.rb:91:in `read_template_file'
我正在使用官方教程的配置;这是我的indexer.conf
文件:
input {
redis {
host => "127.0.0.1"
type => "redis-input"
# these settings should match the output of the agent
data_type => "list"
key => "logstash"
# We use json_event here since the sender is a logstash agent
format => "json_event"
}
}
output {
stdout { debug => true debug_format => "json"}
elasticsearch {
host => "127.0.0.1"
}
}