# Catch 404 error from output plugin and then write back to log file

**URL:** <https://discuss.elastic.co/t/catch-404-error-from-output-plugin-and-then-write-back-to-log-file/27640>\
**Category:** Logstash\
**Created:** [August 19, 2015, 6:27am UTC](https://discuss.elastic.co/t/catch-404-error-from-output-plugin-and-then-write-back-to-log-file/27640 "2015-08-19T06:27:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![crickeys](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/crickeys/32/4254_2.png) [@crickeys](https://discuss.elastic.co/u/crickeys)\
**Post date:** [August 19, 2015, 6:27am UTC](https://discuss.elastic.co/t/catch-404-error-from-output-plugin-and-then-write-back-to-log-file/27640/1 "2015-08-19T06:27:20Z")

</div>

Is there any way to catch this

```
failed action with response of 404, dropping action:

```

from an output plugin and then re-write it into the log or retry it again in a bit instead of dropping it?

---

<div class="post-metadata">

**Author:** ![ptz0n](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ptz0n/32/11866_2.png) [@ptz0n](https://discuss.elastic.co/u/ptz0n)\
**Post date:** [September 12, 2016, 1:25pm UTC](https://discuss.elastic.co/t/catch-404-error-from-output-plugin-and-then-write-back-to-log-file/27640/2 "2016-09-12T13:25:47Z")

</div>

Also interested in doing this. Any suggested approach of catching 400's from ES and output to statsd or eq?

---

<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 6, 2017, 4:38am UTC](https://discuss.elastic.co/t/catch-404-error-from-output-plugin-and-then-write-back-to-log-file/27640/3 "2017-07-06T04:38:57Z")

</div>

Closed on July 6, 2017, 4:38am UTC


