FreeNAS - Log user access history

DolphinPC

Cadet
Joined
Dec 26, 2020
Messages
2
Hi,

I am interested in logging when a user accessed the server. Whether that user went through the web api, went through SSH, went and accessed an SMB share. Whatever the mode is, I would like to see a history of who accessed the server and when they terminated that session. The end result after cleaning up the data would be something in the format of....

SessionIDDATE_TIMEUSERHOSTService
12ABC12-20-20 12:23root10.0.0.50FreeNAS GUI
12ABC12-20-20 12:30rootterminated session FreeNAS GUI
12EFG12-21-20 5:45John10.0.0.32SMB
12EFG12-24-20 14:23Johnterminated sessionSMB
12EGG12-25-20 0:00root10.0.0.50SSH

And certainly data supporting this goal would exist in...

Code:
/var/log/messages

/var/log/auth.log

/var/log/utx.log

/var/log/utx.lastlogin

/var/log/userlog 


One might think utx.lastlogin or especially userlog would provide some info.... hard nope. o_O

Thoughts? - Thank you
 
Top