I am migrating my on-premise ELK stack to elastic cloud as per this article
I use the snapshot method and I did restored all the .ml* indices Unfortunately, I cannot retreive my ML job configurations. According to the doc, the config is in .ml-config index, which I cannot see when requesting:
GET /_cat/indices/.ml*
green open .ml-state nlE3yctYSYSHJgcN_SEuKQ 5 1 2943 31 513.5mb 256.7mb
green open .ml-anomalies-shared bpvA1bNnR_iWsKtrocb5dQ 5 1 354785 14 148.1mb 74mb
green open .ml-notifications Flwftz4USw2MZApxzG9rAA 1 1 965 0 412.5kb 195.8kb
Then, refactor and "PUT" those configs on the new cluster. From there you'd need to rebuild the models and results on the raw data on the new cluster.
In the future, we'll have a better facility to move everything from one system to another. Moving the job configs out of cluster state to .ml-config was the first step!
The article referenced above (migrating to cloud) was written in 2016, before ML was released - it therefore does not contain information on how to migrate ML configurations to another system.
Let me re-iterate - if you want to move ML job configurations from one system to another, you need to follow the process I mentioned above - you need to extract all existing configs with the API and you need to PUT those configs on the new cluster. From there you'd need to rebuild the models and results of the ML jobs from the raw data on the new cluster.
Pretty sure those are stored in the .security index - so probably can re-index from remote to move those. But, I'm not an expert in that part of the product. Maybe head on over to https://discuss.elastic.co/tags/c/elasticsearch/security
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.