[Samba] Samba Log file format

jra at dp.samba.org jra at dp.samba.org
Wed Sep 18 18:55:10 GMT 2002


On Wed, Sep 18, 2002 at 11:42:08AM -0700, Carl B. Constantine wrote:
> The samba log files leave something to be desired in both format and
> management. I'd like to propose a change if I could.
> 
> Format:
> 
> Previously, a log entry is cut with date and timestamp and action on a
> SINGLE line. Now the date and timestamp is on a separate line from the
> information that you'd look for in a log file (machine name, ip address,
> connection status for service, etc.) This is really awkward when you are
> searching log files for information. You can't use standard tools very
> easily. I'm using a custom perl script myself.
> 
> The logs in 2.2.* are not very UNIX like at all. They seem more geared
> to the programmer, and not the admin. A Programmer version of a log is
> fine to send back to the samba team for debugging, but the admin should
> be kept in mind when writting log output.
> 
> 
> Management:
> 
> It would be nice if samba gave up management of the logs to syslog and
> the like. syslog could then control WHEN logs should roll over, where
> they are stored, and so forth. Samaba should not be controlling this at
> all.
> 
> 
> It would also be nice to have the flexability to have samba produce a
> single log for all machines connecting to the samba server instead of or
> as well as separate log.netbiosname files.

Look at the parameter lp_admin_log() and the calls to sys_adminlog().
These should be expanded to be the kind of log you want. The Samba log
files look like programmer info because they *are* programmer info.
We need them when tracking down bugs.

Jeremy.



More information about the samba mailing list