-
The FlatFile transport strategy is capable of performing file rolling, based on a file line count threshold. Once the event file exceeds the line count threshold, it is renamed, and a new empty file is created for subsequent events. The process of rolling continues for the life of the integration adapters.
-
When file rolling is enabled, an optional file line count threshold can be specified. If file rolling is enabled and no threshold is specified, a default value of 100000 is used. This means that when an event file contains 100000 lines, the file is rolled.
-
If a threshold is supplied, this value is used. It is advisable that very small threshold values not be used, as this causes a proliferation of small files on the Network Configuration Manager system, increase I/O activity, and overall degrades the performance of the system.
-
When a file is rolled, the rolled file name is <filename>.timestamp, where timestamp is a long value that represents the number of milliseconds since 12:00a.m. January 1st, 1970. This timestamp value can be used to determine the age of the rolled files.
-
To disable file rolling, either the <enable-file-rolling> element can be specified with a false value in the <FlatFile> transport strategy block of the integration adapters configuration file, or by removing the <enable-file-rolling> element.