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'
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.
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/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With