-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathKustoQueries.CustomEvents.txt
42 lines (42 loc) · 1.42 KB
/
KustoQueries.CustomEvents.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//General example showing extension of serialzied customDimensions and customMeasurements
customEvents
| where name == "sample"
| extend cd = parse_json(customDimensions)
| extend cm = parse_json(customMeasurements)
| order by timestamp desc
//=========================================================================================
//Parsing and Converting
customEvents
| extend cd=parse_json(customDimensions)
| extend cm=parse_json(customMeasurements)
| project timestamp ,
cd.client,
name,
cd.userName,
toint(cm.DomContentLoadTime),
toint(cm.RequestResponseTime),
toint(cm.PageRenderTime),
toint(cm.NetworkLatency),
toint(cm.RedirectCount)
//=========================================================================================
//Focusing on Web Resource / Client Events showing client information
customEvents
| extend cd=parse_json(customDimensions)
| extend cm=parse_json(customMeasurements)
| project timestamp ,
name,
cd,
cm,
client_Type,
client_OS,
client_StateOrProvince ,
client_Browser
//=========================================================================================
//Parsing RemoteExecutionContext
customEvents
| extend context = parse_json(customDimensions)
| extend rmc = parse_json(context)
| order by timestamp desc
| project context.RemoteExecutionContext, rmc.BusinessUnitId
//=========================================================================================
//Parsing RemoteExecutionContext