NameError: SSLConnectionSocket Factory not found in packages

Hi,

I am new to Logstash. I was trying the command
logstash -f logstash.conf and I'm getting the following error...

Settings: Default pipeline workers: 4
←[31mPipeline aborted due to error {:exception=>#<NameError: SSLConnectionSocket
Factory not found in packages org.apache.http.client.methods, org.apache.http.cl
ient.entity, org.apache.http.client.config, org.apache.http.config, org.apache.h
ttp.conn.socket, org.apache.http.impl, org.apache.http.impl.client, org.apache.h
ttp.impl.conn, org.apache.http.impl.auth, org.apache.http.entity, org.apache.htt
p.message, org.apache.http.params, org.apache.http.protocol, org.apache.http.aut
h, java.util.concurrent, org.apache.http.client.protocol, org.apache.http.conn.s
sl, java.security.cert, java.security.spec, java.security, org.apache.http.clien
t.utils; last error: cannot load Java class org.apache.http.client.utils.SSLConn
ectionSocketFactory>, :backtrace=>["file:/E:/Girish-GK00428336/ELK/logstash-2.3.
2/vendor/jruby/lib/jruby.jar!/jruby/java/core_ext/module.rb:45:in const_missing '", "E:/Girish-GK00428336/ELK/logstash-2.3.2/vendor/bundle/jruby/1.9/gems/mantic ore-0.5.5-java/lib/manticore/client.rb:587:inssl_socket_factory_from_options'"
, "E:/Girish-GK00428336/ELK/logstash-2.3.2/vendor/bundle/jruby/1.9/gems/manticor
e-0.5.5-java/lib/manticore/client.rb:394:in pool_builder'", "E:/Girish-GK004283 36/ELK/logstash-2.3.2/vendor/bundle/jruby/1.9/gems/manticore-0.5.5-java/lib/mant icore/client.rb:402:inpool'", "E:/Girish-GK00428336/ELK/logstash-2.3.2/vendor/
bundle/jruby/1.9/gems/manticore-0.5.5-java/lib/manticore/client.rb:208:in initi alize'", "E:/Girish-GK00428336/ELK/logstash-2.3.2/vendor/bundle/jruby/1.9/gems/e lasticsearch-transport-1.0.17/lib/elasticsearch/transport/transport/http/mantico re.rb:58:inbuild_client'", "E:/Girish-GK00428336/ELK/logstash-2.3.2/vendor/bun
dle/jruby/1.9/gems/elasticsearch-transport-1.0.17/lib/elasticsearch/transport/tr
ansport/http/manticore.rb:49:in initialize'", "E:/Girish-GK00428336/ELK/logstas h-2.3.2/vendor/bundle/jruby/1.9/gems/elasticsearch-transport-1.0.17/lib/elastics earch/transport/client.rb:118:ininitialize'", "E:/Girish-GK00428336/ELK/logsta
sh-2.3.2/vendor/bundle/jruby/1.9/gems/elasticsearch-transport-1.0.17/lib/elastic
search/transport.rb:26:in new'", "E:/Girish-GK00428336/ELK/logstash-2.3.2/vendo r/bundle/jruby/1.9/gems/logstash-output-elasticsearch-2.6.2-java/lib/logstash/ou tputs/elasticsearch/http_client.rb:129:inbuild_client'", "E:/Girish-GK00428336
/ELK/logstash-2.3.2/vendor/bundle/jruby/1.9/gems/logstash-output-elasticsearch-2
.6.2-java/lib/logstash/outputs/elasticsearch/http_client.rb:20:in initialize'", "E:/Girish-GK00428336/ELK/logstash-2.3.2/vendor/bundle/jruby/1.9/gems/logstash- output-elasticsearch-2.6.2-java/lib/logstash/outputs/elasticsearch/http_client_b uilder.rb:40:inbuild'", "E:/Girish-GK00428336/ELK/logstash-2.3.2/vendor/bundle
/jruby/1.9/gems/logstash-output-elasticsearch-2.6.2-java/lib/logstash/outputs/el
asticsearch.rb:132:in build_client'", "E:/Girish-GK00428336/ELK/logstash-2.3.2/ vendor/bundle/jruby/1.9/gems/logstash-output-elasticsearch-2.6.2-java/lib/logsta sh/outputs/elasticsearch/common.rb:14:inregister'", "E:/Girish-GK00428336/ELK/
logstash-2.3.2/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.2-java/lib/logstas
h/output_delegator.rb:75:in register'", "E:/Girish-GK00428336/ELK/logstash-2.3. 2/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.2-java/lib/logstash/pipeline.rb :181:instart_workers'", "org/jruby/RubyArray.java:1613:in each'", "E:/Girish- GK00428336/ELK/logstash-2.3.2/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.2-j ava/lib/logstash/pipeline.rb:181:instart_workers'", "E:/Girish-GK00428336/ELK/
logstash-2.3.2/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.2-java/lib/logstas
h/pipeline.rb:136:in run'", "E:/Girish-GK00428336/ELK/logstash-2.3.2/vendor/bun dle/jruby/1.9/gems/logstash-core-2.3.2-java/lib/logstash/agent.rb:465:instart_
pipeline'"], :level=>:error}←[0m
stopping pipeline {:id=>"main"}
The signal HUP is in use by the JVM and will not work correctly on this platform

Here is my logstash.conf file:

input {
file{
path => "E:/tomcat-servers/apache-tomcat-8.5.6/logs/catalina.2016-12-29.log"
start_position => beginning
type => "tomcat_log"
sincedb_path => "nul"
}
}

filter {
grok {
match => { "message" => "%{COMBINEDAPACHELOG}"}
}

date {
match => [ "timestamp" , "dd/MMM/yyyy:HH:mm:ss Z" ]
}
}

output {
elasticsearch {
hosts => ["localhost:9200"]
index => "log-%{+YYYY.MM.dd}"
}
}

Please help me with this..
Thanks in advance!!!!

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.