Configure log files for alarms
- Last UpdatedSep 11, 2025
- 2 minute read
You can log alarm records to a file. By default, the Alarm Printer assigns names to log files based upon the following naming convention:
YYMMDDHH.ALG
|
Notation |
Description |
|---|---|
|
YY |
Last two digits of the year when the log file is created. |
|
MM |
Two-digit number of the month (01-12) when the log file is created. |
|
DD |
Two-digit day of the month (01-31) when the log file is created. |
|
HH |
Two-digit hour of the day (00-23) when the log file is created. |
Configure alarm record logging
-
Open the Alarm Printer utility. Do the following:
-
In the WindowMaker Tools view, expand Applications.
-
Double-click Alarm Printer.
-
-
On the menu bar, select Configure. The Configuration Settings dialog box appears.
-
Select the File Logging tab.

-
Select the Enable Alarm File Logging checkbox to save alarm records to log files.
-
In the Directory box, type the path or browse to a folder location to save the alarm log files.
-
In the Number of Hours to Cycle Filename box, enter the number of hours worth of alarm records to save to an individual log file.
Valid entries are 1 to 24. If your InTouch application runs continuously, select a file logging interval that creates a set of equal length daily log files. For example, setting Number of Hours to Cycle Filename to 6 creates 4 equal length daily log files.
-
In the Starting at Hour box, enter the starting hour to begin logging alarm records to a file each day.
Valid entries are 0 to 23.
For example, an oil refinery operates three daily work shifts. The first shift begins at 6:00 AM. Management wants alarm records logged for each shift. To do this, enter 8 for the Number of Hours to Cycle Filename option. Enter 6 for the Starting at Hour (0-23) option. The Alarm Printer creates a log file from 06:00 to 14:00, another from 14:00 to 22:00, and a third from 22:00 to 06:00.
-
In the Keep Log Files for box, enter the number of days to retain log files.
The Alarm Printer saves log files for the number of specified days plus the current day. The Alarm Printer deletes log files older than the retention period. To save log files indefinitely, enter 0.
-
In the Log File Name Extension box, accept the default ALG file name extension or assign another three-character extension to log files.
If you use a .csv extension, you can import the log file directly into Excel or Notepad.
-
To remove spaces at the end of entries within a log file, select the Remove Trailing Spaces in Log Entries checkbox.
You can also specify a field separator character placed at the end of each record in the log file.
-
Select the Original Column Ordering checkbox to maintain the same order from the alarm display to log file records.
-
Select Apply.