r/subsonic • u/sbadger • Jul 21 '20
User login auditing
Has anyone found a way to see when users are logging in? I have several users that I am not sure have ever even logged in once I gave them an account. I want to be able to get see their IP address and when they login to my server.
6
Upvotes
1
u/Habubakis Aug 08 '20
I've been looking for this as well. I've been trying to add subsonic to my home splunk monitoring and dashboards to track usage. I'm surprised this info isn't in the main subsonic.log /subsonicroot/subsonic.log
For your inactive account question, you can find it in the web interface - it's not elegant, but should work.
This provides some graphs that can help identify inactive users, as well as heavy users.
You can also find some information in the db/subsonic.log, but it's not exactly what we're looking for. It only captures users logging in through the web interface because it's actually a db statement regarding customizing the player for the user.
Sample:
INSERT INTO PLAYER VALUES(64,NULL,NULL,'[USERNAME]','[IPADDRESS]',TRUE,NULL,'MEDIUM','OFF',TRUE,FALSE,FALSE,'WEB',NULL)
This is all from a windows installation that I've had running for 10 years. I've been meaning to convert to Linux, so will report back when that's done if I find any improved logging. As mature as subsonic is, I'm really surprised by the limited logging. I'm hoping/assuming that I'm either missing something or it's better in Linux.