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

Remove hostname from request

cameronduff
Contributor

Hi all,

I am trying to use the Generate Clean URLs functionality to remote the hostnames from our dynamic web requests in our services. They follow the format https://host-name:1234/api/url etc and I am currently using the regex ^https?://.*:\\d* to identify the first portion (https://host-name:1234) to remove it and just show the /api/url portion but when I add this as a regex it isn't removed from the url in Dynamic Web Requests for the service, any ideas?

4 REPLIES 4

AurelienGravier
DynaMight Champion
DynaMight Champion

 Hi @cameronduff 

Instead, I recommend using a request naming rule with the content placeolder {URL:Path} as naming pattern like below : 

AurelienGravier_0-1671803555154.png

 

Regards Aurélien.

 

 

Observability consultant - Dynatrace Associate/Pro/Services certified

Thank you! This has worked great

Ana_Kuzmenchuk
Community Team
Community Team

Hi @cameronduff, did the workaround mentioned above help you? If you found another solution to your problem, we'd love to hear about it, too! Thanks!

The only constant is change. Finding ways for great things to happen!

Hi, yes this worked great thanks!

Featured Posts