No such file to load -- org/apache/httpcomponents/httpclient/4.5/httpclient-4.5 (LoadError)

Hi,

I'm returning to ELK after a break for a few years. I've got this error when i start logstash up and include my remote elasticsearch node in the config on a very basic setup:

# bin/logstash -f conf.d/inputs.conf
#######START#########

The error reported is:

you might need to reinstall the gem which depends on the missing jar or in case there is Jars.lock then resolve the jars with `lock_jars` command
    
no such file to load -- org/apache/httpcomponents/httpclient/4.5/httpclient-4.5 (LoadError)

Is anyone able to point me in the right direction please?

This is my logstash.conf file:

input {
  beats {
    port => 5044
  }
}

output {
  file {
    path => "/tmp/logs.%{+yyyy.MM.dd.HH}"
  }
  elasticsearch { hosts => ["https://elasticsearch_server:9200"] }
}

I have my ssl certificate to include but I'm not even getting that error yet. If I comment out the remote elasticsearch output, it works as expected and creates the file in /tmp.

Happy to supply more information and thanks for any help you can give me.

Regards
Dennis

To help me reproduce:

  • what version of Logstash?
    bin/logstash --version
    
  • what version of Java?
    java --version
    
  • is JAVA_HOME set?
    echo $JAVA_HOME
    
  • what version of the logstash-output-elasticsearch plugin?
    bin/logstash-plugin list --verbose logstash-output-elasticsearch
    

Hi Yaauie,

I'm sorry for the delay in getting back to you. I downloaded the Tar ball (instead of using the RPM) with all the component parts and set that up on my server. It's been working fine for me now for a couple of days and I think the issue may have been that that server has no internet access.

Regards

Dennis

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