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
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. -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:
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 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
[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
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:
accelo restart ad-logstash
accelo restart ad-logsearch-curator