我是使用logstash的新手,我试图从网络ui开始,但似乎无法触发它。每次我尝试运行web ui时都会出现异常。这是我得到的长期例外。我正在使用Windows 7.任何建议都非常感谢。我在stackoverflow上尝试了以下内容,但是我在确定如何为'cp'和'rm'命令工作实现Nathan的解决方案时遇到了问题。 Logstash Web UI doesn't start
C:\MyPrograms\logstash>java -jar logstash-1.1.13-flatjar.jar agent -f logstash-s
imple.conf -- web --backend elasticsearch://localhost/
{:expand_path=>["jar:file:/C:/MyPrograms/logstash/logstash-1.1.13-flatjar.jar!/l
ogstash/../../locales/en.yml", "jar:file:/C:/MyPrograms/logstash/logstash-1.1.13
-flatjar.jar!/locales/en.yml"]}
{:expand_path=>["file:/C:/MyPrograms/logstash/logstash-1.1.13-flatjar.jar!/META-
INF/jruby.home/lib/ruby/gems/shared/gems/rake-10.0.3", "file:/C:/MyPrograms/logs
tash/logstash-1.1.13-flatjar.jar!/META-INF/jruby.home/lib/ruby/gems/shared/gems/
rake-10.0.3"]}
{:expand_path=>["file:/C:/MyPrograms/logstash/logstash-1.1.13-flatjar.jar!/addre
ssable/idna/../../../data/unicode.data", "file:/C:/MyPrograms/logstash/logstash-
1.1.13-flatjar.jar!/data/unicode.data"]}
Exception in thread "LogStash::Runner" org.jruby.exceptions.RaiseException: (Err
no::ENOENT) No such directory: file:/C:/MyPrograms/logstash/logstash-1.1.13-flat
jar.jar!C:/backports/1.8.7/stdlib
at org.jruby.RubyDir.entries(org/jruby/RubyDir.java:366)
at RUBY.extend_relative(file:/C:/MyPrograms/logstash/logstash-1.1.13-fla
tjar.jar!/backports/tools.rb:68)
at RUBY.(root)(file:/C:/MyPrograms/logstash/logstash-1.1.13-flatjar.jar!
/backports/1.8.7/stdlib.rb:1)
at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1027)
at Kernel.require(jar:file:/C:/MyPrograms/logstash/logstash-1.1.13-flatj
ar.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/custom_require.rb:36)
at Kernel.require(file:/C:/MyPrograms/logstash/logstash-1.1.13-flatjar.j
ar!/logstash/JRUBY-6970.rb:13)
at Kernel.require_with_backports(file:/C:/MyPrograms/logstash/logstash-1
.1.13-flatjar.jar!/backports/tools.rb:328)
at RUBY.(root)(file:/C:/MyPrograms/logstash/logstash-1.1.13-flatjar.jar!
/backports/tools.rb:1)
at org.jruby.RubyArray.each(org/jruby/RubyArray.java:1613)
at RUBY.require_relative_dir(file:/C:/MyPrograms/logstash/logstash-1.1.1
3-flatjar.jar!/backports/tools.rb:22)
at RUBY.require_relative_dir(file:/C:/MyPrograms/logstash/logstash-1.1.1
3-flatjar.jar!/backports/tools.rb:17)
at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1027)
at Kernel.require(jar:file:/C:/MyPrograms/logstash/logstash-1.1.13-flatj
ar.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/custom_require.rb:36)
at Kernel.require(file:/C:/MyPrograms/logstash/logstash-1.1.13-flatjar.j
ar!/logstash/JRUBY-6970.rb:13)
at RUBY.(root)(file:/C:/MyPrograms/logstash/logstash-1.1.13-flatjar.jar!
/backports/1.8.7.rb:3)
at RUBY.(root)(file:/C:/MyPrograms/logstash/logstash-1.1.13-flatjar.jar!
/backports/tools.rb:1)
at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1027)
at Kernel.require(jar:file:/C:/MyPrograms/logstash/logstash-1.1.13-flatj
ar.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/custom_require.rb:36)
at Kernel.require(file:/C:/MyPrograms/logstash/logstash-1.1.13-flatjar.j
ar!/logstash/JRUBY-6970.rb:13)
at RUBY.require_with_backports(file:/C:/MyPrograms/logstash/logstash-1.1
.13-flatjar.jar!/backports/tools.rb:328)
at RUBY.(root)(file:/C:/MyPrograms/logstash/logstash-1.1.13-flatjar.jar!
/backports/1.8.rb:2)
at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1027)
at Kernel.require(jar:file:/C:/MyPrograms/logstash/logstash-1.1.13-flatj
ar.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/custom_require.rb:36)
at Kernel.require(file:/C:/MyPrograms/logstash/logstash-1.1.13-flatjar.j
ar!/logstash/JRUBY-6970.rb:13)
at RUBY.(root)(file:/C:/MyPrograms/logstash/logstash-1.1.13-flatjar.jar!
/backports/tools.rb:1)
at RUBY.require_with_backports(file:/C:/MyPrograms/logstash/logstash-1.1
.13-flatjar.jar!/backports/tools.rb:328)
at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1027)
at Kernel.require(jar:file:/C:/MyPrograms/logstash/logstash-1.1.13-flatj
ar.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/custom_require.rb:36)
at Kernel.require(file:/C:/MyPrograms/logstash/logstash-1.1.13-flatjar.j
ar!/logstash/JRUBY-6970.rb:13)
at RUBY.(root)(file:/C:/MyPrograms/logstash/logstash-1.1.13-flatjar.jar!
/backports/1.9.1.rb:2)
at RUBY.(root)(file:/C:/MyPrograms/logstash/logstash-1.1.13-flatjar.jar!
/backports/tools.rb:1)
at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1027)
at Kernel.require(jar:file:/C:/MyPrograms/logstash/logstash-1.1.13-flatj
ar.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/custom_require.rb:36)
at Kernel.require(file:/C:/MyPrograms/logstash/logstash-1.1.13-flatjar.j
ar!/logstash/JRUBY-6970.rb:13)
at RUBY.require_with_backports(file:/C:/MyPrograms/logstash/logstash-1.1
.13-flatjar.jar!/backports/tools.rb:328)
at RUBY.(root)(file:/C:/MyPrograms/logstash/logstash-1.1.13-flatjar.jar!
/backports/1.9.2.rb:2)
at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1027)
at Kernel.require(jar:file:/C:/MyPrograms/logstash/logstash-1.1.13-flatj
ar.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/custom_require.rb:36)
at Kernel.require(file:/C:/MyPrograms/logstash/logstash-1.1.13-flatjar.j
ar!/logstash/JRUBY-6970.rb:13)
at RUBY.(root)(file:/C:/MyPrograms/logstash/logstash-1.1.13-flatjar.jar!
/backports/tools.rb:1)
at RUBY.require_with_backports(file:/C:/MyPrograms/logstash/logstash-1.1
.13-flatjar.jar!/backports/tools.rb:328)
at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1027)
at Kernel.require(jar:file:/C:/MyPrograms/logstash/logstash-1.1.13-flatj
ar.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/custom_require.rb:36)
at Kernel.require(file:/C:/MyPrograms/logstash/logstash-1.1.13-flatjar.j
ar!/logstash/JRUBY-6970.rb:13)
at RUBY.(root)(file:/C:/MyPrograms/logstash/logstash-1.1.13-flatjar.jar!
/backports/1.9.3.rb:2)
at RUBY.(root)(file:/C:/MyPrograms/logstash/logstash-1.1.13-flatjar.jar!
/backports/tools.rb:1)
at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1027)
at Kernel.require(jar:file:/C:/MyPrograms/logstash/logstash-1.1.13-flatj
ar.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/custom_require.rb:36)
at Kernel.require(file:/C:/MyPrograms/logstash/logstash-1.1.13-flatjar.j
ar!/logstash/JRUBY-6970.rb:13)
at RUBY.require_with_backports(file:/C:/MyPrograms/logstash/logstash-1.1
.13-flatjar.jar!/backports/tools.rb:328)
at RUBY.(root)(file:/C:/MyPrograms/logstash/logstash-1.1.13-flatjar.jar!
/backports/1.9.rb:2)
at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1027)
at Kernel.require(jar:file:/C:/MyPrograms/logstash/logstash-1.1.13-flatj
ar.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/custom_require.rb:36)
at Kernel.require(file:/C:/MyPrograms/logstash/logstash-1.1.13-flatjar.j
ar!/logstash/JRUBY-6970.rb:13)
at RUBY.(root)(file:/C:/MyPrograms/logstash/logstash-1.1.13-flatjar.jar!
/backports/tools.rb:1)
at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1027)
at Kernel.require(jar:file:/C:/MyPrograms/logstash/logstash-1.1.13-flatj
ar.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/custom_require.rb:36)
at Kernel.require(file:/C:/MyPrograms/logstash/logstash-1.1.13-flatjar.j
ar!/logstash/JRUBY-6970.rb:13)
at RUBY.require_with_backports(file:/C:/MyPrograms/logstash/logstash-1.1
.13-flatjar.jar!/backports/tools.rb:328)
at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1027)
at Kernel.require(jar:file:/C:/MyPrograms/logstash/logstash-1.1.13-flatj
ar.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/custom_require.rb:36)
at Kernel.require(file:/C:/MyPrograms/logstash/logstash-1.1.13-flatjar.j
ar!/logstash/JRUBY-6970.rb:13)
at RUBY.(root)(file:/C:/MyPrograms/logstash/logstash-1.1.13-flatjar.jar!
/backports/2.0.0.rb:2)
at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1027)
at Kernel.require(jar:file:/C:/MyPrograms/logstash/logstash-1.1.13-flatj
ar.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/custom_require.rb:36)
at Kernel.require(file:/C:/MyPrograms/logstash/logstash-1.1.13-flatjar.j
ar!/logstash/JRUBY-6970.rb:13)
at RUBY.(root)(file:/C:/MyPrograms/logstash/logstash-1.1.13-flatjar.jar!
/backports/tools.rb:1)
at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1027)
at Kernel.require(jar:file:/C:/MyPrograms/logstash/logstash-1.1.13-flatj
ar.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/custom_require.rb:36)
at Kernel.require(file:/C:/MyPrograms/logstash/logstash-1.1.13-flatjar.j
ar!/logstash/JRUBY-6970.rb:13)
at logstash.runner.run(logstash/runner.rb:104)
at org.jruby.RubyProc.call(org/jruby/RubyProc.java:249)
at logstash.runner.run(logstash/runner.rb:199)
at logstash.runner.main(logstash/runner.rb:74)
at logstash.runner.(root)(logstash/runner.rb:224)
C:\MyPrograms\logstash>
答案 0 :(得分:4)
看起来像logstash的当前错误尚未解决 - https://logstash.jira.com/browse/LOGSTASH-1066
答案 1 :(得分:0)
正如已经指出的,这是Windows 7用户的logstash中的一个错误。
有关Windows 7用户的有用提示: