Automatic Log Folder Clean Up for FileCatalyst Direct Applications in Linux Environments
Posted by Jeyram Sachchithananthan, Last modified by Jeyram Sachchithananthan on 23 May 2019 12:59 PM

There are few folders which reside within FileCatalyst applications such as logs and diagnostic that should be cleaned up periodically. This will prevent the local disk from being filled up and causing service interruptions. In Linux environments, you have the ability to set up cronjobs to delete files and folders that are not needed and taking up some disk space. This article will give you sample crontab entries to clean up log folders.

FileCatalyst Direct v3.4 and later.

Linux Environment.


  1. Using PuTTY or another application SSH to the Linux system and edit your crontab file by running: sudo crontab -e 

  2. The following example is set to run every day at 4 am local system time and deletes all the log files on the FileCatalyst Server which are older than 8 days.

    * 4 * * * find /opt/utechsoft/server/log/* -mtime +7 -type f -delete

  3. Running sudo crontab -l command will display and verify the cronjobs are configured properly.


If you have the FileCatalyst Central or FileCatalyst Hotfolder  In Linux environments, The following lines are needed for log folder cleanup:
HotFolder Log Location: * 4 * * * find /opt/utechsoft/hotfolder/log/* -mtime +7 -type f -delete
Central Log Location: * 4 * * * find /opt/utechsoft/central/log/* -mtime +7 -type f -delete

Alternatively, you can specify a full path after the find command above to clean up that folders contents.

Comments (0)