Unable to retrieve license information from license server {:message=>"No Available connections"}

Hello team, I'm new to Logstash when im trying to run a logstash i getting the error like this anyone can you please look on it.

[2022-04-11T19:19:07,223][ERROR][logstash.licensechecker.licensereader] Unable to retrieve license information from license server {:message=>"No Available connections"}
[2022-04-11T19:19:07,528][WARN ][logstash.licensechecker.licensereader] Attempted to resurrect connection to dead ES instance, but got an error {:url=>"http://elasticsearch:9200/", :exception=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::HostUnreachableError, :message=>"Elasticsearch Unreachable: [http://elasticsearch:9200/][Manticore::ResolutionFailure] elasticsearch: Name or service not known"}

type or paste code here

You need to replace that URL with the one that reaches Elasticsearch.

Do you have an Elasticsearch node running?

  • If it's on the same machine as Logstash then you want http://localhost:9200 (or maybe https://localhost:9200).
  • If it's running somewhere else, you'll need to find out the URL to use to connect to it.

@TimV Thanks for your reply. yes Elasticsearch node is running.
when i try to change the Elasticsearch URL in Logstash file but its not supporting. I can't overwrite the Logstash file when i change the URL again Logstash file taken a default URL only. Can you please tell me where i have to change the URL in logstash file.

@TimV The default URL is http://elasticsearch:9200 I changed this to http://localhost:9200 and other running Elasticsearch URLs also I mentioned but it's not changing it taken a default URL only.

[WARN ] 2022-04-14 11:10:09.084 [Ruby-0-Thread-5: /usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/logstash-output-elasticsearch-10.4.2-java/lib/logstash/outputs/elasticsearch/http_client/pool.rb:241] elasticsearch - Attempted to resurrect connection to dead ES instance, but got an error. {:url=>"https://elastic:xxxxxx@XXX.XXX.XX.XX:9200/", :error_type=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::HostUnreachableError, :error=>"Elasticsearch Unreachable: [https://elastic:xxxxxx@XXX.XXX.XX.XX:9200/][Manticore::ClientProtocolException] PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target"}

Hi Team, I'm trying to run the Logstash I'm getting an error like this. It needs a certificate to connect with Elasticsearch can you please help me with how to run the Logstash without using the certificate.

If your Elasticsearch is running with https you can't connect to it from logstash without the certificate.

You need to check your Elasticsearch configurations, can you share your elasticsearch.yml ?

Hello @leandrojmp Thank you for your reply, I passing the Elasticsearch configuration in logstash conf file. I tried with both HTTP and HTTPS Elasticsearch but both the things are showing the same error.

apiVersion: v1
kind: ConfigMap
metadata:
  name: logstash-configmap
  namespace: kube-system
data:
  logstash.yml: |
    http.host: "0.0.0.0"
    path.config: /usr/share/logstash/pipeline    
  logstash.conf: |
    input {
      file {
        path => "/var/log/containers"
      }
    }
    output {
      stdout {
        codec => rubydebug
      }

      elasticsearch {
        ilm_enabled => false
        hosts => ["https://xxx.xxx.xx.xx:9200"]
        user => 'xxxx'
        password => 'xxxxxxxxx'
        index => "logstash-beta-%{+YYYY.MM.dd}"
        ssl_certificate_verification => false
      }
    }    

@leandrojmp Thank you for your reply, I deployed a Elasticsearch is running with HTTP but I can't able to connect to it from Logstash. It shows the same error like Elasticsearch unreachable.

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