I'm defining URL parameter under "URL monitoring" tab & want to report only some part of parameter to CAS.
String to process:-
Below is the expression I'm using,
But desired result is,
Can somebody help me to achieve this.
Solved! Go to Solution.
DCRUM uses the () to indicate what to report, so in your example, you would need two separate sets of () rather than a single set
will get you the results you are looking for
I tried with that one as well earlier but somehow it is not reporting to the CAS.
For some other application I'm following the same configuration & URL's are reporting perfectly to the CAS.
URL to process,
https://xyz.domain.com/portal?tartitle=view additional employee data
I'm looking for something like above.
Is there anything I'm missing here in configuration?
If we decode the ASCII we get
param=266/GetTableEntryList/12/xy-abcd-xyz28/AST:Asset Management Console10/Management9//xy-abcd-xyz18/AST:ComputerSystem0/1' ="BMC_COMPUTERSYSTEM
so I think the regex you may be after is:
This will get everything before the first / and then skip everything to the ", process the " and then select everything after the ".
I'm not sure if you need to escape the " with \" - you may be able to just use " there.
Have you tried editing the service using the wizard? One of the wizard steps is to specify URLs to monitor. It lets you select and test what you setup against recorded traffic.
You may need to specify URL encoding as one of the transforms in the url monitoring definition.
I don't know what's wrong happening with my RUM console.
It is showing 0 hits for every recording (in wizard) & even for "Automatic".
One of our AMD is giving an error (CBA agent can not communicate with CBA) when I tried to record new trace for the application.
I think I have to take this up with support now.
I will check for your suggestion & get back to you. Thanks.
I think you should add step to URL decode it first. so you will get:
param=266/GetTableEntryList/12/xy-abcd-xyz28/AST:Asset Management Console10/Management9//xy-abcd-xyz18/AST:ComputerSystem0/1' ="BMC_COMPUTERSYSTEM")5/1/1/45/1/1/11/12/0/2/0/
What parameter from this you want to extract exactly ?
Yes I have to write the regex by considering the decoded URL.
When I checked for resulted URL's on CAS, they were already in decoded form.
I have written below expression to achieve the desired result.
Does it needs to be further enhanced so as to avoid overhead on processing?
Is BMC_COMPUTERSYSTEM some constant value that needs to be always reported ? Can't it be anything else or it has to be exactly MC_COMPUTERSYSTEM as you decided ?
If former use
Thanks for your suggestion.
With your given expression I will be able to report URL only if it contains "="BMC_COMPUTERSYSTEM)" string & it will not match if there are any other special characters like @ or &.
However I'm able to get desire result by writing below expression with help of dynatrace support,
To report URL like,