Here is my config for input tcp:
input {
tcp {
port => 9400
type => "log-tcp"
add_field => {"parser" => "LOGSTASH"}
ssl_enable => true
ssl_cert => "/epwf1/ci/logstash/logstash-6.5.1/certs/cert.pem"
ssl_key => "/epwf1/ci/logstash/logstash-6.5.1/certs/key.pem"
ssl_key_passphrase => "123456"
ssl_verify => false
}
}
I get Error registering plugin tcp. Please check the below error.
[2018-11-23T06:01:59,904][ERROR][logstash.pipeline ] Pipeline aborted due to error {:pipeline_id=>"main", :exception=>#<RuntimeError: Could not recognize 'ssl_key' format. Class: Java::OrgBouncycastlePkcs::PKCS8EncryptedPrivateKeyInfo>, :backtrace=>["/epwf1/ci/logstash/logstash-6.5.1/vendor/bundle/jruby/2.3.0/gems/logstash-input-tcp-5.2.0-java/lib/logstash/inputs/tcp/compat_ssl_options.rb:84:in toSslContext'", "/epwf1/ci/logstash/logstash-6.5.1/vendor/bundle/jruby/2.3.0/gems/logstash-input-tcp-5.2.0-java/lib/logstash/inputs/tcp.rb:366:in
get_ssl_context'", "/epwf1/ci/logstash/logstash-6.5.1/vendor/bundle/jruby/2.3.0/gems/logstash-input-tcp-5.2.0-java/lib/logstash/inputs/tcp.rb:150:in register'", "/epwf1/ci/logstash/logstash-6.5.1/logstash-core/lib/logstash/pipeline.rb:242:in
register_plugin'", "/epwf1/ci/logstash/logstash-6.5.1/logstash-core/lib/logstash/pipeline.rb:253:in block in register_plugins'", "org/jruby/RubyArray.java:1734:in
each'", "/epwf1/ci/logstash/logstash-6.5.1/logstash-core/lib/logstash/pipeline.rb:253:in register_plugins'", "/epwf1/ci/logstash/logstash-6.5.1/logstash-core/lib/logstash/pipeline.rb:396:in
start_inputs'", "/epwf1/ci/logstash/logstash-6.5.1/logstash-core/lib/logstash/pipeline.rb:294:in start_workers'", "/epwf1/ci/logstash/logstash-6.5.1/logstash-core/lib/logstash/pipeline.rb:200:in
run'", "/epwf1/ci/logstash/logstash-6.5.1/logstash-core/lib/logstash/pipeline.rb:160:in `block in start'"], :thread=>"#<Thread:0x7db5de6f run>"}
What could be the issue here. Any help is appreciated. thanks.