You can configure vRealize Log Insight Cloud to retain certain logs for a lesser number of days that the default retention period, which is 30 days. By retaining logs for a less number of days, you can remove logs with short life spans or sensitive information. The system runs log retention configurations as periodic tasks.

Prerequisites

Verify that you are logged in to the vRealize Log Insight Cloud web user interface as an administrator.

Procedure

  1. Click the two arrows icon in the upper-left corner of the screen to expand the main menu.
  2. Navigate to Log Management > Log Processing Rules.
  3. On the Variable Retention tab, click New Configuration.

  4. Option Description
    Name A unique display name for the log retention configuration.
    Query

    Filters log messages to retain the logs that contain the text you enter. At least one filter is required.

    To add more filters, click Add Filter. Optionally, click the magnifying glass icon to preview the filtered results.

    Retention Days The number of days for which you want to retain the logs.
  5. Click Save.

Results

The variable retention configuration is displayed on the Variable Retention tab. You can modify or remove a configuration. If you modify the retention days, the new value is considered from the next periodic task onwards.