Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Logstash Web UI doesn't start

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'

Web UI Errors

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"
  }
}
like image 839
talha06 Avatar asked May 06 '13 16:05

talha06


1 Answers

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/
like image 94
Nathan Avatar answered Oct 22 '22 06:10

Nathan