Logstash Web UI不启动 [英] Logstash Web UI doesn't start
问题描述
尽管我按照官方教程。首先我试过 logstash-1.1.10-flatjar.jar
,甚至没有启动。然后我发现此问题,所以我下载了 logstash-1.1。 11.dev-flatjar.jar
,因为它是建议的。现在,当我初始化它没有任何错误。但是当我找到我的浏览器到 myserver:9292
我看到这两个控制台和网页上的错误:
I'm facing exceptions when I try to start Logstash with web front-end despite I followed all steps at official tutorial. First of all I tried logstash-1.1.10-flatjar.jar
, it even didn't start too. Then I found this issue so I downloaded logstash-1.1.11.dev-flatjar.jar
as it is advised. Now it doesn't give any errors when I initialize it. But when I locate my browser to myserver:9292
I see errors on both console and web ui like these:
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
文件:
I'm using official tutorial's configuration; here's my indexer.conf
file:
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"
}
}
推荐答案
我正在处理同样的问题。
I was dealing with the same issue.
我打开了jar,发现views文件夹被掩埋,额外的文件夹比我们期望的更深。应该工作足够长,直到他们修复它在下一个版本。
I opened up the jar and found the views folder was buried and extra folder deeper than we're expecting. Should work long enough until they fix it in the next version.
为我工作的快速解决方案:
Quick solution that worked for me:
#extract folder
jar xfv logstash-1.1.11.dev-flatjar.jar logstash/web/views
#move files around
cp -r logstash/web/views/views/ logstash/web/
rm -rf logstash/web/views/views
# push files in jar
jar uvf logstash-1.1.11.dev-flatjar.jar logstash/web/views/
这篇关于Logstash Web UI不启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!