Nextcloud fedora 38 install many problems remain without answer… fail2ban


Installing nextcloud on fedora 38, I think that it is a good idea to protect it with fail2ban.
Nice! There is a tuto to do this:

Create a file in `/etc/fail2ban/jail.d` named `nextcloud.local` with the following contents:

backend = auto
enabled = true
port = 80,443
protocol = tcp
filter = nextcloud
maxretry = 3
bantime = 86400
findtime = 43200
logpath = /path/to/data/directory/nextcloud.log

But there is no nextcloud.log file even though syslog is enable in config.php!

What to do?


If you’ve configured syslog there won’t be a nextcloud.log. You’re telling Nextcloud to log through your syslog daemon… and the logs will end up wherever you configure your syslog to stash them.

You probably want file logging: Logging — Nextcloud latest Administration Manual latest documentation