# Encountered a retryable error. Will Retry with exponential backoff code=\>403

**URL:** <https://discuss.elastic.co/t/encountered-a-retryable-error-will-retry-with-exponential-backoff-code-403/276382>\
**Category:** Logstash\
**Created:** [June 18, 2021, 11:27am UTC](https://discuss.elastic.co/t/encountered-a-retryable-error-will-retry-with-exponential-backoff-code-403/276382 "2021-06-18T11:27:46Z")\
**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 18, 2021, 11:27am UTC](https://discuss.elastic.co/t/encountered-a-retryable-error-will-retry-with-exponential-backoff-code-403/276382/1 "2021-06-18T11:27:46Z")

</div>

Hello,

we have recently swapped to use api keys and created api key for logstash monitoring.  
As written here: [Configuring Security in Logstash | Logstash Reference [7.9] | Elastic](https://www.elastic.co/guide/en/logstash/7.9/ls-security.html)

```auto
POST /_security/api_key
{
  "name": "logstash_host001", 
  "role_descriptors": {
    "logstash_monitoring": { 
      "cluster": ["monitor"],
      "index": [
        {
          "names": [".monitoring-ls-*"],
          "privileges": ["create_index", "create"]
        }
      ]
    }
  }
}

```

But than we got 403:

```auto
[2021-06-18T13:13:00,558][ERROR][logstash.outputs.elasticsearchmonitoring][.monitoring-logstash][3b38853896d8e0a599613f348f4208e1c52e98c142d5d7336063ce90a8142ec0] Encountered a retryable error. Will Retry with exponential backoff {:code=>403, :url=>"https://10.194.144.62:9200/_monitoring/bulk?system_id=logstash&system_api_version=7&interval=1s"}

```

I bet we miss some rights?

---

<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 16, 2021, 11:28am UTC](https://discuss.elastic.co/t/encountered-a-retryable-error-will-retry-with-exponential-backoff-code-403/276382/2 "2021-07-16T11:28:25Z")

</div>

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