Skip to content

Commit 2f30748

Browse files
author
jdv
committed
some changes from PR comments
1 parent f2ab0dd commit 2f30748

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

crowdsec-docs/unversioned/getting_started/health_check.mdx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -229,20 +229,20 @@ for i in $(kubectl get pods -n crowdsec -l k8s-app=crowdsec -l type=agent -o nam
229229
</TabItem>
230230
<TabItem value="kubernetes" label="Kubernetes">
231231

232-
In Kubernetes, CrowdSec reads logs directly from pods using the Kubernetes API.
232+
In Kubernetes, CrowdSec reads logs from `/var/log/containers` which is mounted into pods by the helm chart.
233233

234234
**Configuration is done in your Helm values file:**
235235
```yaml
236236
agent:
237237
acquisition:
238238
- namespace: your-namespace
239239
podName: your-pod-*
240-
program: nginx # Must match parser name
240+
program: nginx # Reference used by the FILTER function of your installed parsers
241241
```
242242

243243
**Common issues:**
244244
- **Wrong namespace or pod names**: Verify pods exist with `kubectl get pods -n <namespace>`
245-
- **Incorrect program name**: The `program` field must match an available parser (nginx, traefik, apache, etc.)
245+
- **Incorrect program name**: The `program` field must match the FILTER of your installed parser (nginx, traefik, apache, etc.)
246246
- **Container runtime mismatch**: Set `container_runtime: containerd` or `container_runtime: docker` in values.yaml
247247
- **RBAC permissions**: CrowdSec needs permissions to read pod logs. Check with:
248248
```bash
@@ -377,11 +377,11 @@ for i in $(kubectl get pods -n crowdsec -l k8s-app=crowdsec -l type=agent -o nam
377377

378378
**Check logs for errors:**
379379
```bash
380-
# View service logs
381-
sudo journalctl -u crowdsec -n 50
382-
383-
# Or check log file
380+
# Start by checking crowdsec logs
384381
less /var/log/crowdsec.log
382+
383+
# Eventually check systemd journal logs
384+
sudo journalctl -u crowdsec -n 50
385385
```
386386

387387
**Common issues:**
@@ -543,7 +543,7 @@ Were all the tests related to your setup successful?
543543
sudo cscli capi register
544544
sudo systemctl reload crowdsec
545545
```
546-
- **Firewall blocking**: Ensure outbound access to `api.crowdsec.net` (HTTPS/443)
546+
- **Firewall blocking**: Ensure outbound network access (API endpoints, blocklists, etc.). See [Network Management](https://docs.crowdsec.net/docs/next/configuration/network_management/) for full requirements
547547
- **DNS issues**: Verify DNS resolution works:
548548
```bash
549549
nslookup api.crowdsec.net

0 commit comments

Comments
 (0)