# Logstash count insta Filter aggregate

**URL:** <https://discuss.elastic.co/t/logstash-count-insta-filter-aggregate/251512>\
**Category:** Logstash\
**Created:** [October 8, 2020, 11:06pm UTC](https://discuss.elastic.co/t/logstash-count-insta-filter-aggregate/251512 "2020-10-08T23:06:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bbwolf](https://avatars.discourse-cdn.com/v4/letter/b/779978/32.png) [@bbwolf](https://discuss.elastic.co/u/bbwolf)\
**Post date:** [October 8, 2020, 11:06pm UTC](https://discuss.elastic.co/t/logstash-count-insta-filter-aggregate/251512/1 "2020-10-08T23:06:49Z")

</div>

Hello,  
I would to know the best way to have count\_event as aggregate for task\_id equal to field1.  
I can create count as new event but notre like in the following format.

```auto
Field1, field2, field3, field4, count_event
 A,B, C, 1,2
A,D, E, 0,2
B, E, T, 1,2
B, R, H, 0,2
S, V, X, 1,1

```

Thanks

---

<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:** [November 5, 2020, 11:06pm UTC](https://discuss.elastic.co/t/logstash-count-insta-filter-aggregate/251512/2 "2020-11-05T23:06:50Z")

</div>

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