# Autotag via Web Application Name Pattern

**URL:** <https://community.dynatrace.com/t/autotag-via-web-application-name-pattern/40240>\
**Category:** Real User Monitoring\
**Tags:** real-user-monitoring-classic\
**Created:** [June 16, 2023, 4:42am UTC](https://community.dynatrace.com/t/autotag-via-web-application-name-pattern/40240 "2023-06-16T04:42:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alfred-Le](https://avatars.discourse-cdn.com/v4/letter/a/ccd318/32.png) [@Alfred-Le](https://community.dynatrace.com/u/Alfred-Le)\
**Post date:** [June 16, 2023, 4:42am UTC](https://community.dynatrace.com/t/autotag-via-web-application-name-pattern/40240/1 "2023-06-16T04:42:23Z")

</div>

Hello!  
I was looking to create tags based off&nbsp;_ **Web Application Name Pattern** _s.  
I.e. Application Detection Rules

However, I’m seeing inconsistent behaviour.

When I try a&nbsp; **Contains** match on&nbsp;_local_, it fails to match against&nbsp;_ **localhost** _

 ![AlfredLe_0-1686890413012.png](https://global.discourse-cdn.com/dynatrace/original/3X/3/1/3135991753bfced8278b4b8405cb657c526408f9.png)

However, when I try to match against&nbsp;_virt_, it has no issues matching with&nbsp;_ **test-virtualbox** __._

 ![AlfredLe_1-1686890482710.png](https://global.discourse-cdn.com/dynatrace/original/3X/7/c/7cdee36b95ad980f3ae00e8198c537e228b3efaf.png)

Any ideas as to why I’m seeing this inconsistency?

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:** [July 7, 2023, 1:10pm UTC](https://community.dynatrace.com/t/autotag-via-web-application-name-pattern/40240/2 "2023-07-07T13:10:43Z")

</div>

So this ‘inconsistency’ is a misnomer. Your Management Zone is looking at the Web Application Name:

 ![ChadTurner_1-1688735394984.png](https://global.discourse-cdn.com/dynatrace/original/3X/c/9/c9382eddba47e5e4d9770e00681a930077e7cba7.png)

Dynatrace Management Zones will not qualify the segments as the name of the web application such as the web app detection rule = \<Value\>

Granted, if this is a new feature that allows you to detect the criteria, then yes it should work. My only question for you would be, “When was that application active from the localhost?” Notice the blurb about that last 72 hours. Was the application transversed via that localhost in the last 72 hours?
