Logstash Errors During Lab 4


(Jason Miller) #1

Hello,

My name is Jason Miller. I recently bought the Elastic Logging Training package. I am following along with the labs and got to the portion of starting Logstash this is the error I receieve within my terminal. I am running

I am not sure what this error is actually saying but would love some help in getting Logstash off the ground.

This is the file output of the logtash directory & the config folder.

? logstash-5.6.1 ls
total 360
drwxr-xr-x@ 17 jmiller staff 544B Sep 21 17:39 .
drwxr-xr-x+ 15 jmiller staff 480B Oct 22 18:35 ..
-rw-r--r--@ 1 jmiller staff 109K Sep 14 12:51 CHANGELOG.md
-rw-r--r--@ 1 jmiller staff 2.2K Sep 14 12:51 CONTRIBUTORS
-rw-r--r--@ 1 jmiller staff 4.0K Sep 14 12:55 Gemfile
-rw-r--r--@ 1 jmiller staff 21K Sep 14 12:52 Gemfile.jruby-1.9.lock
-rw-r--r--@ 1 jmiller staff 589B Sep 14 12:51 LICENSE
-rw-r--r--@ 1 jmiller staff 29K Sep 14 12:55 NOTICE.TXT
drwxr-xr-x@ 12 jmiller staff 384B Sep 21 17:39 bin
drwxr-xr-x@ 6 jmiller staff 192B Sep 21 17:39 config
drwxr-xr-x@ 2 jmiller staff 64B Sep 14 12:51 data
drwxr-xr-x@ 5 jmiller staff 160B Sep 21 17:39 lib
drwxr-xr-x@ 6 jmiller staff 192B Sep 21 17:39 logstash-core
drwxr-xr-x@ 4 jmiller staff 128B Sep 21 17:39 logstash-core-plugin-api
drwxr-xr-x@ 5 jmiller staff 160B Sep 21 17:39 modules
drwxr-xr-x@ 3 jmiller staff 96B Sep 21 17:39 tools
drwxr-xr-x@ 4 jmiller staff 128B Sep 21 17:39 vendor

? ELK Stack ls logstash_configs
total 32
drwxr-xr-x@ 6 jmiller staff 192B Sep 22 16:53 .
drwxr-xr-x+ 15 jmiller staff 480B Oct 22 18:35 ..
-rw-r--r--@ 1 jmiller staff 82B Sep 22 16:53 bk_logstash_simple.conf
-rw-r--r--@ 1 jmiller staff 744B Apr 21 2016 logstash_elasticsearch.conf
-rw-r--r--@ 1 jmiller staff 82B Apr 19 2016 logstash_simple.conf
-rw-r--r--@ 1 jmiller staff 639B Apr 20 2016 logstash_stdout.conf


Error when trying to start logstash

? logstash-5.6.1 ./bin/logstash -f ../logstash_configs/logstash_simple.conf
[FATAL] 2017-11-07 12:52:39.951 [main] runner - An unexpected error occurred! {:error=>java.lang.IllegalArgumentException: Illegal character in path at index 34: file:////Users/jmiller/Desktop/ELK Stack/logstash-5.6.1/config/log4j2.properties, :backtrace=>["java.net.URI.create(java/net/URI.java:852)", "java.lang.reflect.Method.invoke(java/lang/reflect/Method.java:498)", "RUBY.reconfigure(/Users/jmiller/Desktop/ELK Stack/logstash-5.6.1/logstash-core/lib/logstash/logging/logger.rb:78)", "org.jruby.ext.thread.Mutex.synchronize(org/jruby/ext/thread/Mutex.java:149)", "RUBY.reconfigure(/Users/jmiller/Desktop/ELK Stack/logstash-5.6.1/logstash-core/lib/logstash/logging/logger.rb:77)", "RUBY.execute(/Users/jmiller/Desktop/ELK Stack/logstash-5.6.1/logstash-core/lib/logstash/runner.rb:224)", "RUBY.run(/Users/jmiller/Desktop/ELK Stack/logstash-5.6.1/vendor/bundle/jruby/1.9/gems/clamp-0.6.5/lib/clamp/command.rb:67)", "RUBY.run(/Users/jmiller/Desktop/ELK Stack/logstash-5.6.1/logstash-core/lib/logstash/runner.rb:204)", "RUBY.run(/Users/jmiller/Desktop/ELK Stack/logstash-5.6.1/vendor/bundle/jruby/1.9/gems/clamp-0.6.5/lib/clamp/command.rb:132)", "Users.jmiller.Desktop.ELK_20_Stack.logstash_minus_5_dot_6_dot_1.lib.bootstrap.environment.(root)(/Users/jmiller/Desktop/ELK Stack/logstash-5.6.1/lib/bootstrap/environment.rb:71)", "Users.jmiller.Desktop.ELK_20_Stack.logstash_minus_5_dot_6_dot_1.lib.bootstrap.environment.(root)(Users/jmiller/Desktop/ELK_20_Stack/logstash_minus_5_dot_6_dot_1/lib/bootstrap//Users/jmiller/Desktop/ELK Stack/logstash-5.6.1/lib/bootstrap/environment.rb:71)"]}


(Nathan Zamecnik) #2

Could you send the Logstash conf you're using?

Also, you might want to remove the space from your path. There is a space in "ELK Stack" in your path - that could be causing an issue.


(Jason Miller) #3

Hey Nathan,

input {
stdin {}
}

filter {}

output {
stdout {
codec => rubydebug
}
}%


(Jason Miller) #4

Hey Nathan,

Thank you for the help, I removed the spacke in ELK Stack, and it is what caused the problem. Appreciate the help!


(Nathan Zamecnik) #5

Good to know - I mentioned it because I thought I'd seen that error before caused by that.


(Nathan Zamecnik) #6