User Sessions – Domain-based filtering

Hi team ,
I’m checking User Sessions and I need some help.
Currently, sessions are visible at the application level, but I want to add a filter based on domain (for example: myzain.kw.zain.com vs kw.zain.com) so we can clearly segregate the users sessions .
Can you please advise:

  • If domain-based filtering is supported directly in User Sessions, and
  • The best way to configure or apply this filter (saved filter, dimension, or alternative approach)?

Thanks in advance! 

Hi @Vikas_g1997,

Have you tried to use custom session properties some how (eg. with serverside request attributes)? Maybe it is a wrong idea but could you please check it.

Best regards,

János

Hi,

Thanks for the suggestion.
Unfortunately, domain-based filtering is not directly supported in User Sessions as a built-in dimension. User Sessions can be filtered by application, browser, user action, etc., but not by domain/hostname out of the box.

The best and supported solution is what @Mizső  sugest to use Custom Session Properties, based on:

  • URL host / domain, or
  • Server-side Request Attributes (if the domain is available on the backend side).

Alternatively, you can use USQL and filter by domain on the user action level, for example:

SELECT *
FROM usersession
JOIN useraction
WHERE useraction.domain = "www.dynatrace.com"

In this case, you are not filtering directly in the User Sessions UI, but instead querying the data and extracting only the information you are interested in.