# \[Machine Learning Export\] - Ability to share Machine Learning data

**URL:** <https://discuss.elastic.co/t/machine-learning-export-ability-to-share-machine-learning-data/168094>\
**Category:** Kibana\
**Tags:** elastic-stack-machine-learning\
**Created:** [February 12, 2019, 6:28pm UTC](https://discuss.elastic.co/t/machine-learning-export-ability-to-share-machine-learning-data/168094 "2019-02-12T18:28:05Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![etsai7](https://avatars.discourse-cdn.com/v4/letter/e/ba8739/32.png) [@etsai7](https://discuss.elastic.co/u/etsai7)\
**Post date:** [February 12, 2019, 6:28pm UTC](https://discuss.elastic.co/t/machine-learning-export-ability-to-share-machine-learning-data/168094/1 "2019-02-12T18:28:05Z")

</div>

Hello,

Is there a functionality to share the generated results from machine learning (either exporting the data or the Kibana UI) or any related posts to this topic?

Thanks,  
Eric

---

<div class="post-metadata">

**Author:** ![jen-huang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jen-huang/32/74327_2.png) [@jen-huang](https://discuss.elastic.co/u/jen-huang)\
**Post date:** [February 12, 2019, 7:27pm UTC](https://discuss.elastic.co/t/machine-learning-export-ability-to-share-machine-learning-data/168094/2 "2019-02-12T19:27:38Z")

</div>

Hi, it's not possible to export the ML graphs, but you can retrieve the results programmatically through the Machine Learning Results APIs: [https://www.elastic.co/guide/en/elasticsearch/reference/6.0/ml-apis.html#ml-api-result-endpoint](https://www.elastic.co/guide/en/elasticsearch/reference/6.0/ml-apis.html#ml-api-result-endpoint)

The results are returned in JSON. With further processing, the results could be converted to csv or another format for sharing purposes.

---

<div class="post-metadata">

**Author:** ![etsai7](https://avatars.discourse-cdn.com/v4/letter/e/ba8739/32.png) [@etsai7](https://discuss.elastic.co/u/etsai7)\
**Post date:** [February 13, 2019, 10:44pm UTC](https://discuss.elastic.co/t/machine-learning-export-ability-to-share-machine-learning-data/168094/3 "2019-02-13T22:44:11Z")

</div>

Hi Jen,

Thank you for the information, I was able to extract some of the ML data. However, it seems to only be grabbing anomalies only when I am posting a GET request for records. Is this the current feature for the ML data export?

Thanks,  
Eric

---

<div class="post-metadata">

**Author:** ![richcollier](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/richcollier/32/115035_2.png) [@richcollier](https://discuss.elastic.co/u/richcollier)\
**Post date:** [February 14, 2019, 1:41am UTC](https://discuss.elastic.co/t/machine-learning-export-ability-to-share-machine-learning-data/168094/4 "2019-02-14T01:41:58Z")

</div>

Hi Eric,

What data are you looking for?

---

<div class="post-metadata">

**Author:** ![etsai7](https://avatars.discourse-cdn.com/v4/letter/e/ba8739/32.png) [@etsai7](https://discuss.elastic.co/u/etsai7)\
**Post date:** [February 14, 2019, 3:53pm UTC](https://discuss.elastic.co/t/machine-learning-export-ability-to-share-machine-learning-data/168094/5 "2019-02-14T15:53:02Z")

</div>

Hi Rich,

I am new to this stack and was hoping to export all the data points that were used when graphing the ML job so I could generate the exact graph from the GET requests.

In addition, my GET requests return, for example, 90 records according to the count, but on the ML Kibana, I don't see as many listed in the anomalies. Do you know why that is?

Thanks,  
Eric

---

<div class="post-metadata">

**Author:** ![richcollier](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/richcollier/32/115035_2.png) [@richcollier](https://discuss.elastic.co/u/richcollier)\
**Post date:** [February 14, 2019, 4:12pm UTC](https://discuss.elastic.co/t/machine-learning-export-ability-to-share-machine-learning-data/168094/6 "2019-02-14T16:12:13Z")

</div>

Eric,

The first thing to know is that the index pattern that contains the information is called `.ml-anomalies-*` (there are index names like `.ml-anomalies-shared`, `.ml-anomalies-jobname`, etc.)

The next thing is that in those indices, there is always a key:value pair for the `job_id`. So, for example, `job_id:orders`

Lastly, in the indices, there can be 5 main kinds of results (keyed with a field called `result_type`)

1. `bucket`
2. `record`
3. `influencer`
4. `model_forecast`
5. `model_plot`

(there are a few other types, but not worth talking about at the moment)

Each kind of `result_type` contains different information, but it is a summary of information gleaned from the analysis of the original raw documents that ML analyzed.

When you say "the data points that were used when graphing the ML job" - which graph are you thinking of? (perhaps also show a screenshot?)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 14, 2019, 4:12pm UTC](https://discuss.elastic.co/t/machine-learning-export-ability-to-share-machine-learning-data/168094/7 "2019-03-14T16:12:15Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
