Monitoring Automize log files for errors / exit codes

Date Updated  -  06/03/2005

Description
User needs to have the Automize output log clear to 0 bytes (i.e. delete the log) rather than truncate the log by half when the maximum size threshold is reached.  This is required because the user is using an enterprise level Alarming software, to monitor the Automize logs for exit codes and alarms, when a chain fails,.  They had a problem with false alarms with their monitoring software.  When the log is truncated, the monitoring software would lose it's pointer and would start looking for alarms from the beginning of the log.  This caused false alarms.

Solution

1) In Automize, use the logs menu and set the maximum log sizes to be extremely large (~1 MB). This way this limit is never reached, and the automatic truncation to 50% will not occur.

2) Create a delete task which deletes the Automize output log file.  The output log is called 'outputLog.jsd'.  It is in the Automize\inputs folder.  Other task specific logs are in the Automize\TaskLogs folder.
Delete Task settings:
Title = delete_task
Directory = .......Automize\inputs
Filename = outputLog.jsd

3) Create a File Monitor task with following settings:
Directory = .......Automize\inputs
Filename = outputLog.jsd
Task to Run = delete_task
Select Option: Run task if file size greater than 200 KB

4) Schedule the File Monitor task to run at a frequency which ensures that the log file is deleted using the delete task, rather than automatically truncated to 50% by Automize.