How to Redirect Authentik Logs to a File for CrowdSec Integration? #12412
Replies: 4 comments 1 reply
-
same. waiting for an answer. |
Beta Was this translation helpful? Give feedback.
-
Same. Trying to implement this and don't think it's working. Tried using the docker logs for the crowdsec acquis.yaml:
Crowdsec logs says it's using docker: Also tried setting Authentik log location in .env with |
Beta Was this translation helpful? Give feedback.
-
authentik logs to stdout/stderr. From there it's up to you to configure your container runtime to send logs where needed |
Beta Was this translation helpful? Give feedback.
-
I have the same issue. I'm running Authentik in an LXC container on Proxmox via systemd, and I have CrowdSec installed inside that container. I tried redirecting logs from journald to a file, but I can't parse them with the Authentik collection from CrowdSec Hub because it doesn't expect logs in JSON format. I believe the best option is to write a custom parser for CrowdSec, but I need to study how to do it properly. If I manage to get a working solution, I can share it here. If anyone has any ideas on how to achieve this, feel free to contact me. |
Beta Was this translation helpful? Give feedback.
-
Hi everyone,
I’m currently working on integrating Authentik with CrowdSec to enhance security, and I’d like to make the logs generated by Authentik directly exploitable by CrowdSec.
Does anyone know if there’s a way to configure Authentik to redirect logs to a specific file instead of the default logging mechanism? Ideally, I’d like this file to be in a format that’s easy to parse and monitor for CrowdSec.
If you’ve implemented a similar setup or have any tips on how to achieve this, I’d really appreciate your insights or examples!
Thanks in advance for your help!
Beta Was this translation helpful? Give feedback.
All reactions