# How to prevent an occurence of \_aggregatefinalflush tag?

**URL:** <https://discuss.elastic.co/t/how-to-prevent-an-occurence-of-aggregatefinalflush-tag/228284>\
**Category:** Logstash\
**Created:** [April 16, 2020, 8:58am UTC](https://discuss.elastic.co/t/how-to-prevent-an-occurence-of-aggregatefinalflush-tag/228284 "2020-04-16T08:58:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![vasek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vasek/32/136636_2.png) [@vasek](https://discuss.elastic.co/u/vasek)\
**Post date:** [April 16, 2020, 8:58am UTC](https://discuss.elastic.co/t/how-to-prevent-an-occurence-of-aggregatefinalflush-tag/228284/1 "2020-04-16T08:58:31Z")

</div>

Hello,  
can someone help me how to prevent an occurence of `_aggregatefinalflush` tag?

```
aggregate {
    ...
    timeout => 5
    timeout_tags => []
}
```

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [April 16, 2020, 1:50pm UTC](https://discuss.elastic.co/t/how-to-prevent-an-occurence-of-aggregatefinalflush-tag/228284/2 "2020-04-16T13:50:55Z")

</div>

> [@vasek](#):
>
> can someone help me how to prevent an occurence of `_aggregatefinalflush` tag?

\_aggregatefinalflush is added to any events flushed from the output when logstash shuts down, so you can avoid them by running logstash for an infinitely long time.

---

<div class="post-metadata">

**Author:** ![vasek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vasek/32/136636_2.png) [@vasek](https://discuss.elastic.co/u/vasek)\
**Post date:** [April 16, 2020, 2:09pm UTC](https://discuss.elastic.co/t/how-to-prevent-an-occurence-of-aggregatefinalflush-tag/228284/3 "2020-04-16T14:09:23Z")

</div>

OK 🙂 And what is the purpose of this tag? How can this tag be useful?

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [April 16, 2020, 2:23pm UTC](https://discuss.elastic.co/t/how-to-prevent-an-occurence-of-aggregatefinalflush-tag/228284/4 "2020-04-16T14:23:33Z")

</div>

The tag was added as part of the fix for [this](https://github.com/logstash-plugins/logstash-filter-aggregate/issues/50) issue. I cannot speak to why anyone might consider it useful.

---

<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, 2020, 2:23pm UTC](https://discuss.elastic.co/t/how-to-prevent-an-occurence-of-aggregatefinalflush-tag/228284/5 "2020-05-14T14:23:39Z")

</div>

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