Try to understand the crowdsec log
The log says
level=info msg="Adding file /var/log/auth.log to datasources" type=file
One second later it says
level=warning msg="/var/log/auth.log is a directory, ignoring it." type=file
How do I have to interpret that
12 Replies
Important Information
Thank you for getting in touch with your support request. To expedite a swift resolution, could you kindly provide the following information? Rest assured, we will respond promptly, and we greatly appreciate your patience. While you wait, please check the links below to see if this issue has been previously addressed. If you have managed to resolve it, please use run the command
/resolve
or press the green resolve button below.Log Files
If you possess any log files that you believe could be beneficial, please include them at this time. By default, CrowdSec logs to /var/log/, where you will discover a corresponding log file for each component.
Guide Followed (CrowdSec Official)
If you have diligently followed one of our guides and hit a roadblock, please share the guide with us. This will help us assess if any adjustments are necessary to assist you further.
Screenshots
Please forward any screenshots depicting errors you encounter. Your visuals will provide us with a clear view of the issues you are facing.
© Created By WhyAydan for CrowdSec ❤️
most likely you added mounts to this file, but it doesnt exist on the host so docker creates a directory by default.
thanks, will check
if you are debian 12 note that they remove rsyslog by default, so this is why this file doesnt exist by default now
I am on ubuntu 24.04. Within in docker-compose.yml the logs are mounted volumes:
- ./config/crowdsec:/etc/crowdsec
- ./config/crowdsec/db:/var/lib/crowdsec/data
- ./config/crowdsec_logs/auth.log:/var/log/auth.log:ro
- ./config/crowdsec_logs/syslog:/var/log/syslog:ro
- ./config/crowdsec_logs:/var/log
so on the host if you run
ls -la /var/log/auth.log
it most likely a directory cause docker created it, so does your ubuntu have rsyslog? systemctl status rsyslog
Yes it has rsyslog
With ls -la /var/log/auth.log I get
-rw-r----- 1 syslog adm 2187220 Jun 17 09:27 /var/log/auth.log
oooh I just saw
so the left is host file
Yes
yeah but your host has it on
/var/log/auth.log
not within ./config
so it should be
ok, i will check why I mounted it that way. auth.log is within ./config/crowdsec_logs. I followed an installation guide, which will crowdsec install with pangolin and the middleware-manager for traefik. I did understand a lot, but, as i see now, not everything. https://forum.hhf.technology/latest
HHF Technology Forums
HHF Technology Forums
Welcome to hhf.technology, your go-to community for all things technology! Our forum is dedicated to providing a supportive and collaborative environment where tech enthusiasts, professionals, and casual users can come together to seek help, share knowledge, and discuss the latest in technology.
I hope I got it
My installation uses the crowdsec service within config.yaml
crowdsec_service:
acquisition_path: /etc/crowdsec/acquis.yaml
Within acquis.yaml
filenames:
- /var/log/auth.log
- /var/log/syslog
I get the logs to ./config/crowdsec_logs
Is this correct can I ignore the error message