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
CrowdSec
CrowdSec4mo ago
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 ❤️
iiamloz
iiamloz4mo ago
most likely you added mounts to this file, but it doesnt exist on the host so docker creates a directory by default.
Expalmi
ExpalmiOP4mo ago
thanks, will check
iiamloz
iiamloz4mo ago
if you are debian 12 note that they remove rsyslog by default, so this is why this file doesnt exist by default now
Expalmi
ExpalmiOP4mo ago
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
iiamloz
iiamloz4mo ago
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
Expalmi
ExpalmiOP4mo ago
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
iiamloz
iiamloz4mo ago
oooh I just saw
./config/crowdsec_logs/auth.log:/var/log/auth.log:ro
./config/crowdsec_logs/auth.log:/var/log/auth.log:ro
so the left is host file
Expalmi
ExpalmiOP4mo ago
Yes
iiamloz
iiamloz4mo ago
yeah but your host has it on /var/log/auth.log not within ./config so it should be
/var/log/auth.log:/var/log/auth.log:ro
/var/log/auth.log:/var/log/auth.log:ro
Expalmi
ExpalmiOP4mo ago
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.
Expalmi
ExpalmiOP4mo ago
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

Did you find this page helpful?