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:
Warning
The following commands are deprecated in releases >= 3.3.0. accelo admin database purge-db -d 28accelo admin database compact-db
accelo admin database purge-db -d 28
accelo admin database compact-db
The above command will launch a container and initiate purge for mongo db. here refers to no. of days to retain reporting data in Mongo DB.-d
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:
#!/bin/sh
export AcceloHome='<ACCELO_HOME>'
export AcceloStack='ad-default'
export PATH=${PATH}:${AcceloHome}
accelo admin database purge-tsdb -a 15 -s 10
accelo admin database purge-db -d 28
accelo admin database compact-db
Victoria DB
Default retention - 1 month
Elastic Search
Default retention - 5 days
Update and logsearch/curator.actions file for increasing/decreasing retention days on storing service and component logs data in Elastic storage:addons/ad-logsearch.yml
Search and update for given days for file present atunit_count<ACCELO_HOME>/config/logsearch/curator.actions
Create file if it doesn't exist, if exists else press n to avoid overridead-logsearch.yml
[root@pulse2:~ (ad-default)]$ accelo admin makeconfig ad-logsearch
✓ Done, Configuration file generated
IMPORTANT: Please edit/verify the file '/data01/acceldata/config/docker/addons/ad-logsearch.yml'.
If the addon is already up and running, use './accelo deploy addons' to remove and recreate the addon service.
- Open file as created or already present at mentioned location, update
to given days as required under ad-logstash section.IGNORE_OLDER_LOGS_DAYS - To reduce SYSLOG messages in ES, set
to trueSYSLOG_PROG_REGEX_MATCH_ENABLE
Once above changes are completed run following commands and press Y on prompts to implement config changes:
accelo restart ad-logstash
accelo restart ad-logsearch-curator

Have a suggestion?