6.2.7.19 PURGE_REPORTLOG #days

The PURGE_REPORTLOG option instructs the ISV server to automatically remove report logs older than the specified number of days. PURGE_REPORTLOG is supported on Unix servers only (i.e. it is not supported on Windows servers).

Note that PURGE_REPORTLOG only affects the current report log name, and PURGE_REPORTLOG will have no effect if the server is not writing a report log, or if the report logs are not named according to the standard RLM rotation naming convention.

report_log_file_name.yyyy.mm.dd

The purge operation is done at midnight, immediately following the renaming of the log, if applicable.

Example1:

ROTATE daily
PURGE_REPORTLOG 3

In this case, after the reportlog rename on Feb 23, 2016, the following reports would remain:

reportlog
reportlog.2016.02.23
reportlog.2016.02.22
reportlog.2016.02.21

Example 2:

ROTATE weekly
PURGE_REPORTLOG 3

In this case, after the rename on Feb 23, the renamed reportlog (reportlog.2016.02.23) would remain until Feb 27, at which point it would be deleted, and only the current reportlog would remain until the next rotation.

The PURGE_REPORTLOG option first appeared in RLM v12.1.