Re: [Samba] log rotation in samba

2007-09-21 Thread Ryan Novosielski
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Felipe Augusto van de Wiel wrote:
> Tomasz Chmielewski wrote, On 21-09-2007 11:10:
>> Melanie Pfefer schrieb:
>>> Could you please share how you used logadm/logrotate
>>> to rotate samba logs?
>> Hmm, doesn't Samba rotate the logs by itself? I.e.:
> 
>> log level = 3
>> syslog = 0
>> log file = /var/log/samba/log.%m
>> max log size = 5000
> 
>   AFAIK, no.  This only tells samba how much information to
> keep in each file and how detailed they are. If you want to have
> history, you need to rotate it using something like logrotate.

It keeps one old revision, marked .old or something like that.

- --
  _  _ _  _ ___  _  _  _
 |Y#| |  | |\/| |  \ |\ |  | |Ryan Novosielski - Systems Programmer II
 |$&| |__| |  | |__/ | \| _| |[EMAIL PROTECTED] - 973/972.0922 (2-0922)
 \__/ Univ. of Med. and Dent.|IST/AST - NJMS Medical Science Bldg - C630
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFG8+zBmb+gadEcsb4RAr/YAJ45tRSRht9G7LnW2n3OY46A7FUpRACgiKSY
e1DKjw6Gb6iintf6eL4CS0U=
=QJK9
-END PGP SIGNATURE-

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] log rotation in samba

2007-09-21 Thread Tomasz Chmielewski

Felipe Augusto van de Wiel schrieb:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Tomasz Chmielewski wrote, On 21-09-2007 11:10:

Melanie Pfefer schrieb:

Could you please share how you used logadm/logrotate
to rotate samba logs?

Hmm, doesn't Samba rotate the logs by itself? I.e.:

log level = 3
syslog = 0
log file = /var/log/samba/log.%m
max log size = 5000


AFAIK, no.  This only tells samba how much information to
keep in each file and how detailed they are. If you want to have
history, you need to rotate it using something like logrotate.


Yes and no.
With the above setting, Samba keeps two logs per machine: 
/var/log/samba/log.%m and /var/log/samba/log.%m.old. Each of them having 
5000 kB.


If you want to use just logrotate for that, you'd have to set "max log 
size = 0", so that Samba doesn't rotate the files on its own.


However, to keep some "reasonable history" with "log level = 3", one 
would have to reserve gigabytes for each machine... Also, it wouldn't be 
that great for performance.



--
Tomasz Chmielewski
http://wpkg.org
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] log rotation in samba

2007-09-21 Thread Felipe Augusto van de Wiel
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Tomasz Chmielewski wrote, On 21-09-2007 11:10:
> Melanie Pfefer schrieb:
>> Could you please share how you used logadm/logrotate
>> to rotate samba logs?
> 
> Hmm, doesn't Samba rotate the logs by itself? I.e.:
> 
> log level = 3
> syslog = 0
> log file = /var/log/samba/log.%m
> max log size = 5000

AFAIK, no.  This only tells samba how much information to
keep in each file and how detailed they are. If you want to have
history, you need to rotate it using something like logrotate.

Kind regards,
- --
Felipe Augusto van de Wiel <[EMAIL PROTECTED]>
Coordenadoria de Tecnologia da Informação (CTI) - SEDU/PARANACIDADE
http://www.paranacidade.org.br/   Phone: (+55 41 3350 3300)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFG8+dNCj65ZxU4gPQRCK/LAJ9Yy7acWPrLshH/DU104uz31j7jeACeJV4K
77vSctYnY48GC84NHhjV+WE=
=s8aW
-END PGP SIGNATURE-
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] log rotation in samba

2007-09-21 Thread Tomasz Chmielewski

Melanie Pfefer schrieb:

Could you please share how you used logadm/logrotate
to rotate samba logs?


Hmm, doesn't Samba rotate the logs by itself? I.e.:

log level = 3
syslog = 0
log file = /var/log/samba/log.%m
max log size = 5000


--
Tomasz Chmielewski
http://blog.wpkg.org
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] log rotation in samba

2007-09-21 Thread Melanie Pfefer
Could you please share how you used logadm/logrotate
to rotate samba logs?

many thanks for your assistance.
--- Mogens Kjaer <[EMAIL PROTECTED]> wrote:

> Melanie Pfefer wrote:
> > how to enable log rotation in samba?
> 
> You don't. The log rotation is normally done
> by other programs.
> 
> In some Linuxdistributions this is done by the
> logrotate program.
> 
> Mogens
> 
> -- 
> Mogens Kjaer, Carlsberg A/S, Computer Department
> Gamle Carlsberg Vej 10, DK-2500 Valby, Denmark
> Phone: +45 33 27 53 25, Fax: +45 33 27 47 08
> Email: [EMAIL PROTECTED] Homepage: http://www.crc.dk
> -- 
> To unsubscribe from this list go to the following
> URL and read the
> instructions: 
> https://lists.samba.org/mailman/listinfo/samba
> 



  ___ 
Want ideas for reducing your carbon footprint? Visit Yahoo! For Good  
http://uk.promotions.yahoo.com/forgood/environment.html
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] log rotation in samba

2007-01-05 Thread Mogens Kjaer

Melanie Pfefer wrote:

how to enable log rotation in samba?


You don't. The log rotation is normally done
by other programs.

In some Linuxdistributions this is done by the logrotate program.

Mogens

--
Mogens Kjaer, Carlsberg A/S, Computer Department
Gamle Carlsberg Vej 10, DK-2500 Valby, Denmark
Phone: +45 33 27 53 25, Fax: +45 33 27 47 08
Email: [EMAIL PROTECTED] Homepage: http://www.crc.dk
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] log rotation in samba

2007-01-05 Thread Melanie Pfefer
how to enable log rotation in samba?
max log size in the conf file allows only 1 log file.

Send instant messages to your online friends http://uk.messenger.yahoo.com 
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba