TIBCO Hawk uses a rolling log file mechanism to manage log file space. When one file has reached a maximum size, it is closed and renamed, and a new log file with the same name is started. When the number of files of a particular type exceeds a maximum, log entries roll over to reuse the oldest log file. Using the
LogService agent startup parameters, you can specify the maximum size of a log file before the next file is started, and how many log files of each type to keep.
For example, Figure 11 shows the current TIBCO Hawk Event Service data file Event.dat, accompanied by five filled data files. In this example, the maximum size of a data file is set to 1024 K (it is shown rounded) and the maximum number of data files is set to five. When the current data file
Event.dat is filled, the most recent data file (
Event1.dat) is renamed to
Event2.dat, and so on, rotating
Event5.dat out of the list. Then the current data file,
Event.dat, is renamed to
Event1.dat and new messages are written to the new
Event.dat.