Set data retention

The data retention settings enable you to define the period to keep your data. The maximum period is 365 days. After the retention period expires, the system automatically deletes the data. Consider the available storage space and data ingestion volume when setting the data retention period.

You can set data retention on two levels: globally and based on data types.

Set global data retention

Global data retention applies to all logs, including all log types that do not have a custom retention period. This allows you to set data retention for all your data in one go.

Follow the steps below to configure global data retention:

  1. Navigate to Log database management > Log types management.

  2. Click Change period in the Current global data retention time widget.

  3. Enter the number of days to retain your data. We recommend setting a threshold based on your storage space plan and log volume.

    NXLog Platform global data retention
  4. Click Save.

  5. Review the log deletion details and click Apply to save the new setting.

    NXLog Platform update global retention
    By clicking Apply, you accept to delete logs older than the new retention period. Deleted logs cannot be recovered.

Set custom data retention

You can specify custom data retention periods for selected log types. Custom data retention rules are a perfect way to, for example, keep less important logs for a shorter period and keep critical logs longer. Using different data retention rules helps to get the most out of your storage space.

Follow the steps below to set custom data retention for a log type:

  1. Navigate to Log database management > Log types management.

  2. Click the Add new log type retention button above the Log type settings table.

  3. Enter the Log type name and the Retention time (days).

    NXLog Platform custom data retention
  4. Click Save. If the log type you specify does not exist, NXLog Platform will create it. If the log type already exists, NXLog Platform will update it.

Once you apply custom data retention for a log type, the Retention settings for that log type will switch to Custom in the Log type settings table. You can modify the retention period by clicking the Actions menu for the log type and choosing Edit.

NXLog Platform log types settings

If the database contains logs of this type, you can reset the retention period to the global value. Otherwise, you can delete the log type.

NXLog Platform editing a log type