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

Extracting context root from a URL to tag it

Hi,

We have an URL like /application-context-root/text1/text2/text3/text4 which is served by a service.

We would like to extract the chain /application-context-root/ in order to create an automatic tag rule using this chain.

We've created a request attribute which extract the info but automatic tag rules don´t allow using a request attribute to tag something.

We have also launched Detection full web request API called

curl -X GET "https://mytenant/api/config/v1/service/detectionRules/FULL_WEB_REQUEST" -H "accept: application/json; charset=utf-8" -H "Authorization: Api-Token mytoken"

but we receive the following error: TypeError: NetworkError when attempting to fetch resource.

Is there any way to get the context root in order to create an automatic rule to tag it?

 

Thanks in advance.

Regards,

Elena.

1 REPLY 1

axel_ayala
Dynatrace Advisor
Dynatrace Advisor

If I understand correctly, you can try something like this, as the context root is metadata we detect OOTB:

axel_ayala_0-1646671253647.png

 

Featured Posts