# DT\_CUSTOM\_PROP and spaces

**URL:** <https://community.dynatrace.com/t/dt-custom-prop-and-spaces/22633>\
**Category:** Automations\
**Tags:** tagging, problems-classic, automation\
**Created:** [November 27, 2019, 3:31pm UTC](https://community.dynatrace.com/t/dt-custom-prop-and-spaces/22633 "2019-11-27T15:31:21Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![florian\_zimmerm](https://avatars.discourse-cdn.com/v4/letter/f/74df32/32.png) [@florian\_zimmerm](https://community.dynatrace.com/u/florian_zimmerm)\
**Post date:** [November 27, 2019, 3:31pm UTC](https://community.dynatrace.com/t/dt-custom-prop-and-spaces/22633/1 "2019-11-27T15:31:21Z")

</div>

is there a (as of yet) undocumented way to get in values with spaces (key/value) metadata (or tags by using DT\_TAGS). is there a way to escape spaces or using a special character interpreted as space in dynatrace?

we have the need to set a key ‘support\_group’, and it needs to hold values like ‘department web - team1, department web - team2, …’.

> **[Best practices and recommendations for tagging](https://docs.dynatrace.com/docs/manage/tags-and-metadata/basic-concepts/best-practices-and-recommendations-for-tagging)**
>
> Learn when it's recommended to use tags that leverage auto-detected metadata, as well as best practices for enriching Dynatrace monitoring with additional metadata.

thanks in advance, florian

---

<div class="post-metadata">

**Author:** ![skrystosik](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/skrystosik/32/21133_2.png) [@skrystosik](https://community.dynatrace.com/u/skrystosik)\
**Post date:** [November 28, 2019, 7:39pm UTC](https://community.dynatrace.com/t/dt-custom-prop-and-spaces/22633/2 "2019-11-28T19:39:07Z")

</div>

As I know it isn’t supported right now.

Sebastian

---

<div class="post-metadata">

**Author:** ![sean\_mcconville](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/sean_mcconville/32/5788_2.png) [@sean\_mcconville](https://community.dynatrace.com/u/sean_mcconville)\
**Post date:** [April 27, 2021, 4:40pm UTC](https://community.dynatrace.com/t/dt-custom-prop-and-spaces/22633/3 "2021-04-27T16:40:37Z")

</div>

Did this ever get addressed?

---

<div class="post-metadata">

**Author:** ![alex\_luchs](https://avatars.discourse-cdn.com/v4/letter/a/a8b319/32.png) [@alex\_luchs](https://community.dynatrace.com/u/alex_luchs)\
**Post date:** [November 17, 2021, 5:33pm UTC](https://community.dynatrace.com/t/dt-custom-prop-and-spaces/22633/4 "2021-11-17T17:33:30Z")

</div>

Yes, this would be really great to be supported either through quoting the value (key=“value with spaces”) or escaping with backslashes (key=value\ with\ spaces). Other tagging techanisms, including manual, AWS tag ingest, etc. allow for spaces. Why not DT\_TAGS environment based tags?

---

<div class="post-metadata">

**Author:** ![Babar\_Qayyum](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/babar_qayyum/32/13620_2.png) [@Babar\_Qayyum](https://community.dynatrace.com/u/Babar_Qayyum)\
**Post date:** [November 18, 2021, 7:55am UTC](https://community.dynatrace.com/t/dt-custom-prop-and-spaces/22633/5 "2021-11-18T07:55:45Z")

</div>

Hello&nbsp;[@florian\_zimmerm](https://community.dynatrace.com/user/15253)&nbsp; and&nbsp;[@alex\_luchs](https://community.dynatrace.com/user/7966)

As we know spaces are used to **separate tag values** until now. Therefore, please go ahead and open an idea to enhance the application’s capability.

Regards,

Babar

---

<div class="post-metadata">

**Author:** ![alex\_luchs](https://avatars.discourse-cdn.com/v4/letter/a/a8b319/32.png) [@alex\_luchs](https://community.dynatrace.com/u/alex_luchs)\
**Post date:** [December 16, 2021, 8:12pm UTC](https://community.dynatrace.com/t/dt-custom-prop-and-spaces/22633/6 "2021-12-16T20:12:15Z")

</div>

Sorry for not seeing your reply for a month. Whoops!

I’ve created the product idea here:&nbsp;[https://community.dynatrace.com/t5/Dynatrace-product-ideas/Add-support-for-spaces-in-tag-values-provided-by-environment/idi-p/177683#M27106](https://community.dynatrace.com/post/177683#M27106)

---

<div class="post-metadata">

**Author:** ![prasad\_arugonda](https://avatars.discourse-cdn.com/v4/letter/p/f04885/32.png) [@prasad\_arugonda](https://community.dynatrace.com/u/prasad_arugonda)\
**Post date:** [February 10, 2022, 12:24pm UTC](https://community.dynatrace.com/t/dt-custom-prop-and-spaces/22633/7 "2022-02-10T12:24:39Z")

</div>

Instead of space, you could use a&nbsp;_ **tab** _&nbsp;(is a tabulation character). this worked for me

---

<div class="post-metadata">

**Author:** ![David\_Proximus](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/david_proximus/32/14892_2.png) [@David\_Proximus](https://community.dynatrace.com/u/David_Proximus)\
**Post date:** [February 10, 2022, 12:39pm UTC](https://community.dynatrace.com/t/dt-custom-prop-and-spaces/22633/8 "2022-02-10T12:39:12Z")

</div>

Hi all,

We are facing a similar issue on our side with DT\_CUSTOM\_PROP

A couple of days ago, we have noticed a Dynatrace bug with DT\_CUSTOM\_PROP which translate “tabs” into “spaces”

We are benefiting from this bug as we are now using tabs whenever we need spaces… and as a workaround, this works for us including for auto-tagging !

In your example above, this would be

```c
export DT_TAGS="value	with	spaces"

```

where there is a tab between _value_ and _with_ and another tab between _with_ and _spaces_

This is seen better in below screenshot using _vi_ with _:set list_

Tabs are represented as&nbsp; &nbsp;_^I_&nbsp; &nbsp;special characters

![David_Proximus_0-1644496172798.png](https://global.discourse-cdn.com/dynatrace/original/3X/6/f/6f6ca09342daec2d14f9e90a2807fb611ade030a.png)

Maybe this workaround will help while Dynatrace is considering the&nbsp;product idea&nbsp;to support spaces officially.

Hope this helps,

Kind regards,

David

---

<div class="post-metadata">

**Author:** ![fstekelenburg](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/fstekelenburg/32/22029_2.png) [@fstekelenburg](https://community.dynatrace.com/u/fstekelenburg)\
**Post date:** [December 9, 2024, 8:29am UTC](https://community.dynatrace.com/t/dt-custom-prop-and-spaces/22633/9 "2024-12-09T08:29:04Z")

</div>

unfortunately status:&nbsp;[Not planned](https://community.dynatrace.com/category/DynatraceProductIdeas)

---

<div class="post-metadata">

**Author:** ![nils\_stellhorn](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/nils_stellhorn/32/20154_2.png) [@nils\_stellhorn](https://community.dynatrace.com/u/nils_stellhorn)\
**Post date:** [January 7, 2025, 12:57pm UTC](https://community.dynatrace.com/t/dt-custom-prop-and-spaces/22633/10 "2025-01-07T12:57:09Z")

</div>

You can use vertical tabs with alt + 0160. This also works in the GUI under Deployment status → OneAgents. Then select all OneAgents for which you want to add an environment variable tag and select “Modify host tags”. Then you can give it a key or a value with a space. At the location where the space is needed, just press alt + 0160 and your space will appear.
