# Event correlation query not generating detection alerts

**URL:** <https://discuss.elastic.co/t/event-correlation-query-not-generating-detection-alerts/271224>\
**Category:** Kibana\
**Created:** [April 26, 2021, 7:24am UTC](https://discuss.elastic.co/t/event-correlation-query-not-generating-detection-alerts/271224 "2021-04-26T07:24:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nil\_Battey\_Sannata](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nil_battey_sannata/32/87040_2.png) [@Nil\_Battey\_Sannata](https://discuss.elastic.co/u/Nil_Battey_Sannata)\
**Post date:** [April 26, 2021, 7:24am UTC](https://discuss.elastic.co/t/event-correlation-query-not-generating-detection-alerts/271224/1 "2021-04-26T07:24:51Z")

</div>

This is [prebuilt](https://github.com/elastic/detection-rules/blob/main/rules/windows/defense_evasion_defender_disabled_via_registry.toml) detection rule with event correlation. If I am executing query manually then it showing the correct hits.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/f/3/f33e6afedccc0f53a3440d789ce0809863de80f9.png)

But this is not generating any alerts.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/0/d/0d9b003658d0a57d6d4dabbf15c39d54f16fcaf5.png)

Same story with every rule with event correlation. Rules with simple query are working as expected.

---

<div class="post-metadata">

**Author:** ![Nil\_Battey\_Sannata](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nil_battey_sannata/32/87040_2.png) [@Nil\_Battey\_Sannata](https://discuss.elastic.co/u/Nil_Battey_Sannata)\
**Post date:** [April 26, 2021, 11:27am UTC](https://discuss.elastic.co/t/event-correlation-query-not-generating-detection-alerts/271224/2 "2021-04-26T11:27:07Z")

</div>

Can someone help here? Updates are here- [Event correlation query not generating detection alerts · Issue #1151 · elastic/detection-rules · GitHub](https://github.com/elastic/detection-rules/issues/1151)

---

<div class="post-metadata">

**Author:** ![Felix\_Roessel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/felix_roessel/32/41623_2.png) [@Felix\_Roessel](https://discuss.elastic.co/u/Felix_Roessel)\
**Post date:** [April 26, 2021, 3:58pm UTC](https://discuss.elastic.co/t/event-correlation-query-not-generating-detection-alerts/271224/3 "2021-04-26T15:58:17Z")

</div>

@jamesspi Could you help as you also worked on the github issue?

---

<div class="post-metadata">

**Author:** ![jamesspi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jamesspi/32/24479_2.png) [@jamesspi](https://discuss.elastic.co/u/jamesspi)\
**Post date:** [April 26, 2021, 4:10pm UTC](https://discuss.elastic.co/t/event-correlation-query-not-generating-detection-alerts/271224/4 "2021-04-26T16:10:43Z")

</div>

Hey @Felix_Roessel , this is resolved now - the sysmon module does not populate `event.ingested`, causing the detection rule to miss, since it's specified as an override field. The solution is to remove the override.

---

<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 24, 2021, 4:11pm UTC](https://discuss.elastic.co/t/event-correlation-query-not-generating-detection-alerts/271224/5 "2021-05-24T16:11:20Z")

</div>

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