You can configure the settings of rotation of trace files, such as maximum trace file size and number of trace files to be saved. When these limits are exceeded, the old trace files are overwritten with new trace files. The trace file rotation settings make it possible to limit the volume of memory that can be taken up by the trace log.
To configure the trace file rotation settings:
# /opt/kaspersky/klms/bin/klms-control --get-app-settings -f <file name>
<tracerSettings> section:<rotationPeriod> subsection: NoRotation. Old trace files are overwritten with new trace files when the values of the <rotationFileSize> setting or the <maxFileCount> setting are exceeded.Monthly. Old trace files are overwritten with new trace files monthly when the values of the <rotationFileSize> setting or the <maxFileCount> setting are exceeded.Weekly. Old trace files are overwritten with new trace files weekly when the values of the <rotationFileSize> setting or the <maxFileCount> setting are exceeded.Daily. Old trace files are overwritten with new trace files daily when the values of the <rotationFileSize> setting or the <maxFileCount> setting are exceeded.Hourly. Old trace files are overwritten with new trace files hourly when the values of the <rotationFileSize> setting or the <maxFileCount> setting are exceeded.The default value is NoRotation.
<rotationFileSize> subsection, specify the maximum size of the trace file (in bytes). When this limit is exceeded, the old trace file is overwritten with a new trace file.By default, the value is set to 100 MB.
<maxFileCount> subsection, specify the maximum number of trace files that can be stored at any one time. When the number of trace files exceeds this limit, the trace files are overwritten with new files.By default, the value is set to 10.
# /opt/kaspersky/klms/bin/klms-control --set-app-settings -f <file name>