-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathwhere
More file actions
38 lines (32 loc) · 857 Bytes
/
where
File metadata and controls
38 lines (32 loc) · 857 Bytes
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
// basic where clause filter by hour, you can do ago(1m), ago(1s)...
AKSAlertmanager
| where TIMESTAMP >= ago(1h)
and resource == "events"
| limit 10
// stackable where operators
AKSAlertmanager
| where TIMESTAMP >= ago(1h)
and resource == "events"
| where Underlay == "cx-97"
| limit 10
// you can simulte search using where. Search all columns in the input for the phrase westus somewhere in a column's value
AKSAlertmanager
| where * has "westus"
| limit 10
// you can search positional matches.
// match start
AKSAlertmanager
| where * hasprefix "ingresses"
| limit 10
// match end
AKSAlertmanager
| where * hassuffix "p"
| limit 10
// return all rows if any column contains ingresses
AKSAlertmanager
| where * contains "ingresses"
| limit 10
// where supports regex as well
AKSAlertmanager
| where RPTenant matches regex "[c]+"
| limit 10