C
CrowdSecβ€’2mo ago
PR06R4MM3R

Vaultwarden: `cscli explain` matches, but `metrics` disagree

I'm trying to integrate this collection: https://app.crowdsec.net/hub/author/Dominic-Wagner/collections/vaultwarden. I've hit the login endpoint with bad user info hundreds of time and see logs like the following. From cscli explain --file /logs/vaultwarden.log --type Vaultwarden: line: [TIMESTAMP][vaultwarden::api::identity][ERROR] Username or password is incorrect. Try again. IP: 111.111.111.111. Username: user@example.com. β”œ s00-raw | β”œ πŸ”΄ crowdsecurity/cri-logs | β”œ πŸ”΄ crowdsecurity/docker-logs | β”œ πŸ”΄ crowdsecurity/syslog-logs | β”” 🟒 crowdsecurity/non-syslog (+5 ~8) β”œ s01-parse | β”œ πŸ”΄ crowdsecurity/sshd-logs | β”” 🟒 Dominic-Wagner/vaultwarden-logs (+7 ~3) β”œ s02-enrich | β”œ 🟒 crowdsecurity/dateparse-enrich (+2 ~2) | β”œ 🟒 crowdsecurity/geoip-enrich (+13) | β”œ 🟒 crowdsecurity/public-dns-allowlist (unchanged) | β”” 🟒 crowdsecurity/whitelists (unchanged) β”œ-------- parser success 🟒 β”œ Scenarios β”œ 🟒 Dominic-Wagner/vaultwarden-bf β”” 🟒 Dominic-Wagner/vaultwarden-bf_user-enum As you can see the logs match the expected format, but when I run cscli metrics, very very few lines are reported as parsed and the scenarios aren't triggered. Source: file:/logs/vaultwarden.log Lines read: 1.51k Lines parsed: 3 Lines unparsed: 1.51k Lines to bucket: 5 Whitelisted: - Parser: Dominic-Wagner/vaultwarden-logs Hits: 1.51k Parsed: 3 Unparsed: 1.51k Child parser: Hits: 6.03k Parsed: 3 Unparsed: 6.03k Scenario: vaultwarden-bf Instantiated: 2 Poured: 3 Expired: 2 Scenario: vaultwarden-bf_user-enum Instantiated: 2 Poured: 2 Expired: 2 Help!? Why aren't the scenarios gaining hits?
Collections, AppSec Rules & Configurations | CrowdSec Hub
Manage collections, configurations, remediation components, and AppSec rules with CrowdSec Hub. Streamline security with tools and integrations for enhanced protection.
1 Reply
CrowdSec
CrowdSecβ€’2mo 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 ❀️

Did you find this page helpful?