We're updating the issue view to help you get more done. 

Elasticsearch output failing - LogStash::Runner (Err no::ENOENT) No such directory:

Description

Attempting to follow the 10-minute guide and not having much luck.
Windows 7 64bit env.

Downloaded 1.1.13 flat jar
1. Using file input, on windows it wasn't able to find /loc/to/myfile.log but was able to find C:/loc/to/myfile.log. Would be nice to have error reporting when file is not found.
2. After I got file input and stdout output working, I tried the elasticsearch embedded option and get the following.

1 2 3 4 5 6 7 8 9 10 11 12 13 output { stdout { debug => true } elasticsearch { # Setting 'embedded' will run a real elasticsearch server inside logstash. # This option below saves you from having to run a separate process just # for ElasticSearch, so you can get started quicker! embedded => true #host => "localhost" #port => 9200 } }

Error:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 C:\JAVA\Logging>java -jar logstash-1.1.13-flatjar.jar agent -f logstash.conf -- web --backend 'elasticsearch://localhost/' > error.log Exception in thread "LogStash::Runner" org.jruby.exceptions.RaiseException: (Err no::ENOENT) No such directory: file:/C:/JAVA/Logging/logstash-1.1.13-flatjar.jar !C:/backports/1.8.7/stdlib at org.jruby.RubyDir.entries(org/jruby/RubyDir.java:366) at RUBY.extend_relative(file:/C:/JAVA/Logging/logstash-1.1.13-flatjar.ja r!/backports/tools.rb:68) at RUBY.(root)(file:/C:/JAVA/Logging/logstash-1.1.13-flatjar.jar!/backpo rts/1.8.7/stdlib.rb:1) at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1027) at Kernel.require(jar:file:/C:/JAVA/Logging/logstash-1.1.13-flatjar.jar! /META-INF/jruby.home/lib/ruby/shared/rubygems/custom_require.rb:36) at Kernel.require(file:/C:/JAVA/Logging/logstash-1.1.13-flatjar.jar!/log stash/JRUBY-6970.rb:13) at Kernel.require_with_backports(file:/C:/JAVA/Logging/logstash-1.1.13-f latjar.jar!/backports/tools.rb:328) at RUBY.(root)(file:/C:/JAVA/Logging/logstash-1.1.13-flatjar.jar!/backpo rts/tools.rb:1) at org.jruby.RubyArray.each(org/jruby/RubyArray.java:1613) at RUBY.require_relative_dir(file:/C:/JAVA/Logging/logstash-1.1.13-flatj ar.jar!/backports/tools.rb:22) at RUBY.require_relative_dir(file:/C:/JAVA/Logging/logstash-1.1.13-flatj ar.jar!/backports/tools.rb:17) at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1027) at Kernel.require(jar:file:/C:/JAVA/Logging/logstash-1.1.13-flatjar.jar! /META-INF/jruby.home/lib/ruby/shared/rubygems/custom_require.rb:36) at Kernel.require(file:/C:/JAVA/Logging/logstash-1.1.13-flatjar.jar!/log stash/JRUBY-6970.rb:13) at RUBY.(root)(file:/C:/JAVA/Logging/logstash-1.1.13-flatjar.jar!/backpo rts/1.8.7.rb:3) at RUBY.(root)(file:/C:/JAVA/Logging/logstash-1.1.13-flatjar.jar!/backpo rts/tools.rb:1) at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1027) at Kernel.require(jar:file:/C:/JAVA/Logging/logstash-1.1.13-flatjar.jar! /META-INF/jruby.home/lib/ruby/shared/rubygems/custom_require.rb:36) at Kernel.require(file:/C:/JAVA/Logging/logstash-1.1.13-flatjar.jar!/log stash/JRUBY-6970.rb:13) at RUBY.require_with_backports(file:/C:/JAVA/Logging/logstash-1.1.13-fla tjar.jar!/backports/tools.rb:328) at RUBY.(root)(file:/C:/JAVA/Logging/logstash-1.1.13-flatjar.jar!/backpo rts/1.8.rb:2) at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1027) at Kernel.require(jar:file:/C:/JAVA/Logging/logstash-1.1.13-flatjar.jar! /META-INF/jruby.home/lib/ruby/shared/rubygems/custom_require.rb:36) at Kernel.require(file:/C:/JAVA/Logging/logstash-1.1.13-flatjar.jar!/log stash/JRUBY-6970.rb:13) at RUBY.(root)(file:/C:/JAVA/Logging/logstash-1.1.13-flatjar.jar!/backpo rts/tools.rb:1) at RUBY.require_with_backports(file:/C:/JAVA/Logging/logstash-1.1.13-fla tjar.jar!/backports/tools.rb:328) at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1027) at Kernel.require(jar:file:/C:/JAVA/Logging/logstash-1.1.13-flatjar.jar! /META-INF/jruby.home/lib/ruby/shared/rubygems/custom_require.rb:36) at Kernel.require(file:/C:/JAVA/Logging/logstash-1.1.13-flatjar.jar!/log stash/JRUBY-6970.rb:13) at RUBY.(root)(file:/C:/JAVA/Logging/logstash-1.1.13-flatjar.jar!/backpo rts/1.9.1.rb:2) at RUBY.(root)(file:/C:/JAVA/Logging/logstash-1.1.13-flatjar.jar!/backpo rts/tools.rb:1) at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1027) at Kernel.require(jar:file:/C:/JAVA/Logging/logstash-1.1.13-flatjar.jar! /META-INF/jruby.home/lib/ruby/shared/rubygems/custom_require.rb:36) at Kernel.require(file:/C:/JAVA/Logging/logstash-1.1.13-flatjar.jar!/log stash/JRUBY-6970.rb:13) at RUBY.require_with_backports(file:/C:/JAVA/Logging/logstash-1.1.13-fla tjar.jar!/backports/tools.rb:328) at RUBY.(root)(file:/C:/JAVA/Logging/logstash-1.1.13-flatjar.jar!/backpo rts/1.9.2.rb:2) at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1027) at Kernel.require(jar:file:/C:/JAVA/Logging/logstash-1.1.13-flatjar.jar! /META-INF/jruby.home/lib/ruby/shared/rubygems/custom_require.rb:36) at Kernel.require(file:/C:/JAVA/Logging/logstash-1.1.13-flatjar.jar!/log stash/JRUBY-6970.rb:13) at RUBY.(root)(file:/C:/JAVA/Logging/logstash-1.1.13-flatjar.jar!/backpo rts/tools.rb:1) at RUBY.require_with_backports(file:/C:/JAVA/Logging/logstash-1.1.13-fla tjar.jar!/backports/tools.rb:328) at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1027) at Kernel.require(jar:file:/C:/JAVA/Logging/logstash-1.1.13-flatjar.jar! /META-INF/jruby.home/lib/ruby/shared/rubygems/custom_require.rb:36) at Kernel.require(file:/C:/JAVA/Logging/logstash-1.1.13-flatjar.jar!/log stash/JRUBY-6970.rb:13) at RUBY.(root)(file:/C:/JAVA/Logging/logstash-1.1.13-flatjar.jar!/backpo rts/1.9.3.rb:2) at RUBY.(root)(file:/C:/JAVA/Logging/logstash-1.1.13-flatjar.jar!/backpo rts/tools.rb:1) at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1027) at Kernel.require(jar:file:/C:/JAVA/Logging/logstash-1.1.13-flatjar.jar! /META-INF/jruby.home/lib/ruby/shared/rubygems/custom_require.rb:36) at Kernel.require(file:/C:/JAVA/Logging/logstash-1.1.13-flatjar.jar!/log stash/JRUBY-6970.rb:13) at RUBY.require_with_backports(file:/C:/JAVA/Logging/logstash-1.1.13-fla tjar.jar!/backports/tools.rb:328) at RUBY.(root)(file:/C:/JAVA/Logging/logstash-1.1.13-flatjar.jar!/backpo rts/1.9.rb:2) at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1027) at Kernel.require(jar:file:/C:/JAVA/Logging/logstash-1.1.13-flatjar.jar! /META-INF/jruby.home/lib/ruby/shared/rubygems/custom_require.rb:36) at Kernel.require(file:/C:/JAVA/Logging/logstash-1.1.13-flatjar.jar!/log stash/JRUBY-6970.rb:13) at RUBY.(root)(file:/C:/JAVA/Logging/logstash-1.1.13-flatjar.jar!/backpo rts/tools.rb:1) at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1027) at Kernel.require(jar:file:/C:/JAVA/Logging/logstash-1.1.13-flatjar.jar! /META-INF/jruby.home/lib/ruby/shared/rubygems/custom_require.rb:36) at Kernel.require(file:/C:/JAVA/Logging/logstash-1.1.13-flatjar.jar!/log stash/JRUBY-6970.rb:13) at RUBY.require_with_backports(file:/C:/JAVA/Logging/logstash-1.1.13-fla tjar.jar!/backports/tools.rb:328) at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1027) at Kernel.require(jar:file:/C:/JAVA/Logging/logstash-1.1.13-flatjar.jar! /META-INF/jruby.home/lib/ruby/shared/rubygems/custom_require.rb:36) at Kernel.require(file:/C:/JAVA/Logging/logstash-1.1.13-flatjar.jar!/log stash/JRUBY-6970.rb:13) at RUBY.(root)(file:/C:/JAVA/Logging/logstash-1.1.13-flatjar.jar!/backpo rts/2.0.0.rb:2) at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1027) at Kernel.require(jar:file:/C:/JAVA/Logging/logstash-1.1.13-flatjar.jar! /META-INF/jruby.home/lib/ruby/shared/rubygems/custom_require.rb:36) at Kernel.require(file:/C:/JAVA/Logging/logstash-1.1.13-flatjar.jar!/log stash/JRUBY-6970.rb:13) at RUBY.(root)(file:/C:/JAVA/Logging/logstash-1.1.13-flatjar.jar!/backpo rts/tools.rb:1) at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1027) at Kernel.require(jar:file:/C:/JAVA/Logging/logstash-1.1.13-flatjar.jar! /META-INF/jruby.home/lib/ruby/shared/rubygems/custom_require.rb:36) at Kernel.require(file:/C:/JAVA/Logging/logstash-1.1.13-flatjar.jar!/log stash/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)

I also tried the monolithic jar and got a different error.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 ... {:expand_path=>["jar:file:/C:/JAVA/Logging/logstash-1.1.13-monolithic.jar!/gems/ addressable-2.3.4/lib/addressable/idna/../../../data/unicode.data", "jar:file:/C :/JAVA/Logging/logstash-1.1.13-monolithic.jar!/gems/addressable-2.3.4/data/unico de.data"]} Exception in thread "LogStash::Runner" org.jruby.exceptions.RaiseException: (IOE rror) no !/ in spec at org.jruby.RubyKernel.load(org/jruby/RubyKernel.java:1046) at RUBY.(root)(jar:file:/C:/JAVA/Logging/logstash-1.1.13-monolithic.jar! /gems/jruby-openssl-0.8.7/lib/shared/jruby-openssl.rb:20) at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1027) at Kernel.require(jar:file:/C:/JAVA/Logging/logstash-1.1.13-monolithic.j ar!/META-INF/jruby.home/lib/ruby/shared/rubygems/custom_require.rb:60) at Kernel.require(jar:file:/C:/JAVA/Logging/logstash-1.1.13-monolithic.j ar!/META-INF/jruby.home/lib/ruby/shared/rubygems/custom_require.rb:55) at Kernel.require(file:/C:/JAVA/Logging/logstash-1.1.13-monolithic.jar!/ logstash/JRUBY-6970.rb:13) at RUBY.(root)(jar:file:/C:/JAVA/Logging/logstash-1.1.13-monolithic.jar! /gems/backports-3.3.1/lib/backports/tools.rb:1) at RUBY.require_with_backports(jar:file:/C:/JAVA/Logging/logstash-1.1.13 -monolithic.jar!/gems/backports-3.3.1/lib/backports/tools.rb:328) at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1027) at Kernel.require(jar:file:/C:/JAVA/Logging/logstash-1.1.13-monolithic.j ar!/META-INF/jruby.home/lib/ruby/shared/rubygems/custom_require.rb:36) at Kernel.require(file:/C:/JAVA/Logging/logstash-1.1.13-monolithic.jar!/ logstash/JRUBY-6970.rb:13) at RUBY.(root)(jar:file:/C:/JAVA/Logging/logstash-1.1.13-monolithic.jar! /META-INF/jruby.home/lib/ruby/shared/openssl.rb:19) at RUBY.(root)(jar:file:/C:/JAVA/Logging/logstash-1.1.13-monolithic.jar! /gems/backports-3.3.1/lib/backports/tools.rb:1) at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1027) at Kernel.require(jar:file:/C:/JAVA/Logging/logstash-1.1.13-monolithic.j ar!/META-INF/jruby.home/lib/ruby/shared/rubygems/custom_require.rb:36) at Kernel.require(file:/C:/JAVA/Logging/logstash-1.1.13-monolithic.jar!/ logstash/JRUBY-6970.rb:13) at RUBY.require_with_backports(jar:file:/C:/JAVA/Logging/logstash-1.1.13 -monolithic.jar!/gems/backports-3.3.1/lib/backports/tools.rb:328) at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1027) at Kernel.require(jar:file:/C:/JAVA/Logging/logstash-1.1.13-monolithic.j ar!/META-INF/jruby.home/lib/ruby/shared/rubygems/custom_require.rb:36) at Kernel.require(file:/C:/JAVA/Logging/logstash-1.1.13-monolithic.jar!/ logstash/JRUBY-6970.rb:13) at RUBY.(root)(jar:file:/C:/JAVA/Logging/logstash-1.1.13-monolithic.jar! /gems/ftw-0.0.34/lib/ftw/connection.rb:8) at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1027) at Kernel.require(jar:file:/C:/JAVA/Logging/logstash-1.1.13-monolithic.j ar!/META-INF/jruby.home/lib/ruby/shared/rubygems/custom_require.rb:60) at Kernel.require(jar:file:/C:/JAVA/Logging/logstash-1.1.13-monolithic.j ar!/META-INF/jruby.home/lib/ruby/shared/rubygems/custom_require.rb:55) at Kernel.require(file:/C:/JAVA/Logging/logstash-1.1.13-monolithic.jar!/ logstash/JRUBY-6970.rb:13) at RUBY.(root)(jar:file:/C:/JAVA/Logging/logstash-1.1.13-monolithic.jar! /gems/ftw-0.0.34/lib/ftw/agent.rb:1) at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1027) at Kernel.require(jar:file:/C:/JAVA/Logging/logstash-1.1.13-monolithic.j ar!/META-INF/jruby.home/lib/ruby/shared/rubygems/custom_require.rb:36) at Kernel.require(file:/C:/JAVA/Logging/logstash-1.1.13-monolithic.jar!/ 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)

I then tried downloading elasticsearch and using non-embedded mode but got the same errors. Punting for now...

Environment

None

Status

Assignee

Logstash Developers

Reporter

Alex Franken

Affects versions

1.1.13

Priority