# Is it possible to aggregate logs from cef input

**URL:** <https://discuss.elastic.co/t/is-it-possible-to-aggregate-logs-from-cef-input/139976>\
**Category:** Logstash\
**Created:** [July 13, 2018, 4:08pm UTC](https://discuss.elastic.co/t/is-it-possible-to-aggregate-logs-from-cef-input/139976 "2018-07-13T16:08:12Z")\
**Posts on this page:** 5\
**Page:** 2

<div class="post-metadata">

**Author:** ![saad](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/saad/32/17214_2.png) [@saad](https://discuss.elastic.co/u/saad)\
**Post date:** [August 9, 2018, 4:02pm UTC](https://discuss.elastic.co/t/is-it-possible-to-aggregate-logs-from-cef-input/139976/21 "2018-08-09T16:02:29Z")

</div>

in the aggregation, how can I make sure that the base events are deleted and not emitted to the elasticsearch and only the aggregated event was emitted?

---

<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:** [August 9, 2018, 4:22pm UTC](https://discuss.elastic.co/t/is-it-possible-to-aggregate-logs-from-cef-input/139976/22 "2018-08-09T16:22:47Z")

</div>

That's what the event.cancel does. To check if it is working do a search for NOT \_exists\_: aggregatedEvents

---

<div class="post-metadata">

**Author:** ![saad](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/saad/32/17214_2.png) [@saad](https://discuss.elastic.co/u/saad)\
**Post date:** [August 9, 2018, 4:34pm UTC](https://discuss.elastic.co/t/is-it-possible-to-aggregate-logs-from-cef-input/139976/23 "2018-08-09T16:34:29Z")

</div>

> [@Badger](#):
>
> event.cancel

Would you show me where I can put this code please

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/2/4/2405098f8cbc2c90da8db2750e7f4de2308247fd.png)

---

<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:** [August 9, 2018, 4:39pm UTC](https://discuss.elastic.co/t/is-it-possible-to-aggregate-logs-from-cef-input/139976/24 "2018-08-09T16:39:41Z")

</div>

It is already present as the first line of your code.

---

<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:** [September 6, 2018, 4:39pm UTC](https://discuss.elastic.co/t/is-it-possible-to-aggregate-logs-from-cef-input/139976/25 "2018-09-06T16:39:42Z")

</div>

Closed on September 6, 2018, 4:39pm UTC

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

[Previous page](https://discuss.elastic.co/t/is-it-possible-to-aggregate-logs-from-cef-input/139976.md?page=1)
