forked from graylog-labs/graylog-contentpack-haproxy
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhaproxy_extractors.json
295 lines (295 loc) · 8.56 KB
/
haproxy_extractors.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
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
{
"extractors": [
{
"title": "IP address of the client",
"extractor_type": "regex",
"converters": [],
"order": 0,
"cursor_strategy": "copy",
"source_field": "message",
"target_field": "haproxy_client_ip",
"extractor_config": {
"regex_value": "haproxy(?:\\[\\d+\\])?:\\s+(\\S+):"
},
"condition_type": "regex",
"condition_value": "haproxy(?:\\[\\d+\\])?:"
},
{
"title": "Exact date when the first byte of the HTTP request was received",
"extractor_type": "regex",
"converters": [
{
"type": "date",
"config": {
"date_format": "dd/MMM/YYYY:HH:mm:ss.SSS",
"time_zone": "Etc/UTC",
"locale": "en-US"
}
}
],
"order": 0,
"cursor_strategy": "copy",
"source_field": "message",
"target_field": "haproxy_request_date",
"extractor_config": {
"regex_value": "haproxy(?:\\[\\d+\\])?:.+?\\[(\\d+\\/\\w+\\/\\d+:\\d+:\\d+:\\d+\\.\\d+)\\]"
},
"condition_type": "regex",
"condition_value": "haproxy(?:\\[\\d+\\])?:"
},
{
"title": "Name of the frontend (or listener) which received and processed the connection",
"extractor_type": "regex",
"converters": [],
"order": 0,
"cursor_strategy": "copy",
"source_field": "message",
"target_field": "haproxy_frontend_name",
"extractor_config": {
"regex_value": "haproxy(?:\\[\\d+\\])?:.+?\\[.+?\\]\\s(\\S+)"
},
"condition_type": "regex",
"condition_value": "haproxy(?:\\[\\d+\\])?:"
},
{
"title": "Name of the backend (or listener) which was selected to manage the connection to the server",
"extractor_type": "regex",
"converters": [],
"order": 0,
"cursor_strategy": "copy",
"source_field": "message",
"target_field": "haproxy_backend_name",
"extractor_config": {
"regex_value": "haproxy(?:\\[\\d+\\])?:.+?\\[.+?\\].+?(\\S+)/"
},
"condition_type": "regex",
"condition_value": "haproxy(?:\\[\\d+\\])?:"
},
{
"title": "Name of the last server to which the connection was sent",
"extractor_type": "regex",
"converters": [],
"order": 0,
"cursor_strategy": "copy",
"source_field": "message",
"target_field": "haproxy_server_name",
"extractor_config": {
"regex_value": "haproxy(?:\\[\\d+\\])?:.+?\\[.+?\\].+?/(\\S+)"
},
"condition_type": "regex",
"condition_value": "haproxy(?:\\[\\d+\\])?:"
},
{
"title": "Timings",
"extractor_type": "regex",
"converters": [],
"order": 0,
"cursor_strategy": "copy",
"source_field": "message",
"target_field": "haproxy_times",
"extractor_config": {
"regex_value": "haproxy(?:\\[\\d+\\])?:.+?\\[.+?\\].+?\\S+/\\S+\\s(\\S+)"
},
"condition_type": "regex",
"condition_value": "haproxy(?:\\[\\d+\\])?:"
},
{
"title": "HTTP status code returned to the client",
"extractor_type": "regex",
"converters": [
{
"type": "numeric",
"config": {}
}
],
"order": 0,
"cursor_strategy": "copy",
"source_field": "message",
"target_field": "haproxy_status_code",
"extractor_config": {
"regex_value": "haproxy(?:\\[\\d+\\])?:.+?\\[.+?\\].+?\\s\\S+\\s\\S+\\s(\\d+)"
},
"condition_type": "regex",
"condition_value": "haproxy(?:\\[\\d+\\])?:"
},
{
"title": "Total number of bytes transmitted to the client when the log is emitted",
"extractor_type": "regex",
"converters": [
{
"type": "numeric",
"config": {}
}
],
"order": 0,
"cursor_strategy": "copy",
"source_field": "message",
"target_field": "haproxy_bytes_read",
"extractor_config": {
"regex_value": "haproxy(?:\\[\\d+\\])?:.+?\\[.+?\\].+?\\s\\S+\\s\\S+\\s\\d+\\s(\\d+)"
},
"condition_type": "regex",
"condition_value": "haproxy(?:\\[\\d+\\])?:"
},
{
"title": "Complete HTTP request line, including the method, request and HTTP version string",
"extractor_type": "regex",
"converters": [],
"order": 0,
"cursor_strategy": "copy",
"source_field": "message",
"target_field": "haproxy_http_request",
"extractor_config": {
"regex_value": "haproxy(?:\\[\\d+\\])?:.+?\"(.+)\""
},
"condition_type": "regex",
"condition_value": "haproxy(?:\\[\\d+\\])?:"
},
{
"title": "HTTP method",
"extractor_type": "split_and_index",
"converters": [],
"order": 1,
"cursor_strategy": "copy",
"source_field": "haproxy_http_request",
"target_field": "haproxy_http_method",
"extractor_config": {
"index": 1,
"split_by": " "
},
"condition_type": "string",
"condition_value": " "
},
{
"title": "HTTP request path",
"extractor_type": "split_and_index",
"converters": [],
"order": 1,
"cursor_strategy": "copy",
"source_field": "haproxy_http_request",
"target_field": "haproxy_http_path",
"extractor_config": {
"index": 2,
"split_by": " "
},
"condition_type": "string",
"condition_value": " "
},
{
"title": "HTTP version",
"extractor_type": "split_and_index",
"converters": [],
"order": 1,
"cursor_strategy": "copy",
"source_field": "haproxy_http_request",
"target_field": "haproxy_http_version",
"extractor_config": {
"index": 3,
"split_by": " "
},
"condition_type": "string",
"condition_value": " "
},
{
"title": "Total time in milliseconds spent waiting for a full HTTP request from the client (not counting body) after the first byte was received (TR)",
"extractor_type": "split_and_index",
"converters": [
{
"type": "numeric",
"config": {}
}
],
"order": 2,
"cursor_strategy": "copy",
"source_field": "haproxy_times",
"target_field": "haproxy_time_clientread",
"extractor_config": {
"index": 1,
"split_by": "/"
},
"condition_type": "string",
"condition_value": "/"
},
{
"title": "Total time in milliseconds spent waiting in the various queues (Tw)",
"extractor_type": "split_and_index",
"converters": [
{
"type": "numeric",
"config": {}
}
],
"order": 2,
"cursor_strategy": "copy",
"source_field": "haproxy_times",
"target_field": "haproxy_time_wait",
"extractor_config": {
"index": 2,
"split_by": "/"
},
"condition_type": "string",
"condition_value": "/"
},
{
"title": "Total time in milliseconds spent waiting for the connection to establish to the final server, including retries (Tc)",
"extractor_type": "split_and_index",
"converters": [
{
"type": "numeric",
"config": {}
}
],
"order": 2,
"cursor_strategy": "copy",
"source_field": "haproxy_times",
"target_field": "haproxy_time_servconn",
"extractor_config": {
"index": 3,
"split_by": "/"
},
"condition_type": "string",
"condition_value": "/"
},
{
"title": "Total time in milliseconds spent waiting for the server to send a full HTTP response, not counting data (Tr)",
"extractor_type": "split_and_index",
"converters": [
{
"type": "numeric",
"config": {}
}
],
"order": 2,
"cursor_strategy": "copy",
"source_field": "haproxy_times",
"target_field": "haproxy_time_servread",
"extractor_config": {
"index": 4,
"split_by": "/"
},
"condition_type": "string",
"condition_value": "/"
},
{
"title": "Time the request remained active in haproxy, which is the total time in milliseconds elapsed between the first byte of the request was received and the last byte of response was sent (Ta)",
"extractor_type": "split_and_index",
"converters": [
{
"type": "numeric",
"config": {}
}
],
"order": 2,
"cursor_strategy": "copy",
"source_field": "haproxy_times",
"target_field": "haproxy_time_total",
"extractor_config": {
"index": 5,
"split_by": "/"
},
"condition_type": "string",
"condition_value": "/"
}
],
"version": "3.1.1"
}