# Custom Rules not working

**URL:** <https://discuss.elastic.co/t/custom-rules-not-working/258421>\
**Category:** SIEM\
**Tags:** elastic-stack-alerting\
**Created:** [December 11, 2020, 2:10pm UTC](https://discuss.elastic.co/t/custom-rules-not-working/258421 "2020-12-11T14:10:34Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![borna\_talebi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/borna_talebi/32/76317_2.png) [@borna\_talebi](https://discuss.elastic.co/u/borna_talebi)\
**Post date:** [December 15, 2020, 11:44am UTC](https://discuss.elastic.co/t/custom-rules-not-working/258421/5 "2020-12-15T11:44:56Z")

</div>

> [@Yuriy\_Tsarenko](#):
>
> But what if we would like to use custom rules ?

You need to use ECS for your mapping when creating custom rules. I had a [similar problem](https://discuss.elastic.co/t/siem-rule-not-working-for-custom-query/253895) too.

---

_[View the full topic](https://discuss.elastic.co/t/custom-rules-not-working/258421)._
