Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):
v 1.3.2
Describe the issue:
When I restore an index and use the rename_replacement
option I’m getting an unexpected suffix on the index name.
Example restore command:
curl -ksSL -u "$USER_AUTH" -XPOST -H 'Content-Type: application/json' \
https://localhost:9200/_snapshot/log-archive/2021/_restore -d \
'{"rename_pattern": ".*", "rename_replacement": "restored-$0", "indices": "*-foo-2021.04", "ignore_index_settings": ["index.routing.allocation.require.box_type"]}'
Expected restored index name:
restored-server-logs-foo-2021.04
What I get instead (note the restored-
suffix):
restored-server-logs-foo-2021.04restored-
I guess this must be happening due to the "rename_replacement": "restored-$0"
field, but I don’t understand exactly why it is happening. Any ideas?
Configuration:
S3 storage for snapshots, though not sure if it is relevant.
Relevant Logs or Screenshots:
n/a