# Logstash code 503

**URL:** https://discuss.elastic.co/t/logstash-code-503/211436
**Category:** Logstash
**Created:** [December 11, 2019, 9:01am UTC](https://discuss.elastic.co/t/logstash-code-503/211436 "2019-12-11T09:01:55Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![typzea](https://avatars.discourse-cdn.com/v4/letter/t/e79b87/32.png) [@typzea](https://discuss.elastic.co/u/typzea)
#### Post date: [December 11, 2019, 9:01am UTC](https://discuss.elastic.co/t/logstash-code-503/211436/1 "2019-12-11T09:01:56Z")

</div>

Bonjour à tous,

J'ai besoin d'aide car depuis quelques jours j'ai le souci suivant :

Dec 11 08:54:12 s-log-p-i02-fr logstash[1011]: [2019-12-11T08:54:12,757][INFO][logstash.outputs.elasticsearch][main] retrying failed action with response code: 503 ({"type"=\>"unavailable\_shards\_exception", "reason"=\>"[filebeat-7.4.2-2019.12.03][0] primary shard is not active Timeout: [1m], request: [BulkShardRequest [[filebeat-7.4.2-2019.12.03][0]] containing [110] requests]"})  
Dec 11 08:54:12 s-log-p-i02-fr logstash[1011]: [2019-12-11T08:54:12,758][INFO][logstash.outputs.elasticsearch][main] retrying failed action with response code: 503 ({"type"=\>"unavailable\_shards\_exception", "reason"=\>"[filebeat-7.4.2-2019.12.03][0] primary shard is not active Timeout: [1m], request: [BulkShardRequest [[filebeat-7.4.2-2019.12.03][0]] containing [110] requests]"})  
Dec 11 08:54:12 s-log-p-i02-fr logstash[1011]: [2019-12-11T08:54:12,758][INFO][logstash.outputs.elasticsearch][main] retrying failed action with response code: 503 ({"type"=\>"unavailable\_shards\_exception", "reason"=\>"[filebeat-7.4.2-2019.12.03][0] primary shard is not active Timeout: [1m], request: [BulkShardRequest [[filebeat-7.4.2-2019.12.03][0]] containing [110] requests]"})  
Dec 11 08:54:12 s-log-p-i02-fr logstash[1011]: [2019-12-11T08:54:12,758][INFO][logstash.outputs.elasticsearch][main] retrying failed action with response code: 503 ({"type"=\>"unavailable\_shards\_exception", "reason"=\>"[filebeat-7.4.2-2019.12.03][0] primary shard is not active Timeout: [1m], request: [BulkShardRequest [[filebeat-7.4.2-2019.12.03][0]] containing [110] requests]"})  
Dec 11 08:54:12 s-log-p-i02-fr logstash[1011]: [2019-12-11T08:54:12,758][INFO][logstash.outputs.elasticsearch][main] retrying failed action with response code: 503 ({"type"=\>"unavailable\_shards\_exception", "reason"=\>"[filebeat-7.4.2-2019.12.03][0] primary shard is not active Timeout: [1m], request: [BulkShardRequest [[filebeat-7.4.2-2019.12.03][0]] containing [110] requests]"})  
Dec 11 08:54:12 s-log-p-i02-fr logstash[1011]: [2019-12-11T08:54:12,759][INFO][logstash.outputs.elasticsearch][main] retrying failed action with response code: 503 ({"type"=\>"unavailable\_shards\_exception", "reason"=\>"[filebeat-7.4.2-2019.12.03][0] primary shard is not active Timeout: [1m], request: [BulkShardRequest [[filebeat-7.4.2-2019.12.03][0]] containing [110] requests]"})  
Dec 11 08:54:12 s-log-p-i02-fr logstash[1011]: [2019-12-11T08:54:12,759][INFO][logstash.outputs.elasticsearch][main] retrying failed action with response code: 503 ({"type"=\>"unavailable\_shards\_exception", "reason"=\>"[filebeat-7.4.2-2019.12.03][0] primary shard is not active Timeout: [1m], request: [BulkShardRequest [[filebeat-7.4.2-2019.12.03][0]] containing [110] requests]"})  
Dec 11 08:54:12 s-log-p-i02-fr logstash[1011]: [2019-12-11T08:54:12,759][INFO][logstash.outputs.elasticsearch][main] retrying failed action with response code: 503 ({"type"=\>"unavailable\_shards\_exception", "reason"=\>"[filebeat-7.4.2-2019.12.03][0] primary shard is not active Timeout: [1m], request: [BulkShardRequest [[filebeat-7.4.2-2019.12.03][0]] containing [110] requests]"})  
Dec 11 08:54:12 s-log-p-i02-fr logstash[1011]: [2019-12-11T08:54:12,759][INFO][logstash.outputs.elasticsearch][main] retrying failed action with response code: 503 ({"type"=\>"unavailable\_shards\_exception", "reason"=\>"[filebeat-7.4.2-2019.12.03][0] primary shard is not active Timeout: [1m], request: [BulkShardRequest [[filebeat-7.4.2-2019.12.03][0]] containing [110] requests]"})  
Dec 11 08:54:12 s-log-p-i02-fr logstash[1011]: [2019-12-11T08:54:12,760][INFO][logstash.outputs.elasticsearch][main] Retrying individual bulk actions that failed or were rejected by the previous bulk request. {:count=\>110}

pouvez-vous m'aider ?

Merci,

---

<div class="post-metadata">

### Author: ![yaauie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yaauie/32/23363_2.png) [@yaauie](https://discuss.elastic.co/u/yaauie)
#### Post date: [December 11, 2019, 9:58pm UTC](https://discuss.elastic.co/t/logstash-code-503/211436/2 "2019-12-11T21:58:42Z")

</div>

- Your Elasticsearch is refusing to index the events, and indicates in its response that there are no shards available.
- Logstash is retrying the failed request repeatedly, hoping that your Elasticsearch will eventually accept the events
- You need to resolve the health of your Elasticsearch cluster before the requests will begin succeeding

Auto-translate to French:

> - Votre Elasticsearch refuse d'indexer les événements et indique dans sa réponse qu'aucun fragment n'est disponible.
> - Logstash réessaye la demande qui a échoué à plusieurs reprises, en espérant que votre Elasticsearch accepte finalement les événements
> - Vous devez résoudre l'intégrité de votre cluster Elasticsearch avant que les demandes ne commencent à réussir

---

<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, 9:58pm UTC](https://discuss.elastic.co/t/logstash-code-503/211436/3 "2020-01-08T21:58:45Z")

</div>

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