# Storing machine learning results in elasticsearch

**URL:** <https://discuss.elastic.co/t/storing-machine-learning-results-in-elasticsearch/364022>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-machine-learning\
**Created:** [July 30, 2024, 6:15am UTC](https://discuss.elastic.co/t/storing-machine-learning-results-in-elasticsearch/364022 "2024-07-30T06:15:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Septianingrum.17](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@Septianingrum.17](https://discuss.elastic.co/u/Septianingrum.17)\
**Post date:** [July 30, 2024, 6:15am UTC](https://discuss.elastic.co/t/storing-machine-learning-results-in-elasticsearch/364022/1 "2024-07-30T06:15:00Z")

</div>

Dear All,

I have 2 elasticsearch nodes in 1 cluster, I give node 1 all roles except ml, node 2 I only give the ml role, when machine learning runs and displays the results, where are the ml results stored? on node 2 or 1?

Thank you,  
Best regards,  
Septia

---

<div class="post-metadata">

**Author:** ![valeriy42](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/valeriy42/32/82758_2.png) [@valeriy42](https://discuss.elastic.co/u/valeriy42)\
**Post date:** [July 31, 2024, 7:04am UTC](https://discuss.elastic.co/t/storing-machine-learning-results-in-elasticsearch/364022/2 "2024-07-31T07:04:36Z")

</div>

Hello @Septianingrum.17 ,

the results are stored in the `.ml-anomalies-*` indices and hence on nodes with the `data` role.
