Tools
Kiwi Syslog Server NG reports file-locking errors during log archiving
First published date
Last published date
Overview
Kiwi Syslog Server NG may fail to move, delete, or compress log files during an Archive task when another process still has the files open.
Product section
Cause
The Archive task is processing files that are still being written by the Log to File action or locked by another process, such as antivirus, backup, indexing, or file-monitoring software. Invalid paths, filenames, folders, or unsupported macros can also cause the related Log to File errors.
Resolution
-
Review the Log to File action and confirm that the full file path and filename are valid.
-
Confirm that the destination folder exists and that the Kiwi Syslog service account has permission to access it.
-
If the filename uses the legacy
%DateISOmacro, replace it with the Kiwi Syslog Server NG$Message.DateISOmacro. -
Open Setup > Schedules and configure the Archive task to process only older files. For example, set a file-age condition of at least one day so the task does not process active log files.
-
Check whether antivirus, backup, indexing, monitoring software, or another script is accessing the configured log folder during the archive window. Exclude the folder from scanning only according to your organization’s security policy.
-
If ZIP archiving is enabled, temporarily disable it and test whether the files can be moved successfully without compression.
Additional Notes
Archive tasks can move or copy files and optionally compress them after processing. Configure the task to process completed, older log files rather than the file currently being written by the Log to File action.