The
max
log
size
option sets the maximum size, in kilobytes, of the debugging log file that Samba keeps. When the log file exceeds this size, the current log file is renamed to add an
.old extension (erasing any previous file with that name) and a new debugging log file is started with the original name. For example:
[global]
log file = /usr/local/logs/samba.log.%m
max log size = 1000
Here, if the size of any log file exceeds one megabyte in size, Samba renames the log file
samba.log.
machine-name
.old and a new log file is generated. If there was a file there previously with the
.old extension, Samba deletes it. We highly recommend setting this option in your configuration files because debug logging (even at lower levels) can covertly eat away at your available disk space. Using this option protects unwary administrators from suddenly discovering that most of their disk space has been swallowed up by a single Samba log file.