Forum Discussion
Jad_Tabbara__J1
Sep 15, 2017Cirrostratus
Hello,
If the /service_name/ is not changing, you can use the following command to do it
when HTTP_REQUEST {
if { [string tolower [HTTP::path]] starts_with "/service_name/" } {
log local0. "Old path: [HTTP::path]"
HTTP::path [string map -nocase { /service_name/ / } [HTTP::path] ]
log local0. "New path: [HTTP::path]"
}
}
Hope it helps
Waiting for your feedback
Regards