-
Notifications
You must be signed in to change notification settings - Fork 15
/
error_event_schema.json
182 lines (165 loc) · 4.62 KB
/
error_event_schema.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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
{
"type": "object",
"required": [
"alias",
"source",
"packet_id",
"error_event_id",
"error_event_name",
"threshold_n",
"threshold_n_max",
"threshold_time",
"threshold_ts_usec",
"global_ts_usec"
],
"if": {
"properties": { "error_event_name": { "enum": [ "Unknown datalink layer packet", "Unknown packet type" ] } }
},
"then": {
"anyOf": [
{ "required": [ "layer_type" ] },
{ "not": { "required": [ "thread_id" ] } }
]
},
"if": {
"properties": { "error_event_name": { "enum": [ "Unknown L3 protocol" ] } }
},
"then": {
"anyOf": [
{ "required": [ "protocol" ] },
{ "not": { "required": [ "thread_id" ] } }
]
},
"if": {
"properties": { "error_event_name": { "enum": [ "Packet too short", "IP4 packet too short",
"IP6 packet too short", "TCP packet smaller than expected",
"UDP packet smaller than expected",
"Captured packet size is smaller than expected packet size" ] } }
},
"then": {
"anyOf": [
{ "required": [ "size", "expected" ] },
{ "not": { "required": [ "thread_id" ] } }
]
},
"if": {
"properties": { "error_event_name": { "enum": [ "Packet header invalid" ] } }
},
"then": {
"anyOf": [
{ "required": [ "raeson" ] },
{ "not": { "required": [ "thread_id" ] } }
]
},
"if": {
"properties": { "error_event_name": { "enum": [ "Flow memory allocation failed" ] } }
},
"then": {
"required": [ "thread_id", "size" ]
},
"if": {
"properties": { "error_event_name": { "enum": [ "Max flows to track reached" ] } }
},
"then": {
"required": [ "thread_id", "current_active", "current_idle", "max_active", "max_idle" ]
},
"properties": {
"alias": {
"type": "string"
},
"uuid": {
"type": "string"
},
"source": {
"type": "string"
},
"thread_id": {
"type": "number"
},
"packet_id": {
"type": "number",
"minimum": 0
},
"error_event_id": {
"type": "number",
"minimum": 0,
"maximum": 16
},
"error_event_name": {
"type": "string",
"enum": [
"Unknown datalink layer packet",
"Unknown L3 protocol",
"Unsupported datalink layer",
"Packet too short",
"Unknown packet type",
"Packet header invalid",
"IP4 packet too short",
"Packet smaller than IP4 header",
"nDPI IPv4/L4 payload detection failed",
"IP6 packet too short",
"Packet smaller than IP6 header",
"nDPI IPv6/L4 payload detection failed",
"TCP packet smaller than expected",
"UDP packet smaller than expected",
"Captured packet size is smaller than expected packet size",
"Max flows to track reached",
"Flow memory allocation failed"
]
},
"threshold_n": {
"type": "number",
"minimum": 1
},
"threshold_n_max": {
"type": "number",
"minimum": 1,
"maximum": 65535
},
"threshold_time": {
"type": "number"
},
"threshold_ts_usec": {
"type": "number"
},
"layer_type": {
"type": "number",
"minimum": 0
},
"l4_data_len": {
"type": "number",
"minimum": 0
},
"reason": {
"type": "string"
},
"protocol": {
"type": "number",
"minimum": 0,
"maximum": 65535
},
"size": {
"type": "number"
},
"expected": {
"type": "number"
},
"current_active": {
"type": "number"
},
"current_idle": {
"type": "number"
},
"max_active": {
"type": "number"
},
"max_idle": {
"type": "number"
},
"global_ts_usec": {
"type": "number",
"minimum": 0
}
},
"additionalProperties": false
}