try below.
logstash -e "input {stdin {}}output {stdout {}}" --debug
Everything looks fine to me.. Some environment is the issue, coz- am able to run w/o any issues. @camarar also able to start logstash.
I feel something is wrong with your Java/Logstash. Dont mind but try a new copy of logstash. Lets give it a try. I know thats not a solution, but we can pinpoint that, the problem is with the installation or something else.
I am getting below exception while starting logstash [logstash-1.5.3]. Can any one please help me.
LoadError: load error: jopenssl/load -- java.lang.VerifyError: class org.bouncycastle.asn1.ASN1Primitive overrides final method equals.(Ljava/lang/Object;)Z
require at org/jruby/RubyKernel.java:1072
(root) at /home/release/release_independent/elk/logstash/logstash-1.5.3/vendor/jruby/lib/ruby/shared/openssl.rb:1
require at org/jruby/RubyKernel.java:1072
(root) at /home/release/release_independe…
opened 04:08AM - 23 Jul 17 UTC
closed 01:02PM - 23 Jul 17 UTC
- Version: logstash-2.4.0 and 5.5.0
- OS: macOS Sierra 10.12.5
- Steps to re… produce:
Command: bin/logstash or bin/logstash -f pipeline.conf (you don't even need to specify the filename and it blows up)
- JDK:
ls -l /Library/Java/JavaVirtualMachines/
total 0
drwxr-xr-x 3 root wheel 102 Sep 21 2016 jdk1.8.0_101.jdk
Issue:
LoadError: load error: jopenssl/load -- java.lang.NoClassDefFoundError: org/bouncycastle/crypto/params/AsymmetricKeyParameter
require at org/jruby/RubyKernel.java:1040
(root) at /Users/nand/Development/elk/logstash-2.4.0/vendor/jruby/lib/ruby/shared/openssl.rb:1
require at org/jruby/RubyKernel.java:1040
(root) at /Users/nand/Development/elk/logstash-2.4.0/vendor/bundle/jruby/1.9/gems/logstash-core-2.4.0-java/lib/logstash/patches/stronger_openssl_defaults.rb:1
require at org/jruby/RubyKernel.java:1040
(root) at /Users/nand/Development/elk/logstash-2.4.0/vendor/bundle/jruby/1.9/gems/logstash-core-2.4.0-java/lib/logstash/patches/stronger_openssl_defaults.rb:2
require at org/jruby/RubyKernel.java:1040
(root) at /Users/nand/Development/elk/logstash-2.4.0/vendor/bundle/jruby/1.9/gems/logstash-core-2.4.0-java/lib/logstash/patches.rb:1
require at org/jruby/RubyKernel.java:1040
(root) at /Users/nand/Development/elk/logstash-2.4.0/vendor/bundle/jruby/1.9/gems/logstash-core-2.4.0-java/lib/logstash/patches.rb:5
require at org/jruby/RubyKernel.java:1040
(root) at /Users/nand/Development/elk/logstash-2.4.0/lib/bootstrap/environment.rb:68
You might have already visited those topics, just incase if you missed.
1 Like