ernolf
3
Afaik, login attempts are not logged in nextcloud server log.
you must activate the audit logfile (as a file, not in syslog). Then you can monitor all login attempts with a jq-filter:
tail -F /path/to/audit.log | jq -r 'select(.message | test("Login|Logout")) | [.time, .remoteAddr, .user, .method, .url, .message, .userAgent] | join(" - ")'
Here I explained it more in deep:
Much luck,
ernolf
1 Like