I can currently capture the Request Header with attribute "cookie", but all I need is the Customer Name(Client_XXXXXXX) at the moment.
Here is what is being captured:
JSESSIONID=xxxxxxxxxxxxxxxxxxxx.Server; LoginKey=xxxxxxxxxx|xxxxxxxx|en_US|xxxxxxx|Client_xxxxxxxxxxxx;
I only care about the Client portion for right now. The "X" are not a exact number each time. I figure once I get the Client's name only, I can figure out how to get the breakdown for more information if I need it.
The cookie capture all the information, I even tried "*" as accessor and failed. So I think I need to breakdown this cookie information.
Just looking for ways to breakdown and create a BT.
Answer by Ted F. ·
Right - that's what the transformation regex is for. It will apply that regex to the string and pull out the portions.
Capture the Cooke. Create a measure for it and try using (Client_.) or Client_(.) in the transformation regex to start - you may need to play around with it. You can copy the value of the Cookie into your clipboard and then use the lightbulb button to the right of the transformation regex field. Paste your clipboard into the 'value' field and try the regex'es in the other field.
We use regular Java regex, so there are a lot of resources on the web to help you build the regex.
thanks,
ted
Answer by Mark M. ·
Actually, the JSESSIONID is part of the whole Request Header, "Cookie" is the attribute which is capturing the complete line above:
JSESSIONID=xxxxxxxxxxxxxxxxxxxx.Server; LoginKey=xxxxxxxxxx|xxxxxxxx|en_US|xxxxxxx|Client_xxxxxxxxxxxx;
So this one complete line, I need to break apart so I only Capture the Client's name and maybe the Value after "LoginKey="
So I trying to breakdown the whole line into portions.
JANUARY 15, 3:00 PM GMT / 10:00 AM ET