hello,
make it 'debug level = 0', or at least not above 3.
dragos
On Thu, 2002-02-28 at 05:16, Daniel Tan wrote:> GlacierHi Samba People,
> i have a minor problem of my log file
accumalating
> to a huge size. i have max log size = 5 and this works for files residing
in
> /var/samba/log where users will have a log file of their own. But above
that
> directory is a log file named log.smb where it is quickly gaining in size.
> Below is my smb.conf file and the details of log.smb. How do i reduce the
> size to a fixed size?
>
> # Samba config file created using SWAT
> # from Daniel (0.0.0.0)
> # Date: 2001/11/05 10:20:51
>
> # Global parameters
> [global]
> workgroup = MIS
> encrypt passwords = Yes
> update encrypted = Yes
> password level = 8
> debug level = 5
> log file = /var/samba/log/log.%U
> max log size = 5
> wins support = Yes
>
> [moreward]
> comment = Moreward Directory
> path = /MOREWARD
> valid users = admin
> writeable = Yes
> browseable = no
>
> server /var/samba> more log.smb
>
> log.smb (18%)
> [2002/02/28 09:16:27, 1] smbd/server.c:main(641)
>
> log.smb (19%)
> smbd version 2.0.7 started.
>
> log.smb (20%)
> Copyright Andrew Tridgell 1992-1998
>
> log.smb (21%)
> doing parameter log file = /var/samba/log/log.%U
>
> log.smb (22%)
> doing parameter max log size = 5
>
> log.smb (22%)
> doing parameter wins support = Yes
>
> log.smb (23%)
> [2002/02/28 09:16:27, 2] param/loadparm.c:do_section(2481)
>
> log.smb (24%)
> Processing section "[moreward]"
>
> log.smb (25%)
> doing parameter comment = Moreward Directory
>
> log.smb (26%)
> doing parameter path = /MOREWARD
>
> log.smb (26%)
> doing parameter valid users = bsng
>
> log.smb (28%)
> doing parameter writeable = Yes
>
> log.smb (28%)
> doing parameter browseable = no
>
> log.smb (29%)
> [2002/02/28 09:16:27, 3] param/loadparm.c:lp_load(2805)
>
> log.smb (30%)
> pm_process() returned Yes
>
> log.smb (31%)
> [2002/02/28 09:16:27, 3] param/loadparm.c:lp_add_ipc(1594)
>
> log.smb (32%)
> adding IPC service
>
> log.smb (32%)
> [2002/02/28 09:16:55, 1] smbd/server.c:main(641)
>
> log.smb (33%)
> smbd version 2.0.7 started.
>
> log.smb (34%)
> Copyright Andrew Tridgell 1992-1998
>
> log.smb (35%)
> doing parameter log file = /var/samba/log/log.%U
>
> log.smb (36%)
> doing parameter max log size = 5
>
> log.smb (37%)
> doing parameter wins support = Yes
>
> log.smb (38%)
> [2002/02/28 09:16:55, 2] param/loadparm.c:do_section(2481)
>
> log.smb (38%)
> Processing section "[moreward]"
>
> log.smb (39%)
> doing parameter comment = Moreward Directory
>
> log.smb (40%)
> doing parameter path = /MOREWARD
>
> log.smb (41%)
> doing parameter valid users = bsng
>
> log.smb (42%)
> doing parameter writeable = Yes
>
> log.smb (42%)
> doing parameter browseable = no
>
> log.smb (43%)
> [2002/02/28 09:16:55, 3] param/loadparm.c:lp_load(2805)
>
> log.smb (44%)
> pm_process() returned Yes
>
> log.smb (45%)
> [2002/02/28 09:16:55, 3] param/loadparm.c:lp_add_ipc(1594)
>
> log.smb (46%)
> adding IPC service
>
> log.smb (47%)
> [2002/02/28 09:17:21, 1] smbd/server.c:main(641)
>
> log.smb (47%)
> smbd version 2.0.7 started.
>
> log.smb (49%)
> Copyright Andrew Tridgell 1992-1998
>
> log.smb (49%)
> doing parameter log file = /var/samba/log/log.%U
>
> log.smb (50%)
> doing parameter max log size = 5
>
> log.smb (51%)
> doing parameter wins support = Yes
>
> log.smb (52%)
> [2002/02/28 09:17:21, 2] param/loadparm.c:do_section(2481)
>
> log.smb (53%)
> Processing section "[moreward]"
>
> log.smb (53%)
> doing parameter comment = Moreward Directory
>
> log.smb (54%)
> doing parameter path = /MOREWARD
>
> log.smb (55%)
> doing parameter valid users = bsng
>
> log.smb (56%)
> doing parameter writeable = Yes
>
> log.smb (57%)
> doing parameter browseable = no
>
> log.smb (58%)
> [2002/02/28 09:17:21, 3] param/loadparm.c:lp_load(2805)
>
> log.smb (58%)
> pm_process() returned Yes
>
> log.smb (59%)
> [2002/02/28 09:17:21, 3] param/loadparm.c:lp_add_ipc(1594)
>
> log.smb (60%)
> adding IPC service
>
> log.smb (61%)
> [2002/02/28 09:17:49, 1] smbd/server.c:main(641)
>
> log.smb (62%)
> smbd version 2.0.7 started.
>
> log.smb (63%)
> Copyright Andrew Tridgell 1992-1998
>
> log.smb (64%)
> doing parameter log file = /var/samba/log/log.%U
>
> log.smb (65%)
> doing parameter max log size = 5
>
> log.smb (65%)
> doing parameter wins support = Yes
>
> log.smb (66%)
> [2002/02/28 09:17:49, 2] param/loadparm.c:do_section(2481)
>
> log.smb (67%)
> Processing section "[moreward]"
>
> log.smb (68%)
> doing parameter comment = Moreward Directory
>
> log.smb (69%)
> doing parameter path = /MOREWARD
>
> log.smb (69%)
> doing parameter valid users = bsng
>
> log.smb (70%)
> doing parameter writeable = Yes
>
> log.smb (71%)
> doing parameter browseable = no
>
> log.smb (72%)
> [2002/02/28 09:17:49, 3] param/loadparm.c:lp_load(2805)
>
> log.smb (73%)
> pm_process() returned Yes
>
> log.smb (73%)
> [2002/02/28 09:17:49, 3] param/loadparm.c:lp_add_ipc(1594)
>
> log.smb (74%)
> adding IPC service
>
> log.smb (75%)
> [2002/02/28 09:18:14, 1] smbd/server.c:main(641)
>
> log.smb (76%)
> smbd version 2.0.7 started.
>
> log.smb (77%)
> Copyright Andrew Tridgell 1992-1998
>
> log.smb (78%)
> doing parameter log file = /var/samba/log/log.%U
>
> log.smb (79%)
> doing parameter max log size = 5
>
> log.smb (80%)
> doing parameter wins support = Yes
>
> log.smb (80%)
> [2002/02/28 09:18:14, 2] param/loadparm.c:do_section(2481)
>
> log.smb (81%)
> Processing section "[moreward]"
>
> log.smb (82%)
> doing parameter comment = Moreward Directory
> doing parameter path = /MOREWARD
> doing parameter valid users = bsng
> doing parameter writeable = Yes
> doing parameter browseable = no
> [2002/02/28 09:18:14, 3] param/loadparm.c:lp_load(2805)
> pm_process() returned Yes
> [2002/02/28 09:18:14, 3] param/loadparm.c:lp_add_ipc(1594)
> adding IPC service
> [2002/02/28 09:18:42, 1] smbd/server.c:main(641)
> smbd version 2.0.7 started.
> Copyright Andrew Tridgell 1992-1998
> doing parameter log file = /var/samba/log/log.%U
> doing parameter max log size = 5
> doing parameter wins support = Yes
> [2002/02/28 09:18:42, 2] param/loadparm.c:do_section(2481)
> Processing section "[moreward]"
> doing parameter comment = Moreward Directory
> doing parameter path = /MOREWARD
> doing parameter valid users = bsng
>
> log.smb: END
> doing parameter writeable = Yes
> doing parameter browseable = no
> [2002/02/28 09:18:42, 3] param/loadparm.c:lp_load(2805)
> pm_process() returned Yes
> [2002/02/28 09:18:42, 3] param/loadparm.c:lp_add_ipc(1594)
> adding IPC service
> [2002/02/28 09:19:08, 1] smbd/server.c:main(641)
> smbd version 2.0.7 started.
> Copyright Andrew Tridgell 1992-1998
> doing parameter log file = /var/samba/log/log.%U
> doing parameter max log size = 5
> doing parameter wins support = Yes
> [2002/02/28 09:19:08, 2] param/loadparm.c:do_section(2481)
> Processing section "[moreward]"
> doing parameter comment = Moreward Directory
> doing parameter path = /MOREWARD
> doing parameter valid users = bsng
> doing parameter writeable = Yes
> doing parameter browseable = no
> [2002/02/28 09:19:08, 3] param/loadparm.c:lp_load(2805)
> pm_process() returned Yes
> [2002/02/28 09:19:08, 3] param/loadparm.c:lp_add_ipc(1594)
> adding IPC service
>
>
> Regards,
>
> Daniel Tan
> 7469188 Ext.665
> MIS Department
> Shop N Save Pte Ltd
>
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions: http://lists.samba.org/mailman/listinfo/samba