You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -88,7 +89,7 @@ We'll trigger the dummy scenario `crowdsecurity/ssh-generic-test` by attempting
88
89
<details>
89
90
<summary>🛡️ **AppSec** detection test - CrowdSec WAF </summary>
90
91
91
-
If you've enabled an AppSec-capable bouncer with CrowdSec WAF, you can trigger the `crowdsecurity/appsec-generic-test` dummy scenario.
92
+
If you've enabled an AppSec-capable bouncer with CrowdSec WAF with the [Virtual Patching collection](https://app.crowdsec.net/hub/author/crowdsecurity/collections/appsec-virtual-patching), you can trigger the `crowdsecurity/appsec-generic-test` dummy scenario.
92
93
It would have triggered along with the HTTP detection test, but it is worth mentioning here as well.
93
94
94
95
We'll trigger the dummy scenario `crowdsecurity/appsec-generic-test` by accessing a **probe path** on your web server.
@@ -152,11 +153,9 @@ Were all the tests related to your setup successful?
152
153
<CodeBlockclassName="language-bash">docker exec crowdsec cscli metrics show acquisition parsers</CodeBlock>
153
154
</TabItem>
154
155
<TabItemvalue="kubernetes"label="Kubernetes">
155
-
<CodeBlockclassName="language-bash">{`# For LAPI pod
for i in $(kubectl get pods -n crowdsec -l k8s-app=crowdsec -l type=agent -o name); do kubectl exec -n crowdsec -it $i -- cscli metrics show acquisition parsers; done`}</CodeBlock>
156
+
<CodeBlockclassName="language-bash">
157
+
for i in $(kubectl get pods -n crowdsec -l k8s-app=crowdsec -l type=agent -o name); do kubectl exec -n crowdsec -it $i -- cscli metrics show acquisition parsers; done
158
+
</CodeBlock>
160
159
</TabItem>
161
160
</Tabs>
162
161
@@ -208,22 +207,19 @@ for i in $(kubectl get pods -n crowdsec -l k8s-app=crowdsec -l type=agent -o nam
208
207
In Docker, logs must be accessible to the container through volumes.
209
208
210
209
**Common issues:**
211
-
-**Missing volume mounts**: Ensure log directories are mounted in your container.
210
+
-**Missing volume mounts** & **Shared log volumes**: Ensure log directories are mounted in your container and available in multi-container setup.
211
+
Example if your service logs are in `/var/log` on the host or in a `logs` shared volume:
212
212
```yaml
213
213
volumes:
214
-
- /var/log:/var/log:ro # Mount logs as read-only
214
+
- /var/log:/var/log:ro # Example for mounting logs as read-only
215
+
- logs:/logs:ro # Example for shared log volume between containers
215
216
```
216
-
- **Acquisition configuration**: Your `acquis.yaml` should reference paths inside the container.
217
+
- **Acquisition configuration**: Your `acquis.yaml` or `acquis.d/*.yaml` files should reference paths inside the container.
217
218
- **Log file permissions**: CrowdSec container user must have read access to log files.
218
-
- **Shared log volumes**: For multi-container setups, ensure logs are written to a shared named volume:
0 commit comments