Logstash CA error

Hi, I have been sitting with this issue all day! :slight_smile:

and I get the below error (on windows)

[2023-11-30T21:42:08,979][ERROR][logstash.outputs.elasticsearch] Invalid setting for elasticsearch output plugin:

  output {
    elasticsearch {
      # This setting must be a path
      # File does not exist or cannot be opened elastic-stack-ca.crt
      cacert => "elastic-stack-ca.crt"
      ...
    }
  }
[2023-11-30T21:42:09,045][ERROR][logstash.licensechecker.licensereader] Unable to retrieve license information from license server {:message=>"Something is wrong with your configuration."}
[2023-11-30T21:42:09,089][ERROR][logstash.monitoring.internalpipelinesource] Failed to fetch X-Pack information from Elasticsearch. This is likely due to failure to reach a live Elasticsearch cluster.

logstash.yml

xpack.monitoring.enabled: true
xpack.monitoring.elasticsearch.username: logstash_system
xpack.monitoring.elasticsearch.password: ***************
xpack.monitoring.collection.interval: 10s
xpack.monitoring.collection.pipeline.details.enabled: true
xpack.monitoring.elasticsearch.hosts: xxxxxxxxxx
xpack.monitoring.elasticsearch.ssl.certificate_authority: 'elastic-stack-ca.crt'

any help whould be super.

Perhaps try a fully qualified path to that CA as suggested by error logs.

cacert => "/full/path/elastic-stack-ca.crt"

Thanks for the lightning fast reply :slight_smile:

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