# How can be use the alerting for a data query

**URL:** <https://discuss.elastic.co/t/how-can-be-use-the-alerting-for-a-data-query/327671>\
**Category:** Kibana\
**Created:** [March 14, 2023, 1:53pm UTC](https://discuss.elastic.co/t/how-can-be-use-the-alerting-for-a-data-query/327671 "2023-03-14T13:53:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![allaboutopensource](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/allaboutopensource/32/118435_2.png) [@allaboutopensource](https://discuss.elastic.co/u/allaboutopensource)\
**Post date:** [March 14, 2023, 1:53pm UTC](https://discuss.elastic.co/t/how-can-be-use-the-alerting-for-a-data-query/327671/1 "2023-03-14T13:53:30Z")

</div>

we have to setup an alert for all the windows event logs which are under the "error" types. I was able to create the dashboard for the windows event logs which eventually shows me the count of the event logs which has "error" messages but I would like to get alerted as well for that count.

---

<div class="post-metadata">

**Author:** ![jughosta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jughosta/32/107160_2.png) [@jughosta](https://discuss.elastic.co/u/jughosta)\
**Post date:** [April 6, 2023, 12:32pm UTC](https://discuss.elastic.co/t/how-can-be-use-the-alerting-for-a-data-query/327671/2 "2023-04-06T12:32:50Z")

</div>

Hi @allaboutopensource and welcome to the community!

This can be achieved by using alerts with "Elasticsearch query" type for example:

> **[Alerting | Kibana Guide \[8.7\] | Elastic](https://www.elastic.co/guide/en/kibana/current/alerting-getting-started.html)**
>
> Kibana provides you with several options to share \*Discover\* saved searches, dashboards, \*Visualize Library\* visualizations, and \*Canvas\* workpads with others, or on a website.

> **[Elasticsearch query | Kibana Guide \[8.7\] | Elastic](https://www.elastic.co/guide/en/kibana/current/rule-type-es-query.html)**
>
> Kibana provides you with several options to share \*Discover\* saved searches, dashboards, \*Visualize Library\* visualizations, and \*Canvas\* workpads with others, or on a website.

---

<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 4, 2023, 12:33pm UTC](https://discuss.elastic.co/t/how-can-be-use-the-alerting-for-a-data-query/327671/3 "2023-05-04T12:33:25Z")

</div>

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