# How to deal with "Previous message repeated 2 times"

**URL:** <https://discuss.elastic.co/t/how-to-deal-with-previous-message-repeated-2-times/60516>\
**Category:** Logstash\
**Created:** [September 14, 2016, 2:43pm UTC](https://discuss.elastic.co/t/how-to-deal-with-previous-message-repeated-2-times/60516 "2016-09-14T14:43:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mick\_Mahoney](https://avatars.discourse-cdn.com/v4/letter/m/cab0a1/32.png) [@Mick\_Mahoney](https://discuss.elastic.co/u/Mick_Mahoney)\
**Post date:** [September 14, 2016, 2:43pm UTC](https://discuss.elastic.co/t/how-to-deal-with-previous-message-repeated-2-times/60516/1 "2016-09-14T14:43:26Z")

</div>

Hi,

Wonder if anyone can advise how to deal with processing an erro log file which can be broken down easily into fields, however there is the occasional line such as:

"Previous message repeated X times", where X is a number

How would I best approach buffering the previous line, and then just repeating it X times when I get such a message.

Any tips or similar examples very much appreciated.

Thanks,

Mick

---

<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/how-to-deal-with-previous-message-repeated-2-times/60516/2 "2017-07-06T04:38:30Z")

</div>

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


