# Application detection Rule validates but is not working de facto

**URL:** <https://community.dynatrace.com/t/application-detection-rule-validates-but-is-not-working-de-facto/33946>\
**Category:** Real User Monitoring\
**Tags:** real-user-monitoring-classic, application-rules, application-monitoring\
**Created:** [January 31, 2022, 4:27pm UTC](https://community.dynatrace.com/t/application-detection-rule-validates-but-is-not-working-de-facto/33946 "2022-01-31T16:27:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ingrida](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/ingrida/32/13926_2.png) [@Ingrida](https://community.dynatrace.com/u/Ingrida)\
**Post date:** [January 31, 2022, 4:27pm UTC](https://community.dynatrace.com/t/application-detection-rule-validates-but-is-not-working-de-facto/33946/1 "2022-01-31T16:27:45Z")

</div>

Hi DT Community!

We are trying to define application for certain Domain (one) / URL’s (multiple) but we are failing so far.

Configuration: we habe multiple applications which use same domain but different URL’s:

[https://extranet-dev.login.companyname.org/application1/…](https://extranet-dev.login.companyname.org/application1)

[https://extranet-dev.login.companyname.org/application2/](https://extranet-dev.login.companyname.org/application2/)…

…

We are trying to define application(s) to catch them.

However, definition per URL (All URLs starting with [https://extranet-dev.login.companyname.org/application1 )](https://extranet-dev.login.companyname.org/application1)&nbsp;does not work:&nbsp;If we use validation it identifies it properly, but de facto traffic keeps going to Default application.

We habe urgent action to do on extranet and need to deactivate RUM for it, so we decided to define application Extranet to put all of them in one bucket. However, none of these works either:

Domains that equal&nbsp;[extranet-dev.login.companyname.org](https://extranet-dev.login.companyname.org/application1)

All domains containing&nbsp;[extranet-dev.login.companyname.org](https://extranet-dev.login.companyname.org/application1)

All domains starting with [extranet-dev.login.companyname.org](https://extranet-dev.login.companyname.org/application1)

All URLs starting with [https://extranet-dev.login.companyname.org](https://extranet-dev.login.companyname.org/application1)

All URLs containing [extranet-dev.login.companyname.org](https://extranet-dev.login.companyname.org/application1)

None of them seems to work 😞

We have some other definitions based on Domain that equal and some of them work.

Any ideas what is going on here?

Thanks!

Ingrida

---

<div class="post-metadata">

**Author:** ![henk\_stobbe](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/henk_stobbe/32/30434_2.png) [@henk\_stobbe](https://community.dynatrace.com/u/henk_stobbe)\
**Post date:** [February 19, 2022, 10:42am UTC](https://community.dynatrace.com/t/application-detection-rule-validates-but-is-not-working-de-facto/33946/2 "2022-02-19T10:42:13Z")

</div>

hello,

maybe this helps?

[https://community.dynatrace.com/t5/Dynatrace-Open-Q-A/Nice-to-know-application-detection-rule-failes/td-p/181023](https://community.dynatrace.com/topic/181023)

KR Henk

---

<div class="post-metadata">

**Author:** ![Ingrida](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/ingrida/32/13926_2.png) [@Ingrida](https://community.dynatrace.com/u/Ingrida)\
**Post date:** [February 21, 2022, 11:58am UTC](https://community.dynatrace.com/t/application-detection-rule-validates-but-is-not-working-de-facto/33946/3 "2022-02-21T11:58:12Z")

</div>

Hi [@henk\_stobbe](https://community.dynatrace.com/user/11427),

Thanks for the proposal.

We actually kinda found workaround by transforming the rules to the target host which&nbsp; actually process the request (so solution as in the link above), but it is hard to see it as a solution becauce:

- _It’s not what we see in Dynatrace UI_. It’s domain name we see, not host:port. I am even not sure how to find the port if we do&nbsp; not know it f.e. An on the top, extracting the domain to a new applicatino will not work here either, as recommended way in DT docs. We have hundreds of applications, each in multiple stages…

- _It does not really scale._ It will hit for us 1000 rules limit quite fast (as we have quite&nbsp; number of applications to define and hosts to handle)

- _It comes with high maintenace costs_. If behind the LB (which is hinding behind domain name) infrastructure gets extended or replaces, rules needs to be reviewed otherwise we will miss traffic.

I just wonder if we can “tune” bit more with, for example,&nbsp; custom RUM injection rules to archieve catching directly URL’s…

Anyway, thanks for the hint!

Best Regards,

Ingrida
