# Machine learning \_getting alert while creating a new job

**URL:** <https://discuss.elastic.co/t/machine-learning-getting-alert-while-creating-a-new-job/102665>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-machine-learning\
**Created:** [October 4, 2017, 8:53am UTC](https://discuss.elastic.co/t/machine-learning-getting-alert-while-creating-a-new-job/102665 "2017-10-04T08:53:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Raj\_Kumar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/raj_kumar/32/25420_2.png) [@Raj\_Kumar](https://discuss.elastic.co/u/Raj_Kumar)\
**Post date:** [October 4, 2017, 8:53am UTC](https://discuss.elastic.co/t/machine-learning-getting-alert-while-creating-a-new-job/102665/1 "2017-10-04T08:53:33Z")

</div>

Hi All,

Iam trying to create a job and am getting this message,am not sure why am getting this message

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/2/4/242b341d9cd8b303e819edc091453df456f2b604.png)

Please let me know what should I do this.  
Thanks,  
Raj

---

<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:** [October 4, 2017, 12:35pm UTC](https://discuss.elastic.co/t/machine-learning-getting-alert-while-creating-a-new-job/102665/2 "2017-10-04T12:35:06Z")

</div>

Raj,

in order for us to help you, please provide us with the information relating to how you've configured the job. You can get this by running the following and pasting the output here:

`curl -u elastic:changeme -XGET 'localhost:9200/_xpack/ml/anomaly_detectors/<jobname>?pretty'`

`curl -u elastic:changeme -XGET 'localhost:9200/_xpack/ml/datafeeds/datafeed-<jobname>?pretty'`

---

<div class="post-metadata">

**Author:** ![Raj\_Kumar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/raj_kumar/32/25420_2.png) [@Raj\_Kumar](https://discuss.elastic.co/u/Raj_Kumar)\
**Post date:** [October 4, 2017, 1:46pm UTC](https://discuss.elastic.co/t/machine-learning-getting-alert-while-creating-a-new-job/102665/3 "2017-10-04T13:46:16Z")

</div>

Thank you rich for the quick response

curl -u elastic:xx -XGET 'localhost:9200/\_xpack/ml/datafeeds/datafeed-bytes\_usage?pretty'  
{  
"count" : 1,  
"datafeeds" : [  
{  
"datafeed\_id" : "datafeed-bytes\_usage",  
"job\_id" : "bytes\_usage",  
"query\_delay" : "60s",  
"frequency" : "600s",  
"indices" : [  
"logstash\_netflow-\*"  
],  
"types" : [  
"netflow\_cisco",  
"netflow"  
],  
"query" : {  
"match\_all" : {  
"boost" : 1.0  
}  
},  
"scroll\_size" : 1000,  
"chunking\_config" : {  
"mode" : "auto"  
}  
}  
]  
}

* * *

curl -u elastic:changeme -XGET 'localhost:9200/\_xpack/ml/anomaly\_detectors/bytes\_usage?pretty'  
{  
"count" : 1,  
"jobs" : [  
{  
"job\_id" : "bytes\_usage",  
"job\_type" : "anomaly\_detector",  
"job\_version" : "5.6.2",  
"description" : "bystes\_usage",  
"create\_time" : 1507106098700,  
"finished\_time" : 1507106100191,  
"analysis\_config" : {  
"bucket\_span" : "30m",  
"detectors" : [  
{  
"detector\_description" : "high\_sum(netflow.in\_permanent\_bytes)",  
"function" : "high\_sum",  
"field\_name" : "netflow.in\_permanent\_bytes",  
"partition\_field\_name" : "src\_hostname.keyword",  
"detector\_rules" : [],  
"detector\_index" : 0  
}  
],  
"influencers" : [  
"src\_hostname.keyword",  
"dst\_port\_name.keyword",  
"dst\_hostname.keyword"  
]  
},  
"data\_description" : {  
"time\_field" : "@timestamp",  
"time\_format" : "epoch\_ms"  
},  
"model\_snapshot\_retention\_days" : 1,  
"model\_snapshot\_id" : "1507122060",  
"results\_index\_name" : "custom-bytes\_usage"  
}  
]  
}

Thanks in advance,  
Raj

---

<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:** [October 4, 2017, 2:00pm UTC](https://discuss.elastic.co/t/machine-learning-getting-alert-while-creating-a-new-job/102665/4 "2017-10-04T14:00:18Z")

</div>

There's nothing obvious wrong with your job config, so the next ask would be to have you look in the elasticsearch.log file for the messages at the time that you get this error in the UI. I'm guessing a more descriptive message will be had there than what's shown in the UI.

Please post those messages here.

---

<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:** [November 1, 2017, 2:00pm UTC](https://discuss.elastic.co/t/machine-learning-getting-alert-while-creating-a-new-job/102665/5 "2017-11-01T14:00:19Z")

</div>

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