Karolin Seeger
2005-May-25 09:35 UTC
[Samba] log file = /var/log/samba/log.%m creates 2 logfiles per client
Hi, I wonder why 2 log files per client (log.$IP and log.$NETBIOSNAME) are created when "log file" ist set to "/var/log/samba/log.%m". I have tested this with Samba 3.0.14a, 3.0.13, 3.0.11, 3.0.10 and 2.2.3a. Samba 2.2.3a was the only release which created only one log file. Is that a bug or is there any sense in saving 2 files with exactly the same content? cheers, karolin
Paul Gienger
2005-May-25 12:48 UTC
[Samba] log file = /var/log/samba/log.%m creates 2 logfiles per client
>I wonder why 2 log files per client (log.$IP and log.$NETBIOSNAME) are >created when "log file" ist set to "/var/log/samba/log.%m". > >Yep, and it has been covered here before. Basically smbd starts creating a log as soon as it sees the connection, with whatever information it knows. Very early on it only knows IP, but soon finds the name. As soon as it retrieves the name from the client it switches to the name log file. Essentially the result was that this is the intended functionality.>I have tested this with Samba 3.0.14a, 3.0.13, 3.0.11, 3.0.10 and 2.2.3a. >Samba 2.2.3a was the only release which created only one log file. > >Is that a bug or is there any sense in saving 2 files with exactly the >same content? > >cheers, karolin > >-- Paul Gienger Office: 701-281-1884 Applied Engineering Inc. Systems Architect Fax: 701-281-1322 URL: www.ae-solutions.com mailto: pgienger@ae-solutions.com
Karolin Seeger
2005-May-25 13:40 UTC
[Samba] log file = /var/log/samba/log.%m creates 2 logfiles per client
On Wed, May 25, 2005 at 07:48:29AM -0500, Paul Gienger wrote:> > >I wonder why 2 log files per client (log.$IP and log.$NETBIOSNAME) are > >created when "log file" ist set to "/var/log/samba/log.%m". > > > > > Yep, and it has been covered here before. Basically smbd starts > creating a log as soon as it sees the connection, with whatever > information it knows. Very early on it only knows IP, but soon finds > the name. As soon as it retrieves the name from the client it switches > to the name log file. > > Essentially the result was that this is the intended functionality.Ok, thanks for your answer! karolin -- Karolin Seeger, SerNet Service Network GmbH phone: +49-551-370000-0, fax: +49-551-370000-9