Upgrade security-auditlog-* indices to OpenSearch 3.x

OS 3.0.0
Redhat 8

Hi all,

I am trying to upgrade from OpenSearch 2.14.0 to OpenSearch 3.0.0 but I got an error saying that the security-auditlog-* indices were created in OpenSearch 1.3.2 and are incompatible with 3.0.0.

How can I upgrade these indices?

Thanks

Re-index them (ymmv)

#!/bin/bash

INDEX=$1


curl -k --cert ./admin.pem --key ./admin-key.pem -XPOST 'https://localhost:9200/_reindex?wait_for_completion=true' -H "Content-type:application/json" -d '{"source":{"index":"'${INDEX}'"}, "dest":{"index":"'${INDEX}'-re"}}'
curl -k --cert ./admin.pem --key ./admin-key.pem -XDELETE "https://localhost:9200/${INDEX}"
curl -k --cert ./admin.pem --key ./admin-key.pem -XPOST 'https://localhost:9200/_reindex?wait_for_completion=true' -H "Content-type:application/json" -d '{"source":{"index":"'${INDEX}'-re"}, "dest":{"index":"'${INDEX}'"}}'