yes-youcan / bitwarden-fail2ban-libressl

a tutorial using fail2ban for self-hosted server on linux
1 stars 0 forks source link

LogPath - logs cycle #1

Open cholzer79 opened 2 years ago

cholzer79 commented 2 years ago

logpath = /home/*/bwdata/logs/identity/Identity/log.txt that path does not work because Bitwarden cycles logs on a daily basis. so the files you find in the folder look like this 20220308.txt 20220309.txt 20220310.txt and so on.

can fail2ban handle that?

Enhakiel commented 2 years ago

Hi, Same prob here

JoshDi commented 1 year ago

fail2ban accepts wildcards '*' so you can change logpath to:

logpath = /home/*/bwdata/logs/identity/Identity/*.txt

kamping22 commented 1 year ago

I have seen some people say that fail2ban only scans for logfiles at the start of the service, I'm guessing that is not the case anymore? I have created a new logfile and fail2ban didn't seem to pick it up right away but maybe it scans every x minutes?