# Limit the Number of Notifications

**URL:** https://discourse.crowdsec.net/t/limit-the-number-of-notifications/354
**Category:** crowdsec
**Created:** [November 22, 2021, 1:35pm UTC](https://discourse.crowdsec.net/t/limit-the-number-of-notifications/354 "2021-11-22T13:35:14Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![lleddewk](https://avatars.discourse-cdn.com/v4/letter/l/e56c9b/32.png) [@lleddewk](https://discourse.crowdsec.net/u/lleddewk)
#### Post date: [November 22, 2021, 1:35pm UTC](https://discourse.crowdsec.net/t/limit-the-number-of-notifications/354/1 "2021-11-22T13:35:14Z")

</div>

Hi. I am trying to understand how to limit the number of notifications that I receive from Crowdsec. I want to continue to ban IPs but I only want to receive a notification for clusters of alerts. I am looking at the group\_wait and group\_threshold settings but I don’t understand how they interact. Is the notification only sent when the group\_threshold is exceeded within the group\_wait period? For example, more than 10 alerts in 30 seconds. Or are they both independent? Can anyone give me any hints?

Keith

Cross-posted from gitter

---

<div class="post-metadata">

### Author: ![sabban](https://dub1.discourse-cdn.com/flex013/user_avatar/discourse.crowdsec.net/sabban/32/190_2.png) [@sabban](https://discourse.crowdsec.net/u/sabban)
#### Post date: [November 24, 2021, 9:29am UTC](https://discourse.crowdsec.net/t/limit-the-number-of-notifications/354/2 "2021-11-24T09:29:28Z")

</div>

The first met condition actually triggers the notification. For example you can set a group\_wait at 30m and a group\_thrshold at 10, and you’ll get either notification every 30m or get a bunch of 10 notification if that threshold is met. You can even set your group\_threshold to 0 to have notifications every 30m.

Regards,

---

<div class="post-metadata">

### Author: ![klausagnoletti](https://dub1.discourse-cdn.com/flex013/user_avatar/discourse.crowdsec.net/klausagnoletti/32/201_2.png) [@klausagnoletti](https://discourse.crowdsec.net/u/klausagnoletti)
#### Post date: [November 24, 2021, 12:57pm UTC](https://discourse.crowdsec.net/t/limit-the-number-of-notifications/354/3 "2021-11-24T12:57:55Z")

</div>

Thanks for posting here but you really don’t need to crosspost. We monitor both Discourse and Gitter 🕶

---

<div class="post-metadata">

### Author: ![lleddewk](https://avatars.discourse-cdn.com/v4/letter/l/e56c9b/32.png) [@lleddewk](https://discourse.crowdsec.net/u/lleddewk)
#### Post date: [November 25, 2021, 4:28pm UTC](https://discourse.crowdsec.net/t/limit-the-number-of-notifications/354/4 "2021-11-25T16:28:13Z")

</div>

Sorry. Gitter was silent for a few days so I wasn’t sure. I won’t do it again.

Keith
