Hi,
we have an nginx that acts as a reverse proxy in front of apache2. I’ve configured apache so that it will log the X-Forwaded-For header that I set in nginx. So I have effectively duplicated access logs (one nginx, one apache).
I’ve configured crowdsec to read logs from both. So my question is how will crowdsec count events. Does it count events per log file or as a total. So if a request gets logged in nginx and apache will it effectively cut the threshold in half for decisions like: http-crawl-non_statics.
All the Best
Sebastian
PS: Thank you for this great tool.
For reference here is my acquis.yaml:
# nginx
filenames:
- /var/log/nginx/access.log
- /var/log/nginx/error.log
labels:
type: nginx
---
# sshd
filenames:
- /var/log/secure
labels:
type: syslog
---
# syslog
filenames:
- /var/log/messages
labels:
type: syslog
---
# apache access log
filenames:
- /opt/workdir/prod/logs/httpd/access_log
- /opt/workdir/prod/logs/httpd/error_log
labels:
type: apache2