Configure the retention notification threshold to one week. Activate data archiving, so that you can manually archive logs for 90 days and selectively clean the datastore when free space is required.

vRealize Log Insight continuously estimates how long data can be retained with the currently available pool of storage. If the estimation drops below the retention threshold, vRealize Log Insight notifies the administrator that the amount of searchable log data is likely to drop.

UI Procedure

  1. Log in to vRealize Log Insight at https://<vrealize_log_insight_fqdn> as admin.
  2. On the main navigation bar, click Administration.
  3. Configure notifications for reaching the retention threshold.

    1. In the left pane, click Configuration > General.

    2. On the General configuration page, in the Alerts section, configure the settings according to your VMware Cloud Foundation Planning and Preparation Workbook, and click Save.

  4. Configure data archiving.

    1. In the left pane, click Management > Log management.

    2. Click the Index partitions tab.

    3. Click the Edit button for the default partition.

    4. In the Edit partition dialog box, configure the settings according to your VMware Cloud Foundation Planning and Preparation Workbook.

    5. To test the connection to the archive storage location, click Test.

    6. Click Save.

PowerShell Procedure

  1. Start Windows PowerShell.

  2. Replace the values in the sample code with values from your VMware Cloud Foundation Planning and Preparation Workbook and run the commands in the PowerShell console.

    $sddcManagerFqdn = "sfo-vcf01.sfo.rainpole.io"
    $sddcManagerUser = "administrator@vsphere.local"
    $sddcManagerPass = "VMw@re1!"
    
    $emailAddress = "administrator@rainpole.io"
    $retentionNotificationDays = "1"
    $retentionInterval = "weeks"
    $retentionPeriodDays = "7"
    $archiveLocation = "nfs://172.27.11.4/sfo-m01-vrli01-400GB"
  3. Perform the configuration by running the command in the PowerShell console.

    Add-vRLILogArchive -server $sddcManagerFqdn -user $sddcManagerUser -pass $sddcManagerPass -emailAddress $emailAddress -retentionNotificationDays $retentionNotificationDays -retentionInterval weeks -retentionPeriodDays $retentionPeriodDays -archiveLocation $archiveLocation