# Can I use wildcards in Machine Learning Filter Lists

**URL:** <https://discuss.elastic.co/t/can-i-use-wildcards-in-machine-learning-filter-lists/220120>\
**Category:** Kibana\
**Tags:** elastic-stack-machine-learning\
**Created:** [February 20, 2020, 8:16am UTC](https://discuss.elastic.co/t/can-i-use-wildcards-in-machine-learning-filter-lists/220120 "2020-02-20T08:16:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![willemdh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/willemdh/32/16922_2.png) [@willemdh](https://discuss.elastic.co/u/willemdh)\
**Post date:** [February 20, 2020, 8:16am UTC](https://discuss.elastic.co/t/can-i-use-wildcards-in-machine-learning-filter-lists/220120/1 "2020-02-20T08:16:38Z")

</div>

Hello,

Noticed that the packetbeat\_rare\_server\_domain ml job has a lot of noise / false positive anomalies. Most of the server.domain values are for internal url's, so I was thinking to add a filter list to limit where the rule applies and exclude '\*.subdomain.domain'.

So are we able to use wildcards in ml filter lists?

Grtz

Willem

---

<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 20, 2020, 11:40am UTC](https://discuss.elastic.co/t/can-i-use-wildcards-in-machine-learning-filter-lists/220120/2 "2020-02-20T11:40:26Z")

</div>

> `items`  
> (Required, array of strings) The items of the filter. A wildcard `*` can be used at the beginning or the end of an item. Up to 10000 items are allowed in each filter.

> **[Create filter API | Elasticsearch Guide \[7.6\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/7.6/ml-put-filter.html)**

---

<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 19, 2020, 11:40am UTC](https://discuss.elastic.co/t/can-i-use-wildcards-in-machine-learning-filter-lists/220120/3 "2020-03-19T11:40:27Z")

</div>

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