# Logstash monitoring Encountered a retryable error. Will Retry with exponential backoff

**URL:** <https://discuss.elastic.co/t/logstash-monitoring-encountered-a-retryable-error-will-retry-with-exponential-backoff/274958>\
**Category:** Logstash\
**Created:** [June 4, 2021, 8:18am UTC](https://discuss.elastic.co/t/logstash-monitoring-encountered-a-retryable-error-will-retry-with-exponential-backoff/274958 "2021-06-04T08:18:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vaclav1](https://avatars.discourse-cdn.com/v4/letter/v/c68b51/32.png) [@vaclav1](https://discuss.elastic.co/u/vaclav1)\
**Post date:** [June 4, 2021, 8:18am UTC](https://discuss.elastic.co/t/logstash-monitoring-encountered-a-retryable-error-will-retry-with-exponential-backoff/274958/1 "2021-06-04T08:18:43Z")

</div>

Hello,

I have just swapped to use TLS on http and configured api\_key as per [Configuring Security in Logstash | Logstash Reference [7.9] | Elastic](https://www.elastic.co/guide/en/logstash/7.9/ls-security.html)

My logstash.yml file:

```auto
# X-Pack Monitoring
xpack.monitoring.enabled: true
xpack.monitoring.elasticsearch.hosts: ["https://xx", "https://xx", "https://xx"]
xpack.monitoring.collection.interval: 1m
xpack.monitoring.elasticsearch.api_key: 5CsC1nkB_0IBCcsS_wsH:PRXjXbYiTiO9kpvV5D2n4w
xpack.monitoring.elasticsearch.ssl.verification_mode: certificate
xpack.monitoring.elasticsearch.ssl.certificate_authority: /app/products/logstash/conf/certs/elasticsearch-ca.pem

```

After I start logstash I see logstash trying to send monitoring data to Elasticsearch but is not successful:

```auto
[2021-06-04T10:11:26,602][ERROR][logstash.outputs.elasticsearchmonitoring][.monitoring-logstash][07d47826dd904d67fbd9d3c000e0e7de6f4ff20dc08e227a3fb2994c36b4101a] Encountered a retryable error. Will Retry with exponential backoff {:code=>403, :url=>"https://10.194.144.63:9200/_monitoring/bulk?system_id=logstash&system_api_version=7&interval=1s"}

```

403 means api\_key has insufficient privileges?

I defined this way:

```auto
{
  "name": "logstash_monitoring_czf2", 
  "role_descriptors": {
    "logstash_monitoring": { 
      "cluster": ["monitor"],
      "index": [
        {
          "names": [".monitoring-ls-*"],
          "privileges": ["create_index", "create", "write"]
        }
      ]
    }
  }
}

```

---

<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:** [July 2, 2021, 8:19am UTC](https://discuss.elastic.co/t/logstash-monitoring-encountered-a-retryable-error-will-retry-with-exponential-backoff/274958/2 "2021-07-02T08:19:36Z")

</div>

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