[Samba] log rotation in samba
Ryan Novosielski
novosirj at umdnj.edu
Fri Sep 21 16:09:37 GMT 2007
-----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
|$&| |__| | | |__/ | \| _| |novosirj at umdnj.edu - 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-----
More information about the samba
mailing list