Login attemps to server

Are there any logs of login attempts to server? I expect to expose my kopia server to internet and I would like to add some fail2ban protection.


I checked the code and I don’t think any log is generated at all (server/server.go:206):

	if !authn.IsValid(rc.req.Context(), rc.rep, username, password) {
		rc.w.Header().Set("WWW-Authenticate", `Basic realm="Kopia"`)
		http.Error(rc.w, "Access denied.\n", http.StatusUnauthorized)

		return false

Some advises for generating fail2ban friendly logs can be found here security - How to create a fail2ban jail and access log for you own application - Stack Overflow