# Application detection rules (and fallback to default application)

**URL:** <https://community.dynatrace.com/t/application-detection-rules-and-fallback-to-default-application/42393>\
**Category:** Open Q&A\
**Tags:** application-monitoring, application-detection\
**Created:** [November 1, 2023, 3:29am UTC](https://community.dynatrace.com/t/application-detection-rules-and-fallback-to-default-application/42393 "2023-11-01T03:29:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ketanmck](https://avatars.discourse-cdn.com/v4/letter/k/d07c76/32.png) [@ketanmck](https://community.dynatrace.com/u/ketanmck)\
**Post date:** [November 1, 2023, 3:29am UTC](https://community.dynatrace.com/t/application-detection-rules-and-fallback-to-default-application/42393/1 "2023-11-01T03:29:59Z")

</div>

Hi Dynatrace community

We have the following case where several applications are deployed across multiple domains:

- [https://acme-corp.example.com/applicationA](https://acme-corp.example.com/applicationA)
- [https://acme-corp.example.com/applicationB](https://acme-corp.example.com/applicationB)
- [https://acme-corp.example.com/applicationC](https://acme-corp.example.com/applicationC)
- [https://umbrella-corp.example.com/applicationA](https://umbrella-corp.example.com/applicationA)
- [https://umbrella-corp.example.com/applicationC](https://umbrella-corp.example.com/applicationC)
- [https://umbrella-corp.example.com/applicationP](https://umbrella-corp.example.com/applicationP)

As you can see, multiple customers use a different combination of applications. As far as application detection rules go, we’re defining rules like the following:

URL contains “[company-name].example.com/[applicationPath]”. However we’re noticing that the actual injection is not working as expected. What’s being injected is the default app. We’re not sure why that’s happening. Any pointers or tips appreciated.

---

<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:** [November 1, 2023, 9:39am UTC](https://community.dynatrace.com/t/application-detection-rules-and-fallback-to-default-application/42393/2 "2023-11-01T09:39:46Z")

</div>

Hi,

Rule’s order is important. I would suggest to&nbsp;[check application detection rules](https://docs.dynatrace.com/docs/shortlink/application-detection-rules)&nbsp;to know which rule you are matching.

Best regards

---

<div class="post-metadata">

**Author:** ![radek\_jasinski](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radek_jasinski/32/10432_2.png) [@radek\_jasinski](https://community.dynatrace.com/u/radek_jasinski)\
**Post date:** [November 1, 2023, 1:49pm UTC](https://community.dynatrace.com/t/application-detection-rules-and-fallback-to-default-application/42393/3 "2023-11-01T13:49:13Z")

</div>

Hi&nbsp;[@ketanmck](https://community.dynatrace.com/user/68372)

First of all, I recommend that you disable Default Application as soon as possible (Dynatrace itself also recommends this, as it can cause various problems). Additionally, I would simplify your rule and base it only on the URL part outside the main domain. Also keep in mind the priority for each rule, perhaps some overrides another.

Here are some tips:

> **[Define applications for Real User Monitoring Classic](https://docs.dynatrace.com/docs/observe/digital-experience/rum-classic/web-applications/initial-setup/define-your-applications-via-the-my-web-application-placeholder)**
>
> Learn how to define your applications following the suggested, manual, or application detection rules approach.

Radek
