I tried to duplicate an index with
curl -XGET https://$USER:$PASS@$(hostname -f):9200/.kibana >_index.json
sed -e 's|.kibana|.kibana2|g' -i _index.json
curl -XPUT https://$USER:$PASS@$(hostname -f):9200/.kibana2 -H "Content-Type: application/json" -d @_index.json
and I got the above error for "unknown setting [index..kibana2.mappings.doc.dynamic]". Even when I try to do it step by step, e.g.
curl -XPUT https://$USER:$PASS@$(hostname -f):9200/.kibana2
curl -XGET https://$USER:$PASS@$(hostname -f):9200/.kibana/_settings >_settings.json
sed -e 's|.kibana|.kibana2|g' -i _settings.json
curl -XPUT https://$USER:$PASS@$(hostname -f):9200/.kibana2/_settings -H "Content-Type: application/json" -d @_settings.json
I am getting the error for "unknown setting [index..kibana2.settings.index.auto_expand_replicas]".
Is there a way that I can export/import those settings correctly?
I am currently working on 6.2.4