# Indicator matching Rules

**URL:** <https://discuss.elastic.co/t/indicator-matching-rules/302346>\
**Category:** Kibana\
**Created:** [April 13, 2022, 2:12pm UTC](https://discuss.elastic.co/t/indicator-matching-rules/302346 "2022-04-13T14:12:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![shinobu](https://avatars.discourse-cdn.com/v4/letter/s/51bf81/32.png) [@shinobu](https://discuss.elastic.co/u/shinobu)\
**Post date:** [April 13, 2022, 2:12pm UTC](https://discuss.elastic.co/t/indicator-matching-rules/302346/1 "2022-04-13T14:12:18Z")

</div>

Hello,

I recently configured an Indicator Matching Rule that creates alarms if any indicator is found. The issue with this is that the indicator are matched partially. For instance if I have the indicator something.q77.eu and a log entry of ecsc2025.eu it results in a match bc "eu" of the indicator is found in the logentry.

Any way to get an exact match?

Best Regards.

---

<div class="post-metadata">

**Author:** ![Marius\_Dragomir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marius_dragomir/32/42087_2.png) [@Marius\_Dragomir](https://discuss.elastic.co/u/Marius_Dragomir)\
**Post date:** [April 20, 2022, 5:23pm UTC](https://discuss.elastic.co/t/indicator-matching-rules/302346/2 "2022-04-20T17:23:12Z")

</div>

This is due to the way you save the fields in Elasticsearch, they should be saved as a keyword field instead of text. Text analyzes the field and spits it by usual separators like spaces or dots.

---

<div class="post-metadata">

**Author:** ![shinobu](https://avatars.discourse-cdn.com/v4/letter/s/51bf81/32.png) [@shinobu](https://discuss.elastic.co/u/shinobu)\
**Post date:** [April 22, 2022, 8:46am UTC](https://discuss.elastic.co/t/indicator-matching-rules/302346/3 "2022-04-22T08:46:11Z")

</div>

Elasticsearch is also creating keyword fields for every field in the index. Is it enough to just select they Keyword variant or do I have to keep something else in mind?

---

<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:** [May 20, 2022, 8:46am UTC](https://discuss.elastic.co/t/indicator-matching-rules/302346/4 "2022-05-20T08:46:48Z")

</div>

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