# Keep Logstash from Crashing

**URL:** <https://discuss.elastic.co/t/keep-logstash-from-crashing/90392>\
**Category:** Logstash\
**Created:** [June 22, 2017, 5:45am UTC](https://discuss.elastic.co/t/keep-logstash-from-crashing/90392 "2017-06-22T05:45:37Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![dedemorton](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dedemorton/32/84409_2.png) [@dedemorton](https://discuss.elastic.co/u/dedemorton)\
**Post date:** [July 12, 2017, 8:03pm UTC](https://discuss.elastic.co/t/keep-logstash-from-crashing/90392/6 "2017-07-12T20:03:42Z")

</div>

Sounds like you've resolved this issue. But for other users who encounter this problem, another work around is to use `add_field` instead of `rename` in your `mutate` filter.

So use this:

```auto
mutate {
      add_field => { "read_timestamp" => "%{@timestamp}" }
   }

```

Instead of:

```auto
mutate {
      rename => { "@timestamp" => "read_timestamp" }
   }

```

The config in the docs should work with this change.

---

_[View the full topic](https://discuss.elastic.co/t/keep-logstash-from-crashing/90392)._
