# Alert Rules - doesn't seem to process query

**URL:** <https://discuss.elastic.co/t/alert-rules-doesnt-seem-to-process-query/369433>\
**Category:** Kibana\
**Tags:** infrastructure-observability\
**Created:** [October 25, 2024, 2:24pm UTC](https://discuss.elastic.co/t/alert-rules-doesnt-seem-to-process-query/369433 "2024-10-25T14:24:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![PhilA](https://avatars.discourse-cdn.com/v4/letter/p/c6cbf5/32.png) [@PhilA](https://discuss.elastic.co/u/PhilA)\
**Post date:** [October 25, 2024, 2:24pm UTC](https://discuss.elastic.co/t/alert-rules-doesnt-seem-to-process-query/369433/1 "2024-10-25T14:24:04Z")

</div>

Hi

I have some basic alerts configured to alert when log sources stop sending. One example is monitoring logs from a number of firewalls; I simply want an alert if one fails to generate logs.

I have created the following - the logic is simple. Look for all logs with the _event.module : [vendor]\_firewall_. Then group by _observer.name_. The problem is that the first part, as shown matches logs with an observer.name of **WindowsDefenderAv** which, as the name suggests is Windows Defender logs.

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

If I search in Discover, any events with the _observer.name : WindowsDefenderAv_ have an event.module of microsoft\_defender\_endpoint. This makes sense and does not match the query in the rule. Why is this matching and generating alerts? It this a bug where the query at the top is being ignored? Or am I missing something...

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

Thanks

---

<div class="post-metadata">

**Author:** ![ahmed\_charafouddine](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ahmed_charafouddine/32/45129_2.png) [@ahmed\_charafouddine](https://discuss.elastic.co/u/ahmed_charafouddine)\
**Post date:** [October 25, 2024, 2:37pm UTC](https://discuss.elastic.co/t/alert-rules-doesnt-seem-to-process-query/369433/2 "2024-10-25T14:37:36Z")

</div>

Are you using the same data view?

---

<div class="post-metadata">

**Author:** ![PhilA](https://avatars.discourse-cdn.com/v4/letter/p/c6cbf5/32.png) [@PhilA](https://discuss.elastic.co/u/PhilA)\
**Post date:** [October 26, 2024, 5:45am UTC](https://discuss.elastic.co/t/alert-rules-doesnt-seem-to-process-query/369433/3 "2024-10-26T05:45:19Z")

</div>

When I go to Discover, I don't have a data view named Default but that is likely from me renaming them in the past - I can't remember.

Default, as defined in the rule includes logs-\* and the data view I am using is All Logs which is also logs-\* so yes, I am looking at the same data.

I don't seem to be able to edit the data view in the rule - that would simplify things as I have a data view for each main log type

Thanks
