# Use Tags in custom Alerts

**URL:** <https://community.dynatrace.com/t/use-tags-in-custom-alerts/11609>\
**Category:** Alerting\
**Tags:** tagging, problems-classic\
**Created:** [March 20, 2018, 12:03pm UTC](https://community.dynatrace.com/t/use-tags-in-custom-alerts/11609 "2018-03-20T12:03:59Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![gerald\_madlsper](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/gerald_madlsper/32/22365_2.png) [@gerald\_madlsper](https://community.dynatrace.com/u/gerald_madlsper)\
**Post date:** [March 20, 2018, 12:03pm UTC](https://community.dynatrace.com/t/use-tags-in-custom-alerts/11609/1 "2018-03-20T12:03:59Z")

</div>

Hi,

I tried to setup an alert on the slowdown of a web request to an external system which is not monitored by dynatrace.

I first had a look on the Request and found the Tag Request type there (that is a valid tag isn’t it?)

 ![16178-20180320.png](https://global.discourse-cdn.com/dynatrace/original/2X/0/01919187f46f56158be2de62950f030cbb85c1db.png)

After that I opened the settings and navigated to the alerting profiles. I set up a new profile with a custom rule. But when I try to filter on the request type tag it won’t allow that. Can somebody help me out?

regards,

Gerald

---

<div class="post-metadata">

**Author:** ![steven\_ortega](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/steven_ortega/32/27831_2.png) [@steven\_ortega](https://community.dynatrace.com/u/steven_ortega)\
**Post date:** [March 20, 2018, 2:40pm UTC](https://community.dynatrace.com/t/use-tags-in-custom-alerts/11609/2 "2018-03-20T14:40:42Z")

</div>

Hi [@Gerald M.](https://answers.dynatrace.com/users/6633/view.html),

In the settings, did you add the new custom tag under Manually Applied Tags or Automatically Applied Tags? If I remember right, I had the same issue if I added it to automatically applied tags instead of manually applied tags, but I’ll double check that.

---

<div class="post-metadata">

**Author:** ![mrc15816](https://avatars.discourse-cdn.com/v4/letter/m/f05b48/32.png) [@mrc15816](https://community.dynatrace.com/u/mrc15816)\
**Post date:** [March 20, 2018, 8:01pm UTC](https://community.dynatrace.com/t/use-tags-in-custom-alerts/11609/3 "2018-03-20T20:01:26Z")

</div>

Hello [@Gerald M.](https://answers.dynatrace.com/users/6633/view.html)

We were able to create custom alerts and below is what we did

1. Settings → Log analytics → Log-based events-\>Created a detection rule for custom log events

2. Settings → Tags → Automatically applied tags → Add new custom tag (we created ours based on the process group and executable)

3. Settings → Alerting profiles → Create new alerting rule → ’ Filter problems by tag(Only include entities that have any tags)

(Custom alert (Immediate; Tag that was created and linked to the Process Group)

Hope the above steps will help you to get what you need.

---

<div class="post-metadata">

**Author:** ![gerald\_madlsper](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/gerald_madlsper/32/22365_2.png) [@gerald\_madlsper](https://community.dynatrace.com/u/gerald_madlsper)\
**Post date:** [March 21, 2018, 7:00am UTC](https://community.dynatrace.com/t/use-tags-in-custom-alerts/11609/4 "2018-03-21T07:00:50Z")

</div>

Hi [@Rocky O.](https://answers.dynatrace.com/users/22682/view.html) and [@Venkata C.](https://answers.dynatrace.com/users/23157/view.html)

I guess your comments already answered my first question.

So the thing you can see on my first picture is no Tag i can user for alerting ? I mean the Request Type: itsmprod.

Because this one was generated without any configuration.

The second question would be how I can tag a request to an external domain with the external domain name?

I tried with an automatically tag and a condition on public domain name and also remote endpoint. But I guess those apply to the public domain name of the monitored service and not the external one, right?

regards,

Gerald

---

<div class="post-metadata">

**Author:** ![mrc15816](https://avatars.discourse-cdn.com/v4/letter/m/f05b48/32.png) [@mrc15816](https://community.dynatrace.com/u/mrc15816)\
**Post date:** [March 22, 2018, 3:59pm UTC](https://community.dynatrace.com/t/use-tags-in-custom-alerts/11609/5 "2018-03-22T15:59:58Z")

</div>

Hello [@Gerald M.](https://answers.dynatrace.com/users/6633/view.html)

I have couple questions

1. Are you able to see data under Settings → Log analytics → Log-based events ‘Detection rules for custom log events’ ? ( for us we see a bar when the event occurs and we have select Generate the issue under Log Error Problem)

2. Settings → Tags → Automatically applied tags → Rules, when you click preview do you see any results? ( for us we see the executable shown, that indicates the rule is valid )

---

<div class="post-metadata">

**Author:** ![gerald\_madlsper](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/gerald_madlsper/32/22365_2.png) [@gerald\_madlsper](https://community.dynatrace.com/u/gerald_madlsper)\
**Post date:** [March 23, 2018, 7:24am UTC](https://community.dynatrace.com/t/use-tags-in-custom-alerts/11609/6 "2018-03-23T07:24:19Z")

</div>

[Hi @Venkata C.](https://answers.dynatrace.com/users/23157/view.html)

Thank you for your reply.

1. No that screen seems to be empty. I only have a button saying “Add new detection rule for custom log events”. But I guess the thing I want to track is not a log event

2. The Preview Button is very helpful. I tried several settings, but I found no condition mapping my scenario.

What I want to reach is an alert if the request type itsmprod within the service “Requests to public network” has a problem. I’m able to tag the service itself, but I find no way to alert only on the one type of requests. But I can see Problems because of the slowdown of the request type itsmprod.

regards,

Gerald

---

<div class="post-metadata">

**Author:** ![fabio\_finger](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/fabio_finger/32/12345_2.png) [@fabio\_finger](https://community.dynatrace.com/u/fabio_finger)\
**Post date:** [March 23, 2018, 1:40pm UTC](https://community.dynatrace.com/t/use-tags-in-custom-alerts/11609/7 "2018-03-23T13:40:04Z")

</div>

Isnt this “itsmprod” a request attribute? Request attributes cannot be used as tags for the alerting profile. To check go to Settings\>Server-side\>Request Attributes. You will need to do a Manual Tag or Automatic Tag rule to use with the custom alerting profile.

---

<div class="post-metadata">

**Author:** ![gerald\_madlsper](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/gerald_madlsper/32/22365_2.png) [@gerald\_madlsper](https://community.dynatrace.com/u/gerald_madlsper)\
**Post date:** [March 27, 2018, 1:42pm UTC](https://community.dynatrace.com/t/use-tags-in-custom-alerts/11609/8 "2018-03-27T13:42:06Z")

</div>

Hi @Fabio F.,

No it’s no request attribute, at least it is not listed within the section you wrote above.

I didn’t configure that RequestType on my own, it is displayed from installation on for every Request to external hosts.

How can I setup a manual or automatic tag on that request attribute, so that I’m able to user it within the alerting profile?

regards,

Gerald

---

<div class="post-metadata">

**Author:** ![gerald\_madlsper](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/gerald_madlsper/32/22365_2.png) [@gerald\_madlsper](https://community.dynatrace.com/u/gerald_madlsper)\
**Post date:** [March 28, 2018, 6:07am UTC](https://community.dynatrace.com/t/use-tags-in-custom-alerts/11609/9 "2018-03-28T06:07:29Z")

</div>

Hi,

I found the solution now.

I had to mark the third party service as a separate service.

 ![16300-20180328-separateservice.png](https://global.discourse-cdn.com/dynatrace/original/3X/8/7/87399a3e19e51e2e165fe3a495cdf6c36b8e2ef1.png)

Afterwards I could apply a manual tag on it.

regards,

Gerald
