# Machine Learning Watcher

**URL:** <https://discuss.elastic.co/t/machine-learning-watcher/159585>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-machine-learning\
**Created:** [December 5, 2018, 6:05pm UTC](https://discuss.elastic.co/t/machine-learning-watcher/159585 "2018-12-05T18:05:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lowdmt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lowdmt/32/30300_2.png) [@lowdmt](https://discuss.elastic.co/u/lowdmt)\
**Post date:** [December 5, 2018, 6:05pm UTC](https://discuss.elastic.co/t/machine-learning-watcher/159585/1 "2018-12-05T18:05:27Z")

</div>

Hi,

I have a metricbeat index in Elastic and have created a new machine learning job looking at cpu usage. The index is gathering data from 25 installed beats all rolled up into a single index (metricbeat-\*)

How do I create / edit the machine learning job to query say just one device out of the 25?

{  
"trigger": {  
"schedule": {  
"interval": "100s"  
}  
},  
"input": {  
"search": {  
"request": {  
"search\_type": "query\_then\_fetch",  
"indices": [  
".ml-anomalies-\*"  
],  
"types": ,  
"body": {  
"size": 0,  
"query": {  
"bool": {  
"filter": [  
{  
"term": {  
"job\_id": "system\_cpu"  
}  
},  
{  
"match\_phrase": {  
"host.name": "InsertHostnameHere?"  
}  
},  
{  
"range": {  
"timestamp": {  
"gte": "now-10m"  
}  
}  
},

---

<div class="post-metadata">

**Author:** ![lowdmt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lowdmt/32/30300_2.png) [@lowdmt](https://discuss.elastic.co/u/lowdmt)\
**Post date:** [December 5, 2018, 11:03pm UTC](https://discuss.elastic.co/t/machine-learning-watcher/159585/2 "2018-12-05T23:03:35Z")

</div>

Answered my own question - mutlimetric machine learning job

---

<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:** [January 2, 2019, 11:03pm UTC](https://discuss.elastic.co/t/machine-learning-watcher/159585/3 "2019-01-02T23:03:36Z")

</div>

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