Documentation forKiwi Syslog Server

Create a scheduled task to delete files in KSS NG

A clean-up task deletes files that match the specified criteria (including age, size, and file type). For example, you can create a clean-up task to remove archived log files after they have been retained for the required period. You can schedule the task to run at regular intervals.

You can also create a scheduled task to remove archived files after the retention period is over. For an example, see Create scheduled tasks to automate log file archival and retention.

  1. From the KSS NG navigation bar, choose Setup > Schedules to view the Schedules setup window.
  2. Click Add scheduled task to start the Create Schedule wizard. Toggle the Enabled option if you want to enable the schedule after it is created.
  3. Define the task name in the provided field. Select the Clean-up option and click Next.
  4. Set the schedule frequency. Determine whether you want the schedule to run within specified minutes, hours, days, months, or years. Click the relevant tab and select an option from the tab list.
  5. If needed, set the schedule exceptions.
    1. Scroll to the bottom of the Create Schedule window and click Add New on the left.
    2. Determine whether you want the exception to apply to specified minutes, hours, days, months, or years. Click the relevant tab and select an option from the tab list.
  6. Once you have specified your schedule and added any exceptions, click Next.
  7. Define the source location of your log files that you want to archive. The default file location where logs are stored is C:\ProgramData\SolarWinds\KiwiSyslogService\logs.
  8. Check the Include subfolders box if you want to include all subfolders in the source location.
  9. Under source files, specify the file mask and criteria for file size and file age. Click Next.
  10. The default file mask value is *.*. The default value for both file size and file age is Any.

  11. Check the Remove empty folders box if you want to remove folders in the source location that are empty.
  12. Click Create to create the schedule.