cloud-native-security-inspector icon indicating copy to clipboard operation
cloud-native-security-inspector copied to clipboard

Feature: Need a purge mechanism to clean up the very old reports on OpenSearch and ElasticSearch

Open JingChen23 opened this issue 2 years ago • 1 comments

Screen Shot 2022-12-14 at 12 31 48

The report list has a limit, which is good. However, the total number on the right-bottom will keep increasing, indefinitely. Actully the very old reports means little, so we need a mechanism to purse those stuffs on OS or ES, to avoid crashing them.

A good proposal is: add a limit setting, and use the number to purse the old reports.

JingChen23 avatar Dec 14 '22 04:12 JingChen23

An option is to create indices in opensearch/elasticsearch by day and use a unified alias to reference all the indices. After that, indices out-of-date can be removed from the reference background periodically without the awareness of the front end or any downtime. Refer to: https://opensearch.org/docs/latest/api-reference/alias/

4everming avatar Dec 14 '22 08:12 4everming