-
Notifications
You must be signed in to change notification settings - Fork 1
/
queries.json
101 lines (101 loc) · 2.46 KB
/
queries.json
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
{
"items": [
{
"value": "fuse",
"name": "As Table",
"description": "",
"tags": []
},
{
"value": "fuse | drop ustack",
"name": "Table w/o ustack",
"description": "",
"tags": []
},
{
"value": "sample",
"name": "Sample the Shapes",
"description": "",
"tags": []
},
{
"value": "cut stack",
"name": "Just the Stack",
"description": "",
"tags": []
},
{
"value": "callers:=union(stack[1])",
"name": "Parent Callers",
"description": "",
"tags": []
},
{
"value": "count() by stack",
"name": "Count Stacks",
"description": "",
"tags": []
},
{
"value": "count() by stack | depth:=len(stack) | drop stack | sort -r depth",
"name": "Count Stacks by Depth",
"description": "",
"tags": []
},
{
"value": "StackDepth:=union(len(stack)) by Process:=name",
"name": "Stack Depth by Process",
"description": "",
"tags": []
},
{
"value": "StackDepth:=union(len(stack)) by Process:=name | 28 in StackDepth",
"name": "Stack Depth of 28",
"description": "",
"tags": []
},
{
"value": "this[\"Stack Depth\"]:=union(len(stack)) by Process:=name",
"name": "Stack Depth with Whitespace ",
"description": "",
"tags": []
},
{
"value": "stack[1]==\"ip_queue_xmit\" | count() by name,stack:=stack[3:] | sort name",
"name": "Ancestors of ip_queue_xmit",
"description": "",
"tags": []
},
{
"value": "SELECT * FROM exec",
"name": "SQL Execs as Table",
"description": "",
"tags": []
},
{
"value": "SELECT * FROM exec ORDER by pcomm LIMIT 5",
"name": "SQL Stuff",
"description": "",
"tags": []
},
{
"value": "SELECT * FROM exec | union(ppid)",
"name": "All Parent PIDs with Zed",
"description": "",
"tags": []
},
{
"value": "SELECT union(ppid) as parents FROM exec GROUP BY parents",
"name": "Parent PIDs in SQL",
"description": "",
"tags": []
},
{
"value": "SELECT union(e.pid) as PIDs, s.name as Command, min(len(s.stack)) as MinDepth, max(len(s.stack)) as MaxDepth FROM exec e JOIN stack s on e.pcomm=s.name GROUP BY Command, MinDepth, MaxDepth, PIDs",
"name": "Join PIDs and Stack Depths",
"description": "",
"tags": []
}
],
"name": "BPF"
}