Skip to content

Commit 5a77ff2

Browse files
committed
up
1 parent d652673 commit 5a77ff2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

crowdsec-docs/docs/appsec/rules_deploy.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ If your init system does not support reload, perform a restart instead. Then ver
102102
```bash
103103
sudo cscli appsec-rules list | grep block-nonnumeric-user-id
104104
sudo cscli appsec-configs list | grep block-nonnumeric-user-id
105-
sudo journalctl -u crowdsec --since "5 minutes ago" | grep appsec
106105
```
107106

108107
The rule should appear as `enabled`, and the configuration should show up in the list. CrowdSec logs confirm the configuration was loaded without errors.
@@ -118,7 +117,7 @@ curl -i 'http://127.0.0.1/profile?user_id=abc123'
118117
A successful block returns an HTTP status such as `403 Forbidden`, and CrowdSec logs a matching alert:
119118

120119
```bash
121-
sudo journalctl -u crowdsec -n 20 | grep "block-nonnumeric-user-id"
120+
sudo cscli alerts list -s custom/block-nonnumeric-user-id
122121
```
123122

124123
If the request is not blocked, double-check that the rule `name` matches the pattern in your AppSec configuration, that the acquisition file lists your configuration, and that the CrowdSec service picked up the changes.

0 commit comments

Comments
 (0)