Not a customer? Click the 'Start a free trial' link to begin a 30-day SaaS trial of our product and to join our community.
Existing Cisco AppDynamics customers should click the 'Sign In' button to authenticate to access the community
06-23-2021 10:44 PM - last edited on 06-24-2021 09:57 AM by Ryan.Paredez
Hi Everyone,
I have a question regarding the incremental backup snapshot in the Events Service.
If we want to keep the Events Service snapshot to always run in incremental (backup runs daily), does that mean we can't delete the indices file backup under the indices folder? What if we want to keep only the last 7 days of backup data (backup runs daily)?
Any best practice on the Events Service snapshot data housekeeping or snapshot retention settings?
Thanks for your reply!
Regards,
Yan
Solved! Go to Solution.
07-26-2021 06:05 PM
Hi @Yan.Solomon ,
Thank you for posting to the community.
Event Service is using Elasticsearch, and each snapshot is independent and restorable to that point in time, so you can delete old unnecessary snapshots even though it is incremental.
You can use the Elasticsearch API calls to delete the snapshots and indices backup files under indices folder.
Please see the document below for Elasticsearch API.
https://www.elastic.co/guide/en/elasticsearch/reference/2.4/modules-snapshots.html
1. All snapshots currently stored in the repository can be listed using the following command:
curl -X GET "localhost:9200/_snapshot/<my_backup>/_all?pretty"
Replace <my_backup> with your snapshot repository name.
or
<appd_home>/events-service/processor/bin/events-service.sh snapshot-list -p <appd_home>/events-service/processor/conf/events-service-api-store.properties
Snapshot repository name can be found by the following command:
curl -X GET "localhost:9200/_snapshot?pretty"
*If the repository name contains a slash, you may not be able to list snapshots with curl command. In that case, please add a new repository with a simple name having same setting so that you can use the simple name instead.
curl -X PUT "localhost:9200/_snapshot/<simple_repository_name>" -d '<same_setting_with_existing_one>'
2. A snapshot can be deleted from the repository using the following command:
curl -X DELETE "localhost:9200/_snapshot/<my_backup>/<snapshot_id>?pretty"
Above command also deletes all files that are associated with the deleted snapshot and not used by any other snapshots.
If you needs to keep only the last 7 days of backup data, you may just keep 7 days of snapshots.
Note that you need to enable port 9200(Events Service debugging port) as written in the knowledge base below.
https://community.appdynamics.com/t5/Knowledge-Base/How-do-I-enable-the-Events-Service-debugging-por...
Best Regards,
Hiroki
Thank you! Your submission has been received!
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form