# Log monitoring for ActiveGate synthetic log

**URL:** <https://community.dynatrace.com/t/log-monitoring-for-activegate-synthetic-log/18763>\
**Category:** Alerting\
**Tags:** problem-detection, problem-notification, log-monitoring-class, problems-classic\
**Created:** [March 12, 2020, 12:38pm UTC](https://community.dynatrace.com/t/log-monitoring-for-activegate-synthetic-log/18763 "2020-03-12T12:38:22Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![AK](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/ak/32/164_2.png) [@AK](https://community.dynatrace.com/u/AK)\
**Post date:** [March 12, 2020, 12:38pm UTC](https://community.dynatrace.com/t/log-monitoring-for-activegate-synthetic-log/18763/1 "2020-03-12T12:38:22Z")

</div>

Hi,

How can we monitor active gate logs?

Thanks…

---

<div class="post-metadata">

**Author:** ![dave\_mauney](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/dave_mauney/32/27784_2.png) [@dave\_mauney](https://community.dynatrace.com/u/dave_mauney)\
**Post date:** [March 12, 2020, 3:58pm UTC](https://community.dynatrace.com/t/log-monitoring-for-activegate-synthetic-log/18763/2 "2020-03-12T15:58:04Z")

</div>

Can you be more specific about what you are trying to accomplish exactly? My initial response based on my interpretation of your question would be to suggest deploying a OneAgent on the Environment ActiveGate you have configured for Internal Synthetics.

---

<div class="post-metadata">

**Author:** ![AK](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/ak/32/164_2.png) [@AK](https://community.dynatrace.com/u/AK)\
**Post date:** [March 12, 2020, 6:09pm UTC](https://community.dynatrace.com/t/log-monitoring-for-activegate-synthetic-log/18763/3 "2020-03-12T18:09:51Z")

</div>

Hi Dave,

We have a requirement where customer expecting some more details under problem notification in case of failure of HTTP monitor.

HTTP monitor has post execution script with some conditions. The fail condition added in if else should populate under problem notification. More details are posted in question. Please find the link [here](https://answers.dynatrace.com/spaces/482/dynatrace-open-qa/questions/236262/details-in-problem-notification.html).

I have installed oneagent on the active gate machine and configured synthetic log file via “Configure more logs” section. Now I wanted to know, how we can use these logs to get alerts/problem notification along with desired content?

Thanks…

---

<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:** [March 12, 2020, 7:20pm UTC](https://community.dynatrace.com/t/log-monitoring-for-activegate-synthetic-log/18763/4 "2020-03-12T19:20:20Z")

</div>

You can do this by going to the settings\>Log Monitoring\>Events. From there you can configure the rules for events and you can set them to initiate alerts within the UI just like you have seen for anomalies on servers.

 ![24114-log-events.jpg](https://global.discourse-cdn.com/dynatrace/original/3X/2/8/287b3a823697b1e2dea48ee8b11597e33bd8623b.jpeg)

---

<div class="post-metadata">

**Author:** ![AK](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/ak/32/164_2.png) [@AK](https://community.dynatrace.com/u/AK)\
**Post date:** [March 13, 2020, 7:41am UTC](https://community.dynatrace.com/t/log-monitoring-for-activegate-synthetic-log/18763/5 "2020-03-13T07:41:10Z")

</div>

Hi Clad,

Defined one event like below but nothing is showing up in Pattern Occurrence graph.

Any clue why it is happening.

 ![24162-1584085264671.png](https://global.discourse-cdn.com/dynatrace/original/3X/0/e/0e404cbecf4883b54ee1aaa12a392857cf94a38d.png)

Thanks…

---

<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:** [March 13, 2020, 12:04pm UTC](https://community.dynatrace.com/t/log-monitoring-for-activegate-synthetic-log/18763/6 "2020-03-13T12:04:51Z")

</div>

oh sweet, it looks like you’ve got it all set up. Now you just have to wait for the issue to arise and the occurrence will be shown in the graph and or by an alert depending on how you have it set up. That looks great so far! Has the event happened since you set the log detection rule?

---

<div class="post-metadata">

**Author:** ![AK](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/ak/32/164_2.png) [@AK](https://community.dynatrace.com/u/AK)\
**Post date:** [March 13, 2020, 12:55pm UTC](https://community.dynatrace.com/t/log-monitoring-for-activegate-synthetic-log/18763/7 "2020-03-13T12:55:45Z")

</div>

No..that is the dilemma now..I have made HTTP monitor fail forcefully. But still No event appearing on graph.

---

<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:** [March 13, 2020, 1:01pm UTC](https://community.dynatrace.com/t/log-monitoring-for-activegate-synthetic-log/18763/8 "2020-03-13T13:01:38Z")

</div>

can you verify in the Activegate log you are monitoring that the string is present with that forced fail, and that the string matches what you put into the log detection rule?

---

<div class="post-metadata">

**Author:** ![AK](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/ak/32/164_2.png) [@AK](https://community.dynatrace.com/u/AK)\
**Post date:** [March 13, 2020, 1:08pm UTC](https://community.dynatrace.com/t/log-monitoring-for-activegate-synthetic-log/18763/9 "2020-03-13T13:08:25Z")

</div>

Yes I checked it..String is absolutely present in the logs.Please see the attached sreenshot.

 ![untitled.jpg](https://global.discourse-cdn.com/dynatrace/original/3X/f/3/f3e17cc3a058677b7eb190dde3dfbe4013ac527e.jpeg)

---

<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:** [March 13, 2020, 1:36pm UTC](https://community.dynatrace.com/t/log-monitoring-for-activegate-synthetic-log/18763/10 "2020-03-13T13:36:12Z")

</div>

thats good. .and that log file is showing up in Dynatrace on the respected host via the oneagent correct?

---

<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:** [March 13, 2020, 1:43pm UTC](https://community.dynatrace.com/t/log-monitoring-for-activegate-synthetic-log/18763/11 "2020-03-13T13:43:31Z")

</div>

I would also recommend matching the Syntax, just to be sure that its not case sensitive.

 ![24155-service-1-down.jpg](https://global.discourse-cdn.com/dynatrace/original/3X/4/1/41278548ccddb0a324b56a69e2992e42d8ba6dbe.jpeg)

---

<div class="post-metadata">

**Author:** ![AK](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/ak/32/164_2.png) [@AK](https://community.dynatrace.com/u/AK)\
**Post date:** [March 13, 2020, 1:47pm UTC](https://community.dynatrace.com/t/log-monitoring-for-activegate-synthetic-log/18763/12 "2020-03-13T13:47:56Z")

</div>

Yes. Log file is showing up. Please check the attached screenshot.

In fact, in current setting it (down word) is in uppercase only still no desired result.

 ![untitled1.jpg](https://global.discourse-cdn.com/dynatrace/original/3X/2/0/20543735cae3549e93b8418bd13c1187df38e0db.jpeg)

---

<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:** [March 13, 2020, 1:55pm UTC](https://community.dynatrace.com/t/log-monitoring-for-activegate-synthetic-log/18763/13 "2020-03-13T13:55:40Z")

</div>

can you set it to the other log file just to see if it captures anything as the log file you send is “Synthetic.0.0.log”

 ![24166-log-1.jpg](https://global.discourse-cdn.com/dynatrace/original/2X/7/7423e698df270a78e2a3c8c397491835e6240bf2.jpeg)

---

<div class="post-metadata">

**Author:** ![AK](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/ak/32/164_2.png) [@AK](https://community.dynatrace.com/u/AK)\
**Post date:** [March 13, 2020, 2:17pm UTC](https://community.dynatrace.com/t/log-monitoring-for-activegate-synthetic-log/18763/14 "2020-03-13T14:17:57Z")

</div>

Good News. It’s started working. But problem notification don’t have desired information like “Service1 is DOWN”. 😞

 ![24156-1584108979621.png](https://global.discourse-cdn.com/dynatrace/original/3X/b/f/bfecb3ee083b3b8170d0820717756b6cb0cc54f3.png)

Attaching a screenshot of problem notification.

 ![24182-untitled3.jpg](https://global.discourse-cdn.com/dynatrace/original/2X/1/1e78911b3f90b35c80b040c6206935cf18f78c5c.jpeg)

Thanks…

---

<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:** [March 13, 2020, 2:32pm UTC](https://community.dynatrace.com/t/log-monitoring-for-activegate-synthetic-log/18763/15 "2020-03-13T14:32:05Z")

</div>

well that’s progress! I would tinker around with the settings as it relates to how the log events are raised and see if you can manipulate it the way you want it. otherwise we might need to put in a Request for Feature to allow you to customize the alert data inside the problem card.

If you integrate the Dynatrace Mobile app, you will be able to click into the alert and see what data is inside it as well as leave comments on it.

Also maybe if you rename the log event to s naming convention like “Application\_Message” so I would stick with a naming convention that would display “EasyTravel Service 1 Down” and that would show up on the problem card.

 ![24137-log-test.jpg](https://global.discourse-cdn.com/dynatrace/original/2X/2/2093a5b69a63c6922429f47db8f1c1d7191a5e21.jpeg)

---

<div class="post-metadata">

**Author:** ![michal\_dec](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/michal_dec/32/36641_2.png) [@michal\_dec](https://community.dynatrace.com/u/michal_dec)\
**Post date:** [March 17, 2020, 8:56am UTC](https://community.dynatrace.com/t/log-monitoring-for-activegate-synthetic-log/18763/16 "2020-03-17T08:56:21Z")

</div>

Hey [@Akshay S.](https://answers.dynatrace.com/users/30050/view.html) - unfortunately right now you can not pass text pattern used in event creation to problem notification. For metrics based on log text occurrence it’s also not possible.
