# Logstash disable retry on RC 403

**URL:** https://discuss.elastic.co/t/logstash-disable-retry-on-rc-403/235125
**Category:** Logstash
**Created:** [June 1, 2020, 7:58am UTC](https://discuss.elastic.co/t/logstash-disable-retry-on-rc-403/235125 "2020-06-01T07:58:03Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![hadars](https://avatars.discourse-cdn.com/v4/letter/h/4bbf92/32.png) [@hadars](https://discuss.elastic.co/u/hadars)
#### Post date: [June 1, 2020, 7:58am UTC](https://discuss.elastic.co/t/logstash-disable-retry-on-rc-403/235125/1 "2020-06-01T07:58:03Z")

</div>

Hey all,  
We used to let Logstash open indices if needed, this is no longer needed due to auto pre-creating of all the needed indices.  
Right now we removed the permissions to create indeces of the Logstash, this worked for a while.  
Sometimes we are getting old logs\ logs with old @timestamp field, which Logstash is trying to create a new index for.  
The amount of 403 forbidden and it's retries eventually takes Logstash down.  
I couldn't find any solution for this situation, is there a way to stop retry if i'm getting 403 from elastic?  
The only solution i found require parsing of the timestamp and drop events that are older then a certain amount of days.  
If someone have a better solution for this it will great.  
Thanks.

---

<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: [June 29, 2020, 7:58am UTC](https://discuss.elastic.co/t/logstash-disable-retry-on-rc-403/235125/2 "2020-06-29T07:58:10Z")

</div>

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