Add logs with information on login success\failiure

I don’t think that logs showing successful\failed logins are stored anywhere. I checked python3 run.py –logs and the kobodocker/logs directory but didn’t find anything about logins.
Could info on the username, IP address. time/date of login and whether login was successful be logged and stored along with the other logs?

Hello!

By default, KoboToolbox/Kobodocker doesn’t log login attempts, so you won’t see usernames, IPs, or timestamps in the existing logs. To capture that info, you’d need to extend the logging setup—typically greensky online by enabling Django’s authentication logging or adding signal handlers for login events, then directing those details into a dedicated log file. In short, it’s possible to store successful/failed login data alongside other logs, but it requires custom configuration rather than relying on the default Kobodocker logs.

Thanks for the reply, I’ll look into it. I still think it would help with security if it was included by default.

1 Like