# Fallback http output

**URL:** <https://discuss.elastic.co/t/fallback-http-output/128154>\
**Category:** Logstash\
**Created:** [April 16, 2018, 9:31am UTC](https://discuss.elastic.co/t/fallback-http-output/128154 "2018-04-16T09:31:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![luca.cavazzana](https://avatars.discourse-cdn.com/v4/letter/l/3bc359/32.png) [@luca.cavazzana](https://discuss.elastic.co/u/luca.cavazzana)\
**Post date:** [April 16, 2018, 9:31am UTC](https://discuss.elastic.co/t/fallback-http-output/128154/1 "2018-04-16T09:31:31Z")

</div>

Hi,  
I have a simple configuration with a _http output plugin_ firing to a custom application.  
What I'd like to obtain is to log on another Elastic Search any http:50x status codes that logstash may get when forwarding the message to my app.

Is it in any way possible to use the status code of an output plugin as condition for another one?

Thanks

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [April 16, 2018, 11:35am UTC](https://discuss.elastic.co/t/fallback-http-output/128154/2 "2018-04-16T11:35:41Z")

</div>

> What I'd like to obtain is to log on another Elastic Search any http:50x status codes that logstash may get when forwarding the message to my app.

The correct solution would probably be to add dead letter queue support in the http output plugin. I don't have a great suggestion for a workaround.

> Is it in any way possible to use the status code of an output plugin as condition for another one?

No.

---

<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 14, 2018, 11:35am UTC](https://discuss.elastic.co/t/fallback-http-output/128154/3 "2018-05-14T11:35:48Z")

</div>

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