Script: Delete Server Logs Greater Than 30 Days

Script: Delete Server Logs Greater Than 30 Days

Posted by: Informatica Professional Services

A script that deletes Bad files, session log files and workflow log files which is greater than 30 days.

Overview

In an enterprise level data integration environment with thousands of jobs running every hour, log files can quickly build up and occupy a significant amount of disk space. This can be addressed by having an automated process to truncate the logs. The script here deletes the Bad files, Session log files and workflow log files which were written 30 days before the present date and thus recovers the space from the memory. The script takes the following as the inputs :
  • Present Working Directory.
  • Location of the Infa_Share Directory.
Then it iterates through the BadFile, Sesslogs and WorkflowLogs directory and thus recovers the space by deleting the files. The download file contains:
  • Linux script
  • Windows Script

Features

Resources

Support