Scripts to extract from Samba logs

Peter Samuelson peter at
Sat Mar 18 09:23:46 GMT 2000

[mdgabrie at]
> More specifically, I want to use the information in the Samba log
> files to create a "database" that shows the date/time a user
> connected to a share and then logged off. The script would run daily
> and extract the most recent information.

Have you looked at the `utmp' support in Samba 2.0.7pre?  That does at
least some of what you want.  Use `last [username]' to extract
information from wtmp.

...But then, parsing log.smb shouldn't be too hard either.


More information about the samba mailing list