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

Value of web request header

kgrieten
Newcomer

Hi,

Is it possible to add a column to "User experience - Visits" based on a value of a web request header?

Ex: URL : https://www.mycompany.eu?userid=1254875
Add a new colunm called "userid" and show the values like in this ex 125875 (as shown Client Family, Client IP, ...)

Or is there another (and maybe better) way that we can start to investigate starting from a value of a

web request header ? i.e. fill in a userid and show the visits related to it.

At our company we are using version 6.3

Best regards

Kris Grietens

6 REPLIES 6

Radu
Dynatrace Pro
Dynatrace Pro

Hi Kris,

You can create a measure which captures the value of this URL parameter (or value of a header attribute, whichever applies better to your situation). Then, from UEM configuration options (in System Profile, on 'User Experience') you have the option of tagging visits. If you add the measure which you created in this field, your visits dashlet will then show the values of that parameter as well.
For your example, the visit column will contain "Visit of '1254875' from .... network". Having this displayed in the Visits dashlet, you can then just type the user id you want to search for, and the results will be narrowed to that value only.

Best regards,

Radu Stefan

Radu
Dynatrace Pro
Dynatrace Pro

You can actually create the measure directly from UEM settings - when presented with the list of already created measures, there is the "Create measure" option which presents you with a narrowed list of relevant measure types.

kgrieten
Newcomer

Hi Radu,

Thx for the quick response, but I'm not able to set it up. I think that setting up a measure is not done correctly at my site.

  • In Measures, I create a "Transaction based Measures - Business Transaction ... - Web Requests - Parameter Value"
  • I only filled in the "Parameter value" with "userid"
  • Then I did the UEM magic.

Actually, the uri looks like this :

../info?obj=%7B%22v4a%22%3A%7B%22rapport_version%22%3A%223.5.1609.55%22%7D%2C%22timestamp%22%3A%222016-05-12+13%3A57%3A01%22%2C%22v5%22%3A%7B%22virtual_machine%22%3A0%7D%2C%22v4%22%3A%7B%22download_link%22%3Anull%2C%22rapport_id%22%3A%22BB3F1833B18A7388143D83A9FC793219ED137C48BC12F8613D2466922CA607DB%22%2C%22rapport_running%22%3A1%2C%22compatible%22%3A1%7D%2C%22ki%22%3A%22%22%2C%22v6%22%3A%7B%22is_admin%22%3A2%7D%7D&str=&sign=&userid=5000200001018

I see. Let's go through it.

In the System Profile, on your application tier (Agent Group), under Sensor Configuration, under Servlets sensor pack, click properties.

In the window that opens, make sure you have the "userid" set as a parameter to be captured by the sensor pack, as such:

Apply changes. Go to create the measure now. Like you said "Transaction based.... Web Requests - Parameter Value", but fill in a bit more than just the name of the parameter:

- URI: give it some way to identify the URI, maybe something at the like you said "contains mycompany.eu" or "contains /info" (from what I see in your example above)

- Query: must contain the parameter you want, so here you should put "contains userid="

- Parameter: this is the actual parameter, so just put "userid"

And that should be it.

Note: you can get this whole measure pre-populated if you manage to find a PurePath that contains this call, right click on it and choose 'create measures...', then from the list chose the 'parameter value' type measure as above. You can inspect a call to see if the parameter is captured correctly by right-clicking it and choosing 'details'; it should then be at the bottom of the window like this:

Let me know if you have any issues.

Regards,

Radu

P.S. If you don't know which tier it is exactly, then just edit one of the Servlet packs and when you choose OK (to apply changes), click on the arrow next to the OK button, then choose "OK and apply to other Agent Groups" and you can choose all of them to be sure (or get a better idea of what tiers use this pack).

You also need to tell dynatrace to capture userid as HTTP PArameter. You can do that in your Web Server, Servlet or ASP.NET SEnsor Properties. Edit these Sensor PRoperties and add "userid" to the list of captured parameters. This is required for Web Requests - Parameter measure to work as it doesnt parse the URL but it looks at the parameters captured by our sensors

Andi

kgrieten
Newcomer

🙂

I'm very happy now, it works !!! THX for all the help ...