# Log events vs log metrics combined with metric events

**URL:** <https://community.dynatrace.com/t/log-events-vs-log-metrics-combined-with-metric-events/52063>\
**Category:** Logs\
**Tags:** log-processing, logs\
**Created:** [June 12, 2025, 11:46am UTC](https://community.dynatrace.com/t/log-events-vs-log-metrics-combined-with-metric-events/52063 "2025-06-12T11:46:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![henk\_stobbe](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/henk_stobbe/32/30434_2.png) [@henk\_stobbe](https://community.dynatrace.com/u/henk_stobbe)\
**Post date:** [June 12, 2025, 11:46am UTC](https://community.dynatrace.com/t/log-events-vs-log-metrics-combined-with-metric-events/52063/1 "2025-06-12T11:46:56Z")

</div>

Hello All,

I notice people creating log metrics with metric events, after this they set a threshold of above 0 then please create an event.

Should in general this not be done with a log event, with the same options?

Who has any great insights on this?

KR Henk

---

<div class="post-metadata">

**Author:** ![henk\_stobbe](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/henk_stobbe/32/30434_2.png) [@henk\_stobbe](https://community.dynatrace.com/u/henk_stobbe)\
**Post date:** [June 12, 2025, 11:49am UTC](https://community.dynatrace.com/t/log-events-vs-log-metrics-combined-with-metric-events/52063/2 "2025-06-12T11:49:20Z")

</div>

Addon it is called a log alert,

> **[Set up alerts based on events extracted from logs](https://docs.dynatrace.com/docs/analyze-explore-automate/logs/lma-use-cases/lma-alert-log-based-events)**
>
> How to create and configure Davis problems and alerts with events based on logs.

---

<div class="post-metadata">

**Author:** ![g\_kat](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/g_kat/32/34573_2.png) [@g\_kat](https://community.dynatrace.com/u/g_kat)\
**Post date:** [June 12, 2025, 11:57am UTC](https://community.dynatrace.com/t/log-events-vs-log-metrics-combined-with-metric-events/52063/3 "2025-06-12T11:57:31Z")

</div>

Hi,

The main difference in my mind is that with the log metric you can set up a sliding window on the metric event, in case you don’t need the alert the first time the log occurs. With a log event you don’t get that flexibility.

In the case I want a single log of “0” to generate an alert then I would go for a log event too.

Regards,

George

---

<div class="post-metadata">

**Author:** ![StrangerThing](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/strangerthing/32/12182_2.png) [@StrangerThing](https://community.dynatrace.com/u/StrangerThing)\
**Post date:** [June 12, 2025, 1:41pm UTC](https://community.dynatrace.com/t/log-events-vs-log-metrics-combined-with-metric-events/52063/4 "2025-06-12T13:41:10Z")

</div>

Correct. If you want to alert on a single log entry, log event is the way to go. If you want to run anomaly detection or track logs that happen more frequently over time, log metric with metric event or Davis Anomaly Detector is the way to go.
