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. any comments? -- Carl B. Constantine University of Victoria Programmer Analyst http://www.uvic.ca UNIX System Administrator Victoria, BC, Canada cconstan@csc.uvic.ca ELW A220, 721-8753
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.
On Wed, 18 Sep 2002, Carl B. Constantine wrote:> 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.True. They are more like glorified (and very helpful) printf statements.> 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.ummm... have you looked at --with-syslog when compiling?> 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.It will do this by default. You have overridden the "log file" parameter in smb.conf to get this behavior. cheers, jerry --------------------------------------------------------------------- Hewlett-Packard http://www.hp.com SAMBA Team http://www.samba.org -- http://www.plainjoe.org "Sam's Teach Yourself Samba in 24 Hours" 2ed. ISBN 0-672-32269-2 --"I never saved anything for the swim back." Ethan Hawk in Gattaca--