# Logstash not importing data into elasticsearch

**URL:** https://discuss.elastic.co/t/logstash-not-importing-data-into-elasticsearch/88197
**Category:** Logstash
**Created:** [June 4, 2017, 5:38pm UTC](https://discuss.elastic.co/t/logstash-not-importing-data-into-elasticsearch/88197 "2017-06-04T17:38:36Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![amilus](https://avatars.discourse-cdn.com/v4/letter/a/b9e5f3/32.png) [@amilus](https://discuss.elastic.co/u/amilus)
#### Post date: [June 4, 2017, 5:38pm UTC](https://discuss.elastic.co/t/logstash-not-importing-data-into-elasticsearch/88197/1 "2017-06-04T17:38:36Z")

</div>

i'm importing data from twitter through logstash into elasticsearch, it was working just fine but since a \> few days it stopped working, and im getting this error, could someone help me please

> ```
> [2017-06-04T18:25:39,590][INFO][logstash.outputs.elasticsearch] retrying failed action with response code: 503 ({"type"=>"unavailable_shards_exception", "reason"=>"[twitter][0] primary shard is not active Timeout: [1m], request: [BulkShardRequest [[twitter][0]] containing [index {[twitter][tweets][AVx0IyYJK-65trS-lqT9], source[n/a, actual length: [6.2kb], max length: 2kb]}]]"})
> [2017-06-04T18:25:39,592][INFO][logstash.outputs.elasticsearch] Retrying individual bulk actions that failed or were rejected by the previous bulk request. {:count=>1}
> 
> ```

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [June 5, 2017, 3:02am UTC](https://discuss.elastic.co/t/logstash-not-importing-data-into-elasticsearch/88197/2 "2017-06-05T03:02:13Z")

</div>

Looks like ES has some problems.

If you run `_cat/indices` against ES what does it show?

---

<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 3, 2017, 3:02am UTC](https://discuss.elastic.co/t/logstash-not-importing-data-into-elasticsearch/88197/3 "2017-07-03T03:02:22Z")

</div>

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