# Log entry for open and close problem

**URL:** <https://community.dynatrace.com/t/log-entry-for-open-and-close-problem/56590>\
**Category:** Open Q&A\
**Tags:** problems, events, logs\
**Created:** [July 29, 2026, 10:58am UTC](https://community.dynatrace.com/t/log-entry-for-open-and-close-problem/56590 "2026-07-29T10:58:01Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![tarjei](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/tarjei/32/39196_2.png) [@tarjei](https://community.dynatrace.com/u/tarjei)\
**Post date:** [July 29, 2026, 10:58am UTC](https://community.dynatrace.com/t/log-entry-for-open-and-close-problem/56590/1 "2026-07-29T10:58:01Z")

</div>

Hi!

We have a case where a program logs to a file when it is having issues. It also tries to self remediate which it also enters into the same log.

Hence what I would like to happen is the following:

1. Detecting “Issue starting” log entry, Open Problem

2. Detecting “Issue ending” log entry, Close Problem.

Is this possible in any way?

Possibly even with Workflows?

---

<div class="post-metadata">

**Author:** ![AntonPineiro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antonpineiro/32/49_2.png) [@AntonPineiro](https://community.dynatrace.com/u/AntonPineiro)\
**Post date:** [July 29, 2026, 12:58pm UTC](https://community.dynatrace.com/t/log-entry-for-open-and-close-problem/56590/2 "2026-07-29T12:58:51Z")

</div>

Hi,

Dynatrace does not work in that way about closing log problems. Problems are opened base on log match and they are closed base on delay. You can play with delay, it means:

- Log pattern found =\> Problem is created.
- Log pattern has not been after X minutes (you can configure delay, 15 minutes, 4, hours…) =\> Problem closed.

It means, problems are not closed when another log pattern is found. They are closed when before log pattern **IS NOT found again**.

Maybe you can explore Anomaly detection or workflow. You have here a [backup example](https://docs.dynatrace.com/docs/shortlink/anomaly-detection-use-cases#missing-backups)&nbsp;. But keed in mind reading logs consume license.

And of course, you can create your custom script that read log lines and ingest data in Dynatrace.

Best regards

---

<div class="post-metadata">

**Author:** ![dylan\_taelemans](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/dylan_taelemans/32/21501_2.png) [@dylan\_taelemans](https://community.dynatrace.com/u/dylan_taelemans)\
**Post date:** [July 29, 2026, 1:17pm UTC](https://community.dynatrace.com/t/log-entry-for-open-and-close-problem/56590/3 "2026-07-29T13:17:31Z")

</div>

Could you provide an example of both an **open** and a **close** log?

That way I can check whether it’s possible to build a workflow that fits your use case.

I believe this should be possible to implement entirely within a Dynatrace workflow.  
In the workflow we could call Dynatrace api to close problems.&nbsp;  
The main challenge would be identifying a unique field that we can add to the problem when it’s created and then use later to locate the same problem when it needs to be closed.

---

<div class="post-metadata">

**Author:** ![tarjei](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/tarjei/32/39196_2.png) [@tarjei](https://community.dynatrace.com/u/tarjei)\
**Post date:** [July 29, 2026, 2:32pm UTC](https://community.dynatrace.com/t/log-entry-for-open-and-close-problem/56590/4 "2026-07-29T14:32:09Z")

</div>

That is my belief as well.

A bit sad since we are migrating from nimsoft which is an old tool and it has this functionality.

---

<div class="post-metadata">

**Author:** ![andreas\_grabner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/andreas_grabner/32/27879_2.png) [@andreas\_grabner](https://community.dynatrace.com/u/andreas_grabner)\
**Post date:** [July 29, 2026, 2:52pm UTC](https://community.dynatrace.com/t/log-entry-for-open-and-close-problem/56590/5 "2026-07-29T14:52:02Z")

</div>

What about using the Close Problems API?&nbsp;[Problems API v2 - POST close a problem — Dynatrace Docs](https://docs.dynatrace.com/docs/dynatrace-api/environment-api/problems-v2/problems/post-close)

---

<div class="post-metadata">

**Author:** ![tarjei](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/tarjei/32/39196_2.png) [@tarjei](https://community.dynatrace.com/u/tarjei)\
**Post date:** [July 29, 2026, 3:42pm UTC](https://community.dynatrace.com/t/log-entry-for-open-and-close-problem/56590/6 "2026-07-29T15:42:57Z")

</div>

Hi Andy!

Yes, that is the solution I am going for. Workflow with this API.

Would be nice if there was some other more native way, but not sure how feasible it is?

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [July 29, 2026, 8:48pm UTC](https://community.dynatrace.com/t/log-entry-for-open-and-close-problem/56590/7 "2026-07-29T20:48:31Z")

</div>

[@tarjei](https://community.dynatrace.com/user/12960)&nbsp;I’d not recommend using using the problems v2 api [@andreas\_grabner](https://community.dynatrace.com/user/146)&nbsp;suggested - first of all, it’s classic api and likely will be deprecated sooner or later. There is a simple solution:  
For log events which should open a problem, create a davis event with dt.davis.timeout set to maximum value (360 minutes). For log events which close the problem, create the same davis event event with dt.davis.timeout set to 1 (1 minute), so problem will be closed after one minute.

The challenge is to keep the problem open if the timeout is exceeded - which can be accomplished by a workflow (I only did this on Managed where you need to do it externally) - query such events (preferably add some event property) and just “resend” them.

Hope this helps.

---

<div class="post-metadata">

**Author:** ![tarjei](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/tarjei/32/39196_2.png) [@tarjei](https://community.dynatrace.com/u/tarjei)\
**Post date:** [July 30, 2026, 7:20am UTC](https://community.dynatrace.com/t/log-entry-for-open-and-close-problem/56590/8 "2026-07-30T07:20:50Z")

</div>

This sounds like a great suggestion with less required maintenance. Do you know how I ensure that the closing event and the opening event “hit” are considered the same one?

---

<div class="post-metadata">

**Author:** ![AntonPineiro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antonpineiro/32/49_2.png) [@AntonPineiro](https://community.dynatrace.com/u/AntonPineiro)\
**Post date:** [July 30, 2026, 7:23am UTC](https://community.dynatrace.com/t/log-entry-for-open-and-close-problem/56590/9 "2026-07-30T07:23:05Z")

</div>

Hi,

Is it going to consume license? It means, for scanning log patterns which close the problem.

Best regards

---

<div class="post-metadata">

**Author:** ![tarjei](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/tarjei/32/39196_2.png) [@tarjei](https://community.dynatrace.com/u/tarjei)\
**Post date:** [July 31, 2026, 11:52am UTC](https://community.dynatrace.com/t/log-entry-for-open-and-close-problem/56590/10 "2026-07-31T11:52:44Z")

</div>

I have created an RFE here:&nbsp;[RFE: Create the possibility for a log event / pattern for OPEN and a different one for CLOSE - Community Home](https://community.dynatrace.com/post/302687#M58461)

[@andreas\_grabner](https://community.dynatrace.com/user/146)&nbsp;any thoughts on the difficulty of implementing such functionality?

---

<div class="post-metadata">

**Author:** ![andreas\_grabner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/andreas_grabner/32/27879_2.png) [@andreas\_grabner](https://community.dynatrace.com/u/andreas_grabner)\
**Post date:** [July 31, 2026, 1:19pm UTC](https://community.dynatrace.com/t/log-entry-for-open-and-close-problem/56590/11 "2026-07-31T13:19:41Z")

</div>

I am not in Product Engineering - so - I cant comment on how long this would take. Lets see what the reaction is on the RFE Ticket. In the meantime I hope you got some hints here in the thread on how to move forward
