# Behavior of sqs input plugin when output plugin fails

**URL:** <https://discuss.elastic.co/t/behavior-of-sqs-input-plugin-when-output-plugin-fails/78793>\
**Category:** Logstash\
**Created:** [March 16, 2017, 3:59am UTC](https://discuss.elastic.co/t/behavior-of-sqs-input-plugin-when-output-plugin-fails/78793 "2017-03-16T03:59:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mnozawa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mnozawa/32/15091_2.png) [@mnozawa](https://discuss.elastic.co/u/mnozawa)\
**Post date:** [March 16, 2017, 3:59am UTC](https://discuss.elastic.co/t/behavior-of-sqs-input-plugin-when-output-plugin-fails/78793/1 "2017-03-16T03:59:22Z")

</div>

Hi everyone

I am using sqs input plugin and elasticsearch output plugin (with no filter).  
When indexing to elasticsearch fails because of no running target cluster, the document ("message" in sqs term) seems lost.

My question is:  
Is there any way to return the document (message) to the queue in case of some error occurs at the output plugin?

regards.

---

<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:** [April 13, 2017, 3:59am UTC](https://discuss.elastic.co/t/behavior-of-sqs-input-plugin-when-output-plugin-fails/78793/2 "2017-04-13T03:59:27Z")

</div>

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