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?
thanks for the fast reply. I did that by hand editing the json file I got from the get request. However, there are more fields popping up, like "index.creation_date" which have been exported by the GET before and which have to be removed manually. Is there some way I can tell elasticsearch to skip those problematic fields when doing the GET?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.