# Aggregate filter push map

**URL:** <https://discuss.elastic.co/t/aggregate-filter-push-map/140686>\
**Category:** Logstash\
**Created:** [July 19, 2018, 8:07am UTC](https://discuss.elastic.co/t/aggregate-filter-push-map/140686 "2018-07-19T08:07:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pierre2](https://avatars.discourse-cdn.com/v4/letter/p/da6949/32.png) [@Pierre2](https://discuss.elastic.co/u/Pierre2)\
**Post date:** [July 19, 2018, 8:07am UTC](https://discuss.elastic.co/t/aggregate-filter-push-map/140686/1 "2018-07-19T08:07:11Z")

</div>

Hello !

I use the aggregate filter but and I want to push the map as event. I know that is possible to push the map as event on timeout but is that possible to push the map on end of task ? When the end event is detected ?

---

<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:** [July 19, 2018, 8:41pm UTC](https://discuss.elastic.co/t/aggregate-filter-push-map/140686/2 "2018-07-19T20:41:18Z")

</div>

There is no way to do this automatically, but if you have an end event you can have the ruby code add the contents of the map to the current event.

---

<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:** [August 16, 2018, 8:41pm UTC](https://discuss.elastic.co/t/aggregate-filter-push-map/140686/3 "2018-08-16T20:41:23Z")

</div>

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