Nextcloud fedora 38 install many problems remain without answer… fail2ban

Bonjour,

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:
https://docs.nextcloud.com/server/25/admin_manual/installation/harden_server.html

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

[nextcloud]
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?

F.P.

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