Submit a ticketCall us

Cloud Workloads: Meet Your New Hybrid IT Reality
Have you found yourself in that evolving, hybrid IT grey area and wondering if cloud workloads are now part of your purview? And if so, will monitoring cloud workloads require a new set of dedicated cloud monitoring tools? Your answers: yes, they should be, and no, they don’t.

Find out how SolarWinds® Server & Application Monitor (SAM) can help you monitor your cloud workloads side by side with your on-premises workloads. Register Now.

Home > Success Center > Kiwi Syslog Server > Kiwi Syslog Server Administrator Guide > Create scheduled tasks > Create a scheduled task to delete files

Create a scheduled task to delete files

Table of contents
No headers

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 archive log files not needed for troubleshooting. For an example of creating archive and cleanup tasks, see Create schedules to automate log archival and retention in the Kiwi Syslog Server Getting Started Guide.

  1. From the Kiwi Syslog Service Manager, choose File > Setup.
  2. In the left pane of the Setup dialog, right-click Schedules and select Add new schedule.

    File:Success_Center/Reusable_content_-_InfoDev/Kiwi_Syslog_Server_Admin_Guide/KSS_Scheduled_Task_Updates/0020-Create_scheduled_tasks/0040-Create_a_scheduled_task_to_run_a_script/gs-schedules-create-new.png

  3. Replace the default name with a descriptive name.

  4. As the Task Type, select Clean-up.
  5. As the Task Trigger, specify when you want the archive task to run:
    • To schedule the task, select On a schedule. Then specify the start date, frequency, end date, and any exceptions on the Schedule tab.
    • To run the task each time you start or stop the Kiwi Syslog Server application or service, select On app/service startup or On app/service shutdown.
  6. On the Source tab:
    1. Under Source location, specify the folder that contains the files to be deleted.

      To delete files from subdirectories, select Include sub-folders.

    2. Under Source files, specify which files are deleted.

      The following example deletes ZIP files that are at least 7 years old.

      File:Success_Center/Reusable_content_-_InfoDev/Kiwi_Syslog_Server_Admin_Guide/KSS_Scheduled_Task_Updates/0020-Create_scheduled_tasks/0020-Create_a_scheduled_task_to_delete_files/schedule_cleanup_source_files.png

  7. To delete empty folders in the source location, click the Clean-up Options tab and select Remove empty folders.
  8. To email or save the report generated each time the clean-up task runs, select one or more options on the Clean-up Notification tab.
    • To email the report to multiple recipients, separate the list of email addresses by commas or semicolons.
    • If you save the report to a file, insert date and time variables in the file name to ensure that it is unique. If the file name is not unique, Kiwi Syslog Server overwrites the existing file when it creates a new file.
  9. Click Apply to save your changes.
Last modified

Tags

Classifications

Public