LogoLogo
HomeDiscordYouTubeDisclaimer
  • CrowdSec
    • Docker Compose
      • Traefik Bouncer
        • Authelia Collection
        • Vaultwarden Collection
      • Dashboard
    • Unraid
      • Traefik Bouncer
        • Authelia Collection
        • Vaultwarden Collection
        • Nextcloud Collection
      • CrowdSec-Dashboard
      • Dashboard
    • Useful Commands
  • 🎯DO I NEED AN UPDATE?
    • Update Me!
  • ❗Disclaimer
    • Read Our Disclaimer
Powered by GitBook
On this page

Was this helpful?

Export as PDF
  1. CrowdSec
  2. Unraid
  3. Traefik Bouncer

Vaultwarden Collection

PreviousAuthelia CollectionNextNextcloud Collection

Last updated 2 years ago

Was this helpful?

Now we have to tell Vaultwarden to write its log file to the shared folder, so that CrowdSec can parse it and respond accordingly.

First, edit your Vaultwarden docker template, to map the Vaultwarden log output folder to the shared folder :

Add these extra parameters to your Vaultwarden template, enable the "advanced view" when editing your container, by clicking the upper right "basic view" slider :

-e LOG_FILE=/log/vaultwarden.log -e LOG_LEVEL=warn -e EXTENDED_LOGGING=true

Like this :

Restart your Vaultwarden container.

Edit your docker CrowdSec template to enable Vaultwarden collection, by adding Dominic-Wagner/vaultwarden to the COLLECTIONS variable :

Finally, edit your acquis.yml file in your CrowdSec's appdata folder (appdata/crowdsec) to add these lines : (don't leave any empty spaces)

---
filenames:
 - /var/log/crowdsec/vaultwarden.log
labels:
  type: vaultwarden

Restart CrowdSec container.

Use the "" cscli collections list and cscli metrics to check your collections and metrics, that should be ok!

Useful Commands