I'm currently working on an Elasticsearch SDLC, and would like to store the machine learning jobs into version control so they can be restored, tracked, etc.. I have been doing the same with dashboards and watches using Elasticdump to export/restore the respective indices. When I try to do the same with the .ml-state and .ml-anomalies-shared indices, I do not see the jobs appearing in the Machine Learning tab, or even when I query the ML APIs. Is there a way this can be done?
I even stopped datafeeds and closed the jobs before exporting, to no avail. I do not want to use the snapshot/restore feature because it isn't as easy to version control/package.