mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
show 30d scheduled deletions or 7d scheduled deletions depending on what historical data is available
This commit is contained in:
@@ -1024,9 +1024,13 @@ else
|
|||||||
if [ "$ilm_indices_immediate" -gt 0 ]; then
|
if [ "$ilm_indices_immediate" -gt 0 ]; then
|
||||||
echo -e "${BOLD}Deleting now:${NC} $ilm_indices_immediate indices (~${ilm_delete_immediate_gb} GB, $ilm_shards_immediate shards)"
|
echo -e "${BOLD}Deleting now:${NC} $ilm_indices_immediate indices (~${ilm_delete_immediate_gb} GB, $ilm_shards_immediate shards)"
|
||||||
fi
|
fi
|
||||||
if [ "$ilm_indices_7d" -gt 0 ]; then
|
if [ "$ilm_indices_30d" -gt 0 ]; then
|
||||||
|
if [ "$ilm_delete_scheduled_30d" -gt 0 ] && [ "$ilm_indices_scheduled_30d" -gt 0 ]; then
|
||||||
|
echo -e "${BOLD}Storage to be freed (30d):${NC} $ilm_indices_30d indices (~${ilm_delete_30d_gb} GB, $ilm_shards_30d shards)"
|
||||||
|
elif [ "$ilm_indices_7d" -gt 0 ]; then
|
||||||
echo -e "${BOLD}Storage to be freed (7d):${NC} $ilm_indices_7d indices (~${ilm_delete_7d_gb} GB, $ilm_shards_7d shards)"
|
echo -e "${BOLD}Storage to be freed (7d):${NC} $ilm_indices_7d indices (~${ilm_delete_7d_gb} GB, $ilm_shards_7d shards)"
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
log_title "LOG" "Retention Projection"
|
log_title "LOG" "Retention Projection"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user