forked from kube-logging/logging-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlogging.banzaicloud.io_clusterflows.yaml
523 lines (522 loc) · 25.2 KB
/
logging.banzaicloud.io_clusterflows.yaml
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
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
creationTimestamp: null
name: clusterflows.logging.banzaicloud.io
spec:
group: logging.banzaicloud.io
names:
kind: ClusterFlow
listKind: ClusterFlowList
plural: clusterflows
singular: clusterflow
scope: ""
validation:
openAPIV3Schema:
description: ClusterFlow is the Schema for the clusterflows API
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
description: Name of the logging cluster to be attached
properties:
filters:
items:
description: Filter definition for FlowSpec
properties:
concat:
properties:
continuous_line_regexp:
description: The regexp to match continuous lines. This is
exclusive with n_lines.
type: string
flush_interval:
description: The number of seconds after which the last received
event log will be flushed. If specified 0, wait for next
line forever.
type: integer
keep_partial_key:
description: If true, keep partial_key in concatenated records
(default:False)
type: boolean
keep_partial_metadata:
description: If true, keep partial metadata
type: string
key:
description: Specify field name in the record to parse. If
you leave empty the Container Runtime default will be used.
type: string
multiline_end_regexp:
description: The regexp to match ending of multiline. This
is exclusive with n_lines.
type: string
multiline_start_regexp:
description: The regexp to match beginning of multiline. This
is exclusive with n_lines.
type: string
n_lines:
description: The number of lines. This is exclusive with multiline_start_regex.
type: integer
partial_key:
description: The field name that is the reference to concatenate
records
type: string
partial_value:
description: The value stored in the field specified by partial_key
that represent partial log
type: string
separator:
description: 'The separator of lines. (default: "\n")'
type: string
stream_identity_key:
description: The key to determine which stream an event belongs
to.
type: string
timeout_label:
description: The label name to handle events caused by timeout.
type: string
use_first_timestamp:
description: 'Use timestamp of first record when buffer is
flushed. (default: False)'
type: boolean
use_partial_metadata:
description: Use partial metadata to concatenate multiple
records
type: string
type: object
dedot:
description: More info at https://github.com/lunardial/fluent-plugin-dedot_filter
properties:
de_dot_nested:
description: Will cause the plugin to recurse through nested
structures (hashes and arrays), and remove dots in those
key-names too.
type: boolean
de_dot_separator:
description: Separator (default:_)
type: string
type: object
detectExceptions:
properties:
languages:
description: 'Programming languages for which to detect exceptions.
(default: [])'
items:
type: string
type: array
max_bytes:
description: 'Maximum number of bytes to flush (0 means no
limit) (default: 0)'
type: integer
max_lines:
description: 'Maximum number of lines to flush (0 means no
limit) (default: 1000)'
type: integer
message:
description: 'The field which contains the raw message text
in the input JSON data. (default: "")'
type: string
multiline_flush_interval:
description: 'The interval of flushing the buffer for multiline
format. (default: nil)'
type: string
remove_tag_prefix:
description: 'The prefix to be removed from the input tag
when outputting a record. (default: "")'
type: string
stream:
description: 'Separate log streams by this field in the input
JSON data. (default: "")'
type: string
type: object
geoip:
properties:
backend_library:
description: Specify backend library (geoip2_c, geoip, geoip2_compat)
type: string
geoip_2_database:
description: Specify optional geoip2 database (using bundled
GeoLite2-City.mmdb by default)
type: string
geoip_database:
description: Specify optional geoip database (using bundled
GeoLiteCity databse by default)
type: string
geoip_lookup_keys:
description: 'Specify one or more geoip lookup field which
has ip address (default: host)'
type: string
records:
description: 'Records are represented as maps: `key: value`'
items:
additionalProperties:
type: string
description: Parameters inside record directives are considered
to be new key-value pairs
type: object
type: array
skip_adding_null_record:
description: To avoid get stacktrace error with `[null, null]`
array for elasticsearch.
type: boolean
type: object
grep:
properties:
and:
items:
description: Specify filtering rule. This directive contains
either `regexp` or `exclude` directive.
properties:
exclude:
items:
description: Specify filtering rule to reject events.
This directive contains two parameters.
properties:
key:
description: Specify field name in the record
to parse.
type: string
pattern:
description: Pattern expression to evaluate
type: string
required:
- key
- pattern
type: object
type: array
regexp:
items:
description: Specify filtering rule. This directive
contains two parameters.
properties:
key:
description: Specify field name in the record
to parse.
type: string
pattern:
description: Pattern expression to evaluate
type: string
required:
- key
- pattern
type: object
type: array
type: object
type: array
exclude:
items:
description: Specify filtering rule to reject events. This
directive contains two parameters.
properties:
key:
description: Specify field name in the record to parse.
type: string
pattern:
description: Pattern expression to evaluate
type: string
required:
- key
- pattern
type: object
type: array
or:
items:
description: Specify filtering rule. This directive contains
either `regexp` or `exclude` directive.
properties:
exclude:
items:
description: Specify filtering rule to reject events.
This directive contains two parameters.
properties:
key:
description: Specify field name in the record
to parse.
type: string
pattern:
description: Pattern expression to evaluate
type: string
required:
- key
- pattern
type: object
type: array
regexp:
items:
description: Specify filtering rule. This directive
contains two parameters.
properties:
key:
description: Specify field name in the record
to parse.
type: string
pattern:
description: Pattern expression to evaluate
type: string
required:
- key
- pattern
type: object
type: array
type: object
type: array
regexp:
items:
description: Specify filtering rule. This directive contains
two parameters.
properties:
key:
description: Specify field name in the record to parse.
type: string
pattern:
description: Pattern expression to evaluate
type: string
required:
- key
- pattern
type: object
type: array
type: object
parser:
description: https://docs.fluentd.org/filter/parser
properties:
emit_invalid_record_to_error:
description: 'Emit invalid record to @ERROR label. Invalid
cases are: key not exist, format is not matched, unexpected
error'
type: boolean
hash_value_field:
description: Store parsed values as a hash value in a field.
type: string
inject_key_prefix:
description: Store parsed values with specified key name prefix.
type: string
key_name:
description: Specify field name in the record to parse. If
you leave empty the Container Runtime default will be used.
type: string
parse:
properties:
estimate_current_event:
description: If true, use Fluent::EventTime.now(current
time) as a timestamp when time_key is specified.
type: boolean
expression:
description: Regexp expression to evaluate
type: string
format:
description: 'Only available when using type: multi_format'
type: string
keep_time_key:
description: If true, keep time field in the record.
type: boolean
local_time:
description: 'Ff true, use local time. Otherwise, UTC
is used. This is exclusive with utc. (default: true)'
type: boolean
null_empty_string:
description: If true, empty string field is replaced with
nil
type: boolean
null_value_pattern:
description: ' Specify null value pattern.'
type: string
patterns:
description: 'Only available when using type: multi_format'
items: {}
type: array
time_format:
description: Process value using specified format. This
is available only when time_type is string
type: string
time_key:
description: Specify time field for event time. If the
event doesn't have this field, current time is used.
type: string
time_type:
description: 'Parse/format value according to this type
available values: float, unixtime, string (default:
string)'
type: string
timezone:
description: 'Use specified timezone. one can parse/format
the time value in the specified timezone. (default:
nil)'
type: string
type:
description: 'Parse type: apache2, apache_error, nginx,
syslog, csv, tsv, ltsv, json, multiline, none, logfmt'
type: string
types:
description: 'Types casting the fields to proper types
example: field1:type, field2:type'
type: string
utc:
description: 'If true, use UTC. Otherwise, local time
is used. This is exclusive with localtime (default:
false)'
type: boolean
type: object
parsers:
description: Deprecated, use parse
items:
properties:
estimate_current_event:
description: If true, use Fluent::EventTime.now(current
time) as a timestamp when time_key is specified.
type: boolean
expression:
description: Regexp expression to evaluate
type: string
format:
description: 'Only available when using type: multi_format'
type: string
keep_time_key:
description: If true, keep time field in the record.
type: boolean
local_time:
description: 'Ff true, use local time. Otherwise, UTC
is used. This is exclusive with utc. (default: true)'
type: boolean
null_empty_string:
description: If true, empty string field is replaced
with nil
type: boolean
null_value_pattern:
description: ' Specify null value pattern.'
type: string
patterns:
description: 'Only available when using type: multi_format'
items: {}
type: array
time_format:
description: Process value using specified format. This
is available only when time_type is string
type: string
time_key:
description: Specify time field for event time. If the
event doesn't have this field, current time is used.
type: string
time_type:
description: 'Parse/format value according to this type
available values: float, unixtime, string (default:
string)'
type: string
timezone:
description: 'Use specified timezone. one can parse/format
the time value in the specified timezone. (default:
nil)'
type: string
type:
description: 'Parse type: apache2, apache_error, nginx,
syslog, csv, tsv, ltsv, json, multiline, none, logfmt'
type: string
types:
description: 'Types casting the fields to proper types
example: field1:type, field2:type'
type: string
utc:
description: 'If true, use UTC. Otherwise, local time
is used. This is exclusive with localtime (default:
false)'
type: boolean
type: object
type: array
remove_key_name_field:
description: Remove key_name field when parsing is succeeded
type: boolean
replace_invalid_sequence:
description: If true, invalid string is replaced with safe
characters and re-parse it.
type: boolean
reserve_data:
description: Keep original key-value pair in parsed result.
type: boolean
reserve_time:
description: Keep original event time in parsed result.
type: boolean
type: object
record_transformer:
properties:
auto_typecast:
description: 'Use original value type. (default: true)'
type: boolean
enable_ruby:
description: 'When set to true, the full Ruby syntax is enabled
in the ${...} expression. (default: false)'
type: boolean
keep_keys:
description: A comma-delimited list of keys to keep.
type: string
records:
description: 'Add records docs at: https://docs.fluentd.org/filter/record_transformer
Records are represented as maps: `key: value`'
items:
additionalProperties:
type: string
description: Parameters inside record directives are considered
to be new key-value pairs
type: object
type: array
remove_keys:
description: A comma-delimited list of keys to delete
type: string
renew_record:
description: 'Create new Hash to transform incoming data (default:
false)'
type: boolean
renew_time_key:
description: Specify field name of the record to overwrite
the time of events. Its value must be unix time.
type: string
type: object
stdout:
type: object
tag_normaliser:
properties:
format:
description: Re-Tag log messages info at [github](https://github.com/banzaicloud/fluent-plugin-tag-normaliser)
type: string
type: object
type: object
type: array
loggingRef:
type: string
outputRefs:
items:
type: string
type: array
selectors:
additionalProperties:
type: string
type: object
required:
- outputRefs
- selectors
type: object
status:
description: FlowStatus defines the observed state of Flow
type: object
type: object
version: v1beta1
versions:
- name: v1beta1
served: true
storage: true
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []