Smib666
Members
-
Joined
-
Last visited
Solutions
-
Smib666's post in Faulty paths or permission issues? was marked as the answerSo I’ve solved it, with a lot of help from Loz over at CrowdSecs Discord. I’ll describe the solution here in case if someone finds themselves in the same situation.
So how to make the logs from Traefik accessibly for CrowdSec as docker containers? Well, thanks to Loz I realised how a competent piece of software CrowdSec is. It can read logs directly from stdout. So first give CrowdSec access to the dockers by create a path to /var/run/docker.sock in the container GUI. Then you change the acquis.yaml, in my case Traefik to this:
source: docker
container_name:
- traefik
label: traefik
Or you can use labels like Traefik. You can read about it here:
https://docs.crowdsec.net/docs/next/log_processor/data_sources/docker
I’ve not finalised the install yet but the logs look ok. I’m trying to get the dashboard to connect to its database, but there is a permission issue I’ll have solve. Probably is it yet another Unraid speciality. But CrowdSec can read the logs of Traefik. Not bad for a noob if I may say so myself.