# Aggregate and elapsed filter plugins - multiple events processing

**URL:** https://discuss.elastic.co/t/aggregate-and-elapsed-filter-plugins-multiple-events-processing/78573
**Category:** Logstash
**Created:** [March 14, 2017, 5:58pm UTC](https://discuss.elastic.co/t/aggregate-and-elapsed-filter-plugins-multiple-events-processing/78573 "2017-03-14T17:58:18Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Nikolay\_Shushkin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nikolay_shushkin/32/13809_2.png) [@Nikolay\_Shushkin](https://discuss.elastic.co/u/Nikolay_Shushkin)
#### Post date: [March 14, 2017, 5:58pm UTC](https://discuss.elastic.co/t/aggregate-and-elapsed-filter-plugins-multiple-events-processing/78573/1 "2017-03-14T17:58:18Z")

</div>

Why there is a limitation in **aggregate** plugin usage:  
"`You should be very careful to set logstash filter workers to 1 (-w 1 flag) for this filter to work correctly otherwise events may be processed out of sequence and unexpected results will occur`".

But another filter plugin **elapsed** which works with multiple events too does not have such a limitation?

It seems that "out of sequence processing" effect is more important in duration calculation but not in aggregation.

---

<div class="post-metadata">

### Author: ![whyapenny](https://avatars.discourse-cdn.com/v4/letter/w/90db22/32.png) [@whyapenny](https://discuss.elastic.co/u/whyapenny)
#### Post date: [March 16, 2017, 4:44am UTC](https://discuss.elastic.co/t/aggregate-and-elapsed-filter-plugins-multiple-events-processing/78573/2 "2017-03-16T04:44:56Z")

</div>

i believe elapsed filter, too, has such limitation. If processed out of sequence, elapsed filter will throw an error for an event with no beginning.

---

<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: [April 13, 2017, 4:45am UTC](https://discuss.elastic.co/t/aggregate-and-elapsed-filter-plugins-multiple-events-processing/78573/3 "2017-04-13T04:45:00Z")

</div>

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