Modify Storage Retention

Pulse uses multiple storage layers for different purposes, and all database layers store data under the following path:

Bash
Copy

The following sections describe how to override the default retention settings based on the available storage capacity on the server.

MongoDB Retention Configuration

Default Retention

  • MongoDB retention: 15 days
  • MongoDB HDFS reports retention: 15 days

Configuration

  • The Gauntlet configuration file acts as the source of truth for Gauntlet and is synchronized with the database.
  • To update the configuration, use one of the following methods:
    • Delete the existing Gauntlet configuration file and regenerate it using values from accelo.yml.
    • Manually edit the existing Gauntlet configuration file and push the updated changes to the database.

Step 1: Configure Retention

Run the following command on the Pulse node:

Bash
Copy

You will be prompted to configure retention values.

Example

Bash
Copy

This updates the following configuration file:

Bash
Copy

Step 2: Generate/Edit Data Retention Configuration

If the Gauntlet configuration file is not present inside this directory:

Bash
Copy

Then, run the following command.

Bash
Copy

This generates the MongoDB retention configuration file:

Bash
Copy

If you want to update the retention values, you can update them manually in the above file.

Step 3: Verify MongoDB Retention Configuration

Open the generated file and verify the retention configuration.

Bash
Copy

Example

Bash
Copy

Step 4: Update Retention Period

Modify the following parameter based on your retention requirement:

Retention RangeWhat it does ?
range: 5Retains data for 5 days.
range: 10Retains data for 10 days.

You can also configure separate retention rules for specific collections.

Example

Bash
Copy

Victoria DB (TSDB) Retention Configuration

Default Retention

  • Data in the TSDB (Victoria) database is retained for 31 days by default.

Step 1: Configure Retention

Run the following command on the Pulse node:

Bash
Copy

You will be prompted to configure retention values.

Example

Bash
Copy

This updates the following configuration file:

Bash
Copy

Step 2: Apply Updated Configuration

After making changes, push the configuration again:

Bash
Copy

Step 3: Restart the services so that the new configuration is applied

Bash
Copy

Elasticsearch Retention Configuration

Default Retention

  • By default, Elasticsearch retains the last 5 indices.
  • You can configure Elasticsearch retention using the supported Gauntlet retention configuration.

Step 1: Push Database Configuration

If the Gauntlet configuration file is not present inside this directory:

Bash
Copy

Then, run the following command.

Bash
Copy

This generates the Elasticsearch retention configuration file:

Bash
Copy

Step 2: Verify Elasticsearch Retention Configuration

Notes

  • By default, Elasticsearch retains the last 5 indices.
  • Update the address field only when LogSearch is deployed on a different node.
  • No configuration changes are required if Elasticsearch is running on the core node.

Example

YAML
Copy

Step 3: Update Retention Value

Modify the following parameter based on your retention requirement:

Retention Range ValuesWhat it does ?
range: 5Retains the last 5 indices.
range: 10Retains the last 10 indices.

You can also configure separate retention rules for specific index patterns.

Example:

Bash
Copy

Step 4: Apply Updated Configuration

After making changes, push the configuration again:

Bash
Copy
VariableType to search · ESC to discard
GlossaryType to search · ESC to discard
InsertType to search · ESC to discard
No matches