cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

DT_CUSTOM_PROP and spaces

florian_zimmerm
Newcomer

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, ...'.


https://www.dynatrace.com/support/help/how-to-use-dynatrace/tags-and-metadata/basic-concepts/best-pr...


thanks in advance, florian


7 REPLIES 7

skrystosik
DynaMight Guru
DynaMight Guru
As I know it isn't supported right now.

Sebastian


Regards, Sebastian

sean_mcconville
DynaMight
DynaMight

Did this ever get addressed?

alex_luchs
Visitor

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?

Hello @florian_zimmerm  and @alex_luchs 

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

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

 

I've created the product idea here: https://community.dynatrace.com/t5/Dynatrace-product-ideas/Add-support-for-spaces-in-tag-values-prov...

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 

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   ^I   special characters

David_Proximus_0-1644496172798.png

 

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

 

Hope this helps,

 

Kind regards,

David

prasad_arugonda
Participant

Instead of space, you could use a tab (is a tabulation character). this worked for me