# Can two tags have the same name?

**URL:** <https://community.dynatrace.com/t/can-two-tags-have-the-same-name/31851>\
**Category:** Open Q&A\
**Tags:** tagging\
**Created:** [June 17, 2021, 10:58pm UTC](https://community.dynatrace.com/t/can-two-tags-have-the-same-name/31851 "2021-06-17T22:58:28Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ale](https://avatars.discourse-cdn.com/v4/letter/a/f19dbf/32.png) [@Ale](https://community.dynatrace.com/u/Ale)\
**Post date:** [June 17, 2021, 10:58pm UTC](https://community.dynatrace.com/t/can-two-tags-have-the-same-name/31851/1 "2021-06-17T22:58:28Z")

</div>

I want to add a tag to two buttons of different flows but in the end the have the same functionality, can the be tagged in each flow with the same name?

---

<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:** [June 17, 2021, 11:04pm UTC](https://community.dynatrace.com/t/can-two-tags-have-the-same-name/31851/2 "2021-06-17T23:04:39Z")

</div>

Tag name Must be Unique but Values don’t need to be. For Example, it you name a tag “Application” and give it value: EasyTravel, you can tag multiple entities with that tag, but you cannot create a new tag called “Application” again. You can however add additional rules that include other values such as “NotSoEasyTravel” for a Value of “Application”

> **[Define and apply tags](https://docs.dynatrace.com/docs/manage/tags-and-metadata/setup/how-to-define-tags)**
>
> Define and apply tags manually or automatically to organize Dynatrace entities, using rule conditions based on entity properties and regular expressions.

---

<div class="post-metadata">

**Author:** ![tibebe\_m\_digafe](https://avatars.discourse-cdn.com/v4/letter/t/c0e974/32.png) [@tibebe\_m\_digafe](https://community.dynatrace.com/u/tibebe_m_digafe)\
**Post date:** [June 26, 2021, 7:04pm UTC](https://community.dynatrace.com/t/can-two-tags-have-the-same-name/31851/3 "2021-06-26T19:04:39Z")

</div>

Hello,

Ensuring tag “KV” uniqueness per entity would be a desirable feature. However, from my own experience - managed/offline cluster", there’s no enforcement and nothing can stop me to duplicate tags with the same key and same or different values. I just posted a question a minute or so ago specifically about how to differentiate auto-applied vs custom tags precisely to avoid/delete duplicates.

Thanks

 ![tibebe_m_digafe_0-1624734204154.png](https://global.discourse-cdn.com/dynatrace/original/3X/7/c/7cd00c6468690235758756ef7324073b01c91816.png)

---

<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:** [June 28, 2021, 12:08pm UTC](https://community.dynatrace.com/t/can-two-tags-have-the-same-name/31851/4 "2021-06-28T12:08:45Z")

</div>

If you hover over the tag, you will get a tool tip that says the origins of the tag, If it came from the Environment, Azure, was manually applied or automatically applied.

---

<div class="post-metadata">

**Author:** ![Vijayt](https://avatars.discourse-cdn.com/v4/letter/v/e9bcb4/32.png) [@Vijayt](https://community.dynatrace.com/u/Vijayt)\
**Post date:** [September 12, 2024, 12:57pm UTC](https://community.dynatrace.com/t/can-two-tags-have-the-same-name/31851/5 "2024-09-12T12:57:47Z")

</div>

And i have one requirement.&nbsp; want to create a dashboard for related application .&nbsp; eg . app1

all unix host, windows, remote unix tiles have added and relevant CI’s has been tagged.

problem ,is database server host multiple applicaiton databases , even single db serves multiple application.

I have created two tags&nbsp; app1:&nbsp; abc&nbsp; app1: bcd.but result is not correct.

for&nbsp; generic tag , do we have need tag key to be specificied.&nbsp; How can i create a tag for multiple values and use dashboards to dynamically filter it out

---

<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:** [September 12, 2024, 1:12pm UTC](https://community.dynatrace.com/t/can-two-tags-have-the-same-name/31851/6 "2024-09-12T13:12:42Z")

</div>

Every Tag Key will need to be unique, but the Value pair wont need to be unique. However, its important to note the functionality.

Using “Port” as a tag key, we all know it could have multiple ports. As a result, you will get a filtering sort of IP by each value in the tag segment. For example, if the ports are 9999 and 5000, the tag will read Port:9999, 5000. So you can filter on that tag, but the values will be concatenated.

This can also be seen here in an IP tag example:

 ![ChadTurner_0-1726146752855.png](https://global.discourse-cdn.com/dynatrace/original/3X/2/c/2c502eb50f5a274bbab10f23cdcb6d4f152aaf7d.png)

---

<div class="post-metadata">

**Author:** ![Vijayt](https://avatars.discourse-cdn.com/v4/letter/v/e9bcb4/32.png) [@Vijayt](https://community.dynatrace.com/u/Vijayt)\
**Post date:** [September 12, 2024, 1:23pm UTC](https://community.dynatrace.com/t/can-two-tags-have-the-same-name/31851/7 "2024-09-12T13:23:08Z")

</div>

sorry did not get you .

do i need to define tag&nbsp; port value 9000,5000&nbsp; or do i need to create tag&nbsp; port value 9000, tag port value 5000 ?

---

<div class="post-metadata">

**Author:** ![Vijayt](https://avatars.discourse-cdn.com/v4/letter/v/e9bcb4/32.png) [@Vijayt](https://community.dynatrace.com/u/Vijayt)\
**Post date:** [September 16, 2024, 5:58am UTC](https://community.dynatrace.com/t/can-two-tags-have-the-same-name/31851/8 "2024-09-16T05:58:36Z")

</div>

it is working fine . URL was not refreshing properly

---

<div class="post-metadata">

**Author:** ![Peter\_Youssef](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/peter_youssef/32/14668_2.png) [@Peter\_Youssef](https://community.dynatrace.com/u/Peter_Youssef)\
**Post date:** [September 16, 2024, 11:26am UTC](https://community.dynatrace.com/t/can-two-tags-have-the-same-name/31851/9 "2024-09-16T11:26:38Z")

</div>

As per Dynatrace documentation, it’s not possible to create the same tag twice.  
For further info, feel free to visit:&nbsp;[Tags and metadata - Dynatrace Managed Docs](https://docs.dynatrace.com/managed/manage/tags-and-metadata)
