# Corrupt index in Logstash causing primary shard is not active

**URL:** <https://discuss.elastic.co/t/corrupt-index-in-logstash-causing-primary-shard-is-not-active/334229>\
**Category:** Logstash\
**Created:** [May 24, 2023, 2:30pm UTC](https://discuss.elastic.co/t/corrupt-index-in-logstash-causing-primary-shard-is-not-active/334229 "2023-05-24T14:30:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vaibhav\_Aher](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vaibhav_aher/32/121401_2.png) [@Vaibhav\_Aher](https://discuss.elastic.co/u/Vaibhav_Aher)\
**Post date:** [May 24, 2023, 2:30pm UTC](https://discuss.elastic.co/t/corrupt-index-in-logstash-causing-primary-shard-is-not-active/334229/1 "2023-05-24T14:30:23Z")

</div>

Elasticsearch Version- opendistroforelasticsearch-1.4.0  
Logstash Version - logstash-7.4.2

Error on Logstash:  
retrying failed action with response code: 503 ({"type"=\>"unavailable\_shards\_exception", "reason"=\>"[ABC-2023.05][0] primary shard is not active Timeout: [1m], request: [BulkShardRequest [[ABC-2023.05][0]] containing [11] requests]"})

I'm okay to loose data for that index.  
What could be the possible solution

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [May 24, 2023, 2:34pm UTC](https://discuss.elastic.co/t/corrupt-index-in-logstash-causing-primary-shard-is-not-active/334229/2 "2023-05-24T14:34:19Z")

</div>

> [@Vaibhav\_Aher](#):
>
> Elasticsearch Version- opendistroforelasticsearch-1.4.0

Opendistro is not supported here, you need to check on an Opendistro/AWS forum.

But your error mean that for some reason the primary shard of your index is not available, you need to investigate why.

Also, you changed the name of your index before sharing the log, right? `ABC-2023.05` is not a valid index name.

---

<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:** [May 24, 2023, 2:34pm UTC](https://discuss.elastic.co/t/corrupt-index-in-logstash-causing-primary-shard-is-not-active/334229/3 "2023-05-24T14:34:19Z")

</div>

OpenSearch/OpenDistro are AWS run products and differ from the original Elasticsearch and Kibana products that Elastic builds and maintains. You may need to contact them directly for further assistance.

(This is an automated response from your friendly Elastic bot. Please report this post if you have any suggestions or concerns :elasticheart: )

---

<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 21, 2023, 2:34pm UTC](https://discuss.elastic.co/t/corrupt-index-in-logstash-causing-primary-shard-is-not-active/334229/4 "2023-06-21T14:34:56Z")

</div>

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