# Create a multi metric machine learning job using dev tools

**URL:** <https://discuss.elastic.co/t/create-a-multi-metric-machine-learning-job-using-dev-tools/142169>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-machine-learning\
**Created:** [July 30, 2018, 11:55am UTC](https://discuss.elastic.co/t/create-a-multi-metric-machine-learning-job-using-dev-tools/142169 "2018-07-30T11:55:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Angelos](https://avatars.discourse-cdn.com/v4/letter/a/4bbf92/32.png) [@Angelos](https://discuss.elastic.co/u/Angelos)\
**Post date:** [July 30, 2018, 11:55am UTC](https://discuss.elastic.co/t/create-a-multi-metric-machine-learning-job-using-dev-tools/142169/1 "2018-07-30T11:55:01Z")

</div>

Hello,

I want to create a multi metric ml job that will be expired in 1d. Can I do it using dev tools?  
I have created a forecast job like so and now I want to create a ml job.  
My Forecast job:

POST \_xpack/ml/anomaly\_detectors/forecast\_manually/\_forecast  
{  
"duration": "56d",  
"expires\_in": "1d"  
}

Thank you very much in advance!

/Angelos

---

<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:** [July 30, 2018, 8:22pm UTC](https://discuss.elastic.co/t/create-a-multi-metric-machine-learning-job-using-dev-tools/142169/2 "2018-07-30T20:22:29Z")

</div>

Hi Angelos,

See [the API for creating an anomaly detection job](https://www.elastic.co/guide/en/elasticsearch/reference/6.2/ml-put-job.html). Jobs don't have an expiration date inherently because in general, one normally runs ML anomaly detection jobs on-going. You would have to manually [delete a job](https://www.elastic.co/guide/en/elasticsearch/reference/6.2/ml-delete-job.html) if you were done with it.

---

<div class="post-metadata">

**Author:** ![Angelos](https://avatars.discourse-cdn.com/v4/letter/a/4bbf92/32.png) [@Angelos](https://discuss.elastic.co/u/Angelos)\
**Post date:** [July 31, 2018, 8:13am UTC](https://discuss.elastic.co/t/create-a-multi-metric-machine-learning-job-using-dev-tools/142169/3 "2018-07-31T08:13:44Z")

</div>

Thank you very Rich!

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [October 30, 2018, 10:21pm UTC](https://discuss.elastic.co/t/create-a-multi-metric-machine-learning-job-using-dev-tools/142169/4 "2018-10-30T22:21:39Z")

</div>


