# Logstash Aggregation Plugin

**URL:** https://discuss.elastic.co/t/logstash-aggregation-plugin/184632
**Category:** Logstash
**Created:** [June 6, 2019, 4:50pm UTC](https://discuss.elastic.co/t/logstash-aggregation-plugin/184632 "2019-06-06T16:50:00Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Elk\_huh](https://avatars.discourse-cdn.com/v4/letter/e/d26b3c/32.png) [@Elk\_huh](https://discuss.elastic.co/u/Elk_huh)
#### Post date: [June 6, 2019, 4:50pm UTC](https://discuss.elastic.co/t/logstash-aggregation-plugin/184632/1 "2019-06-06T16:50:00Z")

</div>

We are getting multiple events come in ( because of multiple botnet calls, but it is the same SRC and DST) How do you use the aggregation plugin to combine it all into 1 . Timestamps are slightly different

```
	Time src dhost dst requestMethod request act outcome reason riskScore requestContext      
	June 2nd 2019, 1.2.3.4 62.212.33.98	62.212.33.98	CONNECT	62.212.33.98/	Blocked	403	Reputation block outbound request: botnet site	0	None
	June 2nd 2019, 1.2.3.4 62.212.33.98	62.212.33.98	CONNECT	62.212.33.98/	Blocked	403	Reputation block outbound request: botnet site	0	None
	June 2nd 2019, 1.2.3.4 62.212.33.98 62.212.33.98	CONNECT	62.212.33.98/	Blocked	403	Reputation block outbound request: botnet site	0	None
```

---

<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: [June 6, 2019, 5:28pm UTC](https://discuss.elastic.co/t/logstash-aggregation-plugin/184632/2 "2019-06-06T17:28:44Z")

</div>

What do you want to aggregate?

---

<div class="post-metadata">

### Author: ![Elk\_huh](https://avatars.discourse-cdn.com/v4/letter/e/d26b3c/32.png) [@Elk\_huh](https://discuss.elastic.co/u/Elk_huh)
#### Post date: [June 6, 2019, 6:07pm UTC](https://discuss.elastic.co/t/logstash-aggregation-plugin/184632/3 "2019-06-06T18:07:29Z")

</div>

"src" and "dst" and "request"

---

<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: [June 6, 2019, 6:57pm UTC](https://discuss.elastic.co/t/logstash-aggregation-plugin/184632/4 "2019-06-06T18:57:56Z")

</div>

Those three fields have the same values in those three messages. It does not make any sense to aggregate them.

---

<div class="post-metadata">

### Author: ![Elk\_huh](https://avatars.discourse-cdn.com/v4/letter/e/d26b3c/32.png) [@Elk\_huh](https://discuss.elastic.co/u/Elk_huh)
#### Post date: [June 6, 2019, 6:58pm UTC](https://discuss.elastic.co/t/logstash-aggregation-plugin/184632/5 "2019-06-06T18:58:59Z")

</div>

Thats the problem, We get multiple events from zscaler for the same thing that happened . Thats why im trying to condense it into 1 document

---

<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: [June 6, 2019, 7:04pm UTC](https://discuss.elastic.co/t/logstash-aggregation-plugin/184632/6 "2019-06-06T19:04:24Z")

</div>

It sounds like you want to do de-duplication. If you are using an elasticsearch output then [this](https://www.elastic.co/blog/logstash-lessons-handling-duplicates) blog has some ideas.

---

<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: [July 4, 2019, 7:04pm UTC](https://discuss.elastic.co/t/logstash-aggregation-plugin/184632/7 "2019-07-04T19:04:35Z")

</div>

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