analysing log files?
Paul Reilly
pareilly at tcd.ie
Thu Sep 20 06:51:03 GMT 2001
Hi,
Does anyone know if there is a log filer parser/summarizer for samba logs?
There's seems to be an awful lot of lanman debug output even at low
priority level logs generated by samba.
Ideally I'd like something which summarizes the info from the logs in a
much more readable format , say like so:
Sep 19 14:30:32 servername smbd [pid]: connect from foohost.bar.org [193.189.20.32]
Sep 19 14:30:40 servername smbd [pid]: Defaulting to Lanman password for 'bloggsj'
Sep 19 14:30:40 servername smbd [pid]: invalid password for user 'bloggsj'
Sep 19 14:30:32 servername smbd [pid]: foohost (193.189.20.32) connect to service 'web' as user bloggsj (uid=1032, gid=500)
Has anyone got anything like this ?
Looking at the code, one could probably hack the samba source to produce
logs like this, or one could write some perl which parses the verbose
logs and produces some nicer ones. Before I do this I was wondering if
anyone has come up with a better solution?
Paul
More information about the samba
mailing list