Hi,
I have created new Business Transactions and new measure with regex. I have given few hits to the page and see no results in it.
But I could see the purepaths SYST–>Diagnose Performance --> Purepaths
Kindly do the needful.
Note: Same business transactions works for other measure.Dynatrace Business Txn.docx
Answer by Rajesh S. ·
Hi Rudhramoorthy,
Try out the following and let know:
^(/[^/]*(?:/[^/]+){0,3}/?)$
This will match following
/
/part1
/part1/
/part1/part2
/part1/part2/
/part1/part2/part3
/part1/part2/part3/
/part1/part2/part3/Part4
/part1/part2/part3/Part4/
But not like:
/part1/part2/part3/Part4/part5
/part1/part2/part3/Part4/part5/
/part1/part2/part3/Part4/part5/part6
/part1/part2/part3/Part4/part5/part6/
Answer by Graeme W. ·
Rudhramoorthy,
Try this regular expression in the transformation regex field of your URI Pattern Value measure: ((?:/[^/]*){1,4})
It's a bit of a mess because of the need for a "non-capturing group", which is what (?: ... ) provides.
You know you can try this out by clicking on the light-bulb next to the field? It's a regex tester built-in to Dynatrace!
-- Graeme
Answer by Rudhramoorthy V. ·
Thanks for the reply. not exactly. I need to see the only four levels means "/"
/e/nl/cc/home It may be anything. But it should display four levels not more than that. Means it should not display /e/nl/cc/home/contact or /e/nl/cc/home/contact/profile
Answer by Matthew S. ·
This is your current regex: (.*)/e/SearchDisplay
And I assume you only want to capture:
/e/nl/cc/home
/e/nl/cc/
And they are the full uri's? If so, you need:
(^/e/nl/cc/home$|^/e/nl/cc$)
Answer by Rudhramoorthy V. ·
Hi
I'm again facing one problem in determining the regular expression.
first url - "/e/nl/cc/home" no further levels
second url - "/e/nl/cc" no further levels
third url - "/e/nl/cc/multimedi/ipad/ipad2" there may be more levels
I need to determine the measure for both first and second url in single business transactions. i dont want to see the third url. But below are the results coming for me.
Please let me know how to handle this.
Answer by Graeme W. ·
Rudhramoorthy,
Did you really mean to use the "Web Application Id" measure? It looks like you're trying to match the URL, in which case the "URI Pattern Value" measure would be more appropriate.
Specifically, the measure you've built will fail if the PurePath doesn't have a web application id.
Also, you should consider whether to change the "Occurrence on PurePaths" pull-down from 'all' to 'entry point' only.
-- Graeme
JANUARY 15, 3:00 PM GMT / 10:00 AM ET