Removing security-auditlog indexes from your OpenSearch cluster

After my previous article on Querying the OpenSearch index, a colleague and I used the script to take a good look at the OpenSearch index in our environment. That environment, is a large Connections installation (45K users) in the Netherlands. We found two disturbing facts: The cluster status was yellow, due to the QuickResults index not having a replica of all its shards There was a huge amount of secruity-auditlog indexes, one per day. There were as many as the days passed since our migration to Connections 8 It turns out these two issues were closely related.
This is a companion discussion topic for the original entry at https://blog.martdj.nl/2025/07/17/removing-security-auditlog-indexes-from-your-opensearch-cluster/