# Monitoring a log among 5 minutes on Grail

**URL:** <https://community.dynatrace.com/t/monitoring-a-log-among-5-minutes-on-grail/42493>\
**Category:** DQL\
**Tags:** dql\
**Created:** [November 7, 2023, 7:17pm UTC](https://community.dynatrace.com/t/monitoring-a-log-among-5-minutes-on-grail/42493 "2023-11-07T19:17:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Raul\_CL](https://avatars.discourse-cdn.com/v4/letter/r/7feea3/32.png) [@Raul\_CL](https://community.dynatrace.com/u/Raul_CL)\
**Post date:** [November 7, 2023, 7:17pm UTC](https://community.dynatrace.com/t/monitoring-a-log-among-5-minutes-on-grail/42493/1 "2023-11-07T19:17:38Z")

</div>

Hi everyone,  
Our client needs to monitor a log, where the only thing he needs is to know if the log was written or not, among 5 minutes. If the log didn’t receive any input in 5 minutes, Dynatrace should alert or show a number (probably 0) in red in a dashboard.  
I was wondering if somobody could help me with this request, please.  
At this moment the log is already ingesting in Grail.

---

<div class="post-metadata">

**Author:** ![mizso74](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mizso74/32/41729_2.png) [@mizso74](https://community.dynatrace.com/u/mizso74)\
**Post date:** [November 7, 2023, 9:27pm UTC](https://community.dynatrace.com/t/monitoring-a-log-among-5-minutes-on-grail/42493/2 "2023-11-07T21:27:28Z")

</div>

Hi&nbsp;[@Raul\_CL](https://community.dynatrace.com/user/68210),

Maybe it is not the perfect and clean solution but I thnik it can be use in Managed and Saas also.

I would create log meteic like this: Count the log lines with the dimension of log.source. About this metric you could create a table dashboar tile split by log.source. You can set a 5 mins filter to the table and you can colorized the thresholds…

 ![Mizs_0-1699391790284.png](https://global.discourse-cdn.com/dynatrace/original/2X/5/5078dce8f57fb3ea85fb525961a99cf74f0cc42d.png)

And If you want an problem notification aslo then you shouls create a metric event from log.line.count like this:

 ![Mizs_1-1699392088004.png](https://global.discourse-cdn.com/dynatrace/original/2X/5/5e303a6a17822fe92f52b9f09b99ad9803107b93.png)

I have not tried it, it is an idea. Could you please check it? Please consider the DDU consumption of the log metric.

I hope it helps.

Best regards,

Mizső

---

<div class="post-metadata">

**Author:** ![Raul\_CL](https://avatars.discourse-cdn.com/v4/letter/r/7feea3/32.png) [@Raul\_CL](https://community.dynatrace.com/u/Raul_CL)\
**Post date:** [November 10, 2023, 2:51am UTC](https://community.dynatrace.com/t/monitoring-a-log-among-5-minutes-on-grail/42493/3 "2023-11-10T02:51:53Z")

</div>

Thank you very much&nbsp;Mizső.&nbsp; Your idea worked perfectly.

---

<div class="post-metadata">

**Author:** ![DanielS](https://avatars.discourse-cdn.com/v4/letter/d/3ab097/32.png) [@DanielS](https://community.dynatrace.com/u/DanielS)\
**Post date:** [December 14, 2023, 5:58pm UTC](https://community.dynatrace.com/t/monitoring-a-log-among-5-minutes-on-grail/42493/4 "2023-12-14T17:58:13Z")

</div>

Great workaround [@Mizső](https://community.dynatrace.com/user/47783) !!!💪
