# Logstash CA error

**URL:** <https://discuss.elastic.co/t/logstash-ca-error/348369>\
**Category:** Logstash\
**Tags:** windows\
**Created:** [November 30, 2023, 8:49pm UTC](https://discuss.elastic.co/t/logstash-ca-error/348369 "2023-11-30T20:49:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marcus\_Berglund](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marcus_berglund/32/123992_2.png) [@Marcus\_Berglund](https://discuss.elastic.co/u/Marcus_Berglund)\
**Post date:** [November 30, 2023, 8:49pm UTC](https://discuss.elastic.co/t/logstash-ca-error/348369/1 "2023-11-30T20:49:50Z")

</div>

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

and I get the below error (on windows)

```auto
[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

```auto
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.

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [November 30, 2023, 8:51pm UTC](https://discuss.elastic.co/t/logstash-ca-error/348369/2 "2023-11-30T20:51:14Z")

</div>

> [@Marcus\_Berglund](#):
>
> cacert =\> "elastic-stack-ca.crt"

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

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

---

<div class="post-metadata">

**Author:** ![Marcus\_Berglund](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marcus_berglund/32/123992_2.png) [@Marcus\_Berglund](https://discuss.elastic.co/u/Marcus_Berglund)\
**Post date:** [November 30, 2023, 8:55pm UTC](https://discuss.elastic.co/t/logstash-ca-error/348369/3 "2023-11-30T20:55:49Z")

</div>

Thanks for the lightning fast reply 🙂

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 28, 2023, 8:56pm UTC](https://discuss.elastic.co/t/logstash-ca-error/348369/4 "2023-12-28T20:56:44Z")

</div>

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