# Logstash retrying failed action ... "reason"=\>"action \[indices:admin/create\] is unauthorized for user logstash\_writer

**URL:** https://discuss.elastic.co/t/logstash-retrying-failed-action-reason-action-indices-admin-create-is-unauthorized-for-user-logstash-writer/211469
**Category:** Elasticsearch
**Created:** [December 11, 2019, 1:22pm UTC](https://discuss.elastic.co/t/logstash-retrying-failed-action-reason-action-indices-admin-create-is-unauthorized-for-user-logstash-writer/211469 "2019-12-11T13:22:30Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![leprovokateur](https://avatars.discourse-cdn.com/v4/letter/l/8e8cbc/32.png) [@leprovokateur](https://discuss.elastic.co/u/leprovokateur)
#### Post date: [December 11, 2019, 1:22pm UTC](https://discuss.elastic.co/t/logstash-retrying-failed-action-reason-action-indices-admin-create-is-unauthorized-for-user-logstash-writer/211469/1 "2019-12-11T13:22:30Z")

</div>

Hi,

I have the following lines in my logstash logs:

Dec 11 14:09:01 EAGLEEYE-A3001 logstash: [2019-12-11T14:09:01,149][INFO][logstash.outputs.elasticsearch] retrying failed action with response code: 403 ({"type"=\>"security\_exception", "reason"=\>"action [indices:admin/create] is unauthorized for user [logstash\_writer]"})  
Dec 11 14:09:01 EAGLEEYE-A3001 logstash: [2019-12-11T14:09:01,149][INFO][logstash.outputs.elasticsearch] Retrying individual bulk actions that failed or were rejected by the previous bulk request. {:count=\>1}

I don't find the needed permission to grant to the role the user has.

With the role superuser everything works.

I have set the following privileges to logstash\_writer:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/5/8/5881a74437f85ebe28df1cb6b14175e67e7a3149.png)

I am thankfulfor every advise.

Best regards,  
Robert

---

<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: [January 8, 2020, 1:22pm UTC](https://discuss.elastic.co/t/logstash-retrying-failed-action-reason-action-indices-admin-create-is-unauthorized-for-user-logstash-writer/211469/2 "2020-01-08T13:22:38Z")

</div>

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