C
CrowdSec9mo ago
Sich

Query local api for scenario containing http

Hi, I have read the documentation here : https://docs.crowdsec.net/docs/next/local_api/bouncers/ I see that we can query the LAPI for a specific IP, but not for scenario containing something, like "http" or "appsec". My main goal is to query the LAPI but ask only for decisions where the scenarios contain a certain pattern (like http/appsec). atm I just query everything and filter later on the client side, but maybe it can use less ressources if I can filter on the LAPI request...
For Remediation Components | CrowdSec
This page explains how to interact with the local API exposed by the Security Engine.
5 Replies
CrowdSec
CrowdSec9mo ago
Important Information
This post has been marked as resolved. If this is a mistake please press the red button below or type /unresolve
© Created By WhyAydan for CrowdSec ❤️
blotus
blotus9mo ago
GitHub
crowdsec/pkg/models/localapi_swagger.yaml at master · crowdsecurity...
CrowdSec - the open-source and participative security solution offering crowdsourced protection against malicious IPs and access to the most advanced real-world CTI. - crowdsecurity/crowdsec
blotus
blotus9mo ago
In your case, you are looking for the scenarios_containing parameter
Sich
SichOP9mo ago
oh, nice page to get more information ! Thx, exactly what I was searching for !
CrowdSec
CrowdSec9mo ago
Resolving Query local api for scenario containing http This has now been resolved. If you think this is a mistake please run /unresolve

Did you find this page helpful?