Modify Storage Retention

Pulse employs multiple storage layers for a variety of purposes; all database layers store data on the path AcceloHome/data.

Here are the use cases to override existing retention as per available storage on server:

Mongo DB

Default retention - There is no limit. It is dependent on the amount of storage available.

CLI command to initiate purge and retain specified days worth of reporting data:

The following commands are deprecated in releases >= 3.3.0. accelo admin database purge-db -d 28 accelo admin database compact-db

SQL
Copy

The above command will launch a container and initiate purge for mongo db. -d here refers to no. of days to retain reporting data in Mongo DB.

You may schedule a purge script to retain mongo and influx db based on their retention needs, update ACCELO_HOME directory as per your installation:

Bash
Copy

Victoria DB

Default retention - 1 month

Default retention - 5 days

Update logsearch/curator.actions and addons/ad-logsearch.yml file for increasing/decreasing retention days on storing service and component logs data in Elastic storage:

Search and update unit_count for given days for file present at<ACCELO_HOME>/config/logsearch/curator.actions

Create ad-logsearch.yml file if it doesn't exist, if exists else press n to avoid override

Bash
Copy
  • Open file as created or already present at mentioned location, update IGNORE_OLDER_LOGS_DAYS to given days as required under ad-logstash section.
  • To reduce SYSLOG messages in ES, set SYSLOG_PROG_REGEX_MATCH_ENABLE to true

Once above changes are completed run following commands and press Y on prompts to implement config changes:

Bash
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard