rollover datastreams to get latest index templates + remove existing ilm policies from so-case / so-detection indices

This commit is contained in:
reyesj2
2026-03-17 13:49:20 -05:00
parent eaf3f10adc
commit 1a943aefc5
2 changed files with 25 additions and 1 deletions
+9 -1
View File
@@ -403,7 +403,15 @@ migrate_pcap_to_suricata() {
}
post_to_3.0.0() {
echo "Nothing to apply"
for idx in "logs-idh-so" "logs-redis.log-default"; do
rollover_index "$idx"
done
# Remove ILM for so-case and so-detection indices
for idx in "so-case" "so-casehistory" "so-detection" "so-detectionhistory"; do
so-elasticsearch-query $idx/_ilm/remove -XPOST
done
POSTVERSION=3.0.0
}