Enhancement: support limit crowdsec alerts to 24h (#5981)

Co-authored-by: MountainGod2 <admin@reid.ca>
This commit is contained in:
shamoon
2025-11-16 16:38:55 -08:00
committed by GitHub
parent 17c9b2631e
commit 196c51bf73
4 changed files with 15 additions and 1 deletions

View File

@@ -8,6 +8,9 @@ Learn more about [Crowdsec](https://crowdsec.net).
See the [crowdsec docs](https://docs.crowdsec.net/docs/local_api/intro/#machines) for information about registering a machine,
in most instances you can use the default credentials (`/etc/crowdsec/local_api_credentials.yaml`).
!!! note
Without the `limit24h` option, the widget will fetch all alerts which is limited to 100 by the API to avoid performance issues.
Allowed fields: `["alerts", "bans"]`.
```yaml
@@ -16,4 +19,5 @@ widget:
url: http://crowdsechostorip:port
username: localhost # machine_id in crowdsec
password: password
limit24h: true # optional, limits alerts to last 24h. Default: false
```