Customizing Apache log paths

Hello,

I installed crowdsec yesterday and it seems very interesting ! Thanks for the great work.
I have a question regarding the custom logs : I have some websites on my server and when I did a “cscli metrics” I see in acquisition metrics only the standards ’ apache logs (for example /var/log/apache2/other_vhosts_access.log). But my websites have their logs not in “/var/log/apache2” but in “/home/www-data/www.thewebsite.com/logs/”
Is it possible to add custom path in crowdesc ?

Thanks
Seb

Hi, you need to edit the file : /etc/crowdsec/acquis.yaml
But I don’t know how this will work if you have a lot of different files.
I know that fail2ban don’t like that too much.

Hi Sich,
Thanks for your help.
I added my logs into “/etc/crowdsec/acquis.yaml” and restarted my crowdsec but unfortunately in my “Acquisition Metrics” i have always the standards logs.

Seb

Sorry it works :slight_smile: May be it was because I don’t have trafic on my test website between the restart and my verification.

Thanks
Seb

1 Like