# ML job - detect new port

**URL:** <https://discuss.elastic.co/t/ml-job-detect-new-port/263107>\
**Category:** SIEM\
**Tags:** elastic-stack-machine-learning\
**Created:** [February 3, 2021, 10:46am UTC](https://discuss.elastic.co/t/ml-job-detect-new-port/263107 "2021-02-03T10:46:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![probson](https://avatars.discourse-cdn.com/v4/letter/p/e47c2d/32.png) [@probson](https://discuss.elastic.co/u/probson)\
**Post date:** [February 3, 2021, 10:46am UTC](https://discuss.elastic.co/t/ml-job-detect-new-port/263107/1 "2021-02-03T10:46:01Z")

</div>

Hi,

I am sending vulnerability scan results into the SIEM and trying to detect new ports scanned for an assest.

Ive tried using Rare, by field: port and partition: asset but the results are coming back empty. It could be that theres not enough data, any suggestions on what i could use?

Thanks

---

<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 3, 2021, 11:53am UTC](https://discuss.elastic.co/t/ml-job-detect-new-port/263107/2 "2021-02-03T11:53:31Z")

</div>

Yes, this is a situation in which there is likely not enough data. Have you fed at least 20 bucket\_span's worth of "normal" data for each partition before expecting to detect that which is "rare"?

---

<div class="post-metadata">

**Author:** ![probson](https://avatars.discourse-cdn.com/v4/letter/p/e47c2d/32.png) [@probson](https://discuss.elastic.co/u/probson)\
**Post date:** [February 3, 2021, 11:58am UTC](https://discuss.elastic.co/t/ml-job-detect-new-port/263107/3 "2021-02-03T11:58:39Z")

</div>

Hi,

No there is very little data at the moment, i will have to think of another solution. Each scan only runs once per month/quarter, for each scan an asset might have a small number of events for the given port.

---

<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 3, 2021, 11:59am UTC](https://discuss.elastic.co/t/ml-job-detect-new-port/263107/4 "2021-03-03T11:59:13Z")

</div>

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