# Dynatrace Logging

**URL:** <https://community.dynatrace.com/t/dynatrace-logging/40844>\
**Category:** Logs\
**Tags:** problem-detection, logs\
**Created:** [July 24, 2023, 2:49pm UTC](https://community.dynatrace.com/t/dynatrace-logging/40844 "2023-07-24T14:49:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![swapnil](https://avatars.discourse-cdn.com/v4/letter/s/ee7513/32.png) [@swapnil](https://community.dynatrace.com/u/swapnil)\
**Post date:** [July 24, 2023, 2:49pm UTC](https://community.dynatrace.com/t/dynatrace-logging/40844/1 "2023-07-24T14:49:23Z")

</div>

some basic example of to have Dynatrace log generate when there is any request fails.

React Application as Register as Custom application.

1) Error count for each Http Error code.

2) Top most three errors.

---

<div class="post-metadata">

**Author:** ![ChadTurner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/chadturner/32/161_2.png) [@ChadTurner](https://community.dynatrace.com/u/ChadTurner)\
**Post date:** [September 8, 2023, 2:46pm UTC](https://community.dynatrace.com/t/dynatrace-logging/40844/2 "2023-09-08T14:46:19Z")

</div>

[@swapnil](https://community.dynatrace.com/user/60738)&nbsp;, you can set log alert rules via the following:

 ![ChadTurner_0-1694183950127.png](https://global.discourse-cdn.com/dynatrace/original/2X/8/82cf94eb0417b89fc75775a348349afc9607c236.png)

Keep in mind if you are Using GRAIL you will need to leverage DQL.

1 & 2 can be completed using DQL, granted I’m new to DQL so I cant give you the query for it, but maybe some other community members that are more versed in DQL can.
