Setting log file rolling options

Steps

  1. In the Content Gateway manager, go to the Configure > Subsystems > Logging > General tab.
  2. In the Log Rolling section, ensure the Log Rolling option is enabled (the default).
  3. In the Offset Hour field, enter a specific time each day you want log file rolling to take place. Content Gateway forces the log file to be rolled at the offset hour each day.
    You can enter any hour in the range 0 (midnight) to 23.
  4. In the Interval field, enter the amount of time Content Gateway enters data in the log files before rotation takes place.

    The minimum value is 300 seconds (five minutes). The maximum value is 86400 seconds (one day).

    Note: If you start Content Gateway within a few minutes of the next rolling time, rolling may not occur until the following rolling time.
  5. Ensure the Auto-Delete Rolled Files option is enabled (the default). This enables auto deletion of rolled log files when available space in the log directory is low.
    Auto deletion is triggered when the amount of free space available in the log directory is less than the headroom.
  6. Click Apply.
    Note: You can fine tune log file rolling settings for a custom log file in the LogObject specification in the logs_xml.config file. The custom log file uses the rolling settings in its LogObject, which override the default settings you specify in the Content Gateway manager or the records.config file described above.