forked from fluent/fluent-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.yaml
13203 lines (13203 loc) · 715 KB
/
setup.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
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.4.1
name: clusterfilters.fluentbit.fluent.io
spec:
group: fluentbit.fluent.io
names:
kind: ClusterFilter
listKind: ClusterFilterList
plural: clusterfilters
shortNames:
- cfbf
singular: clusterfilter
scope: Cluster
versions:
- name: v1alpha2
schema:
openAPIV3Schema:
description: ClusterFilter defines a cluster-level Filter configuration.
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/sig-architecture/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/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
description: Specification of desired Filter configuration.
properties:
filters:
description: A set of filter plugins in order.
items:
properties:
aws:
description: Aws defines a Aws configuration.
properties:
accountID:
description: The account ID for current EC2 instance.Default
is false.
type: boolean
amiID:
description: The EC2 instance image id.Default is false.
type: boolean
az:
description: The availability zone; for example, "us-east-1a".
Default is true.
type: boolean
ec2InstanceID:
description: The EC2 instance ID.Default is true.
type: boolean
ec2InstanceType:
description: The EC2 instance type.Default is false.
type: boolean
hostName:
description: The hostname for current EC2 instance.Default
is false.
type: boolean
imdsVersion:
description: Specify which version of the instance metadata
service to use. Valid values are 'v1' or 'v2'.
enum:
- v1
- v2
type: string
privateIP:
description: The EC2 instance private ip.Default is false.
type: boolean
vpcID:
description: The VPC ID for current EC2 instance.Default
is false.
type: boolean
type: object
grep:
description: Grep defines Grep Filter configuration.
properties:
exclude:
description: 'Exclude records which field matches the regular
expression. Value Format: FIELD REGEX'
type: string
regex:
description: 'Keep records which field matches the regular
expression. Value Format: FIELD REGEX'
type: string
type: object
kubernetes:
description: Kubernetes defines Kubernetes Filter configuration.
properties:
annotations:
description: Include Kubernetes resource annotations in
the extra metadata.
type: boolean
bufferSize:
description: Set the buffer size for HTTP client when reading
responses from Kubernetes API server.
pattern: ^\d+(k|K|KB|kb|m|M|MB|mb|g|G|GB|gb)?$
type: string
dummyMeta:
description: If set, use dummy-meta data (for test/dev purposes)
type: boolean
k8sLoggingExclude:
description: Allow Kubernetes Pods to exclude their logs
from the log processor (read more about it in Kubernetes
Annotations section).
type: boolean
k8sLoggingParser:
description: Allow Kubernetes Pods to suggest a pre-defined
Parser (read more about it in Kubernetes Annotations section)
type: boolean
keepLog:
description: When Keep_Log is disabled, the log field is
removed from the incoming message once it has been successfully
merged (Merge_Log must be enabled as well).
type: boolean
kubeCAFile:
description: CA certificate file
type: string
kubeCAPath:
description: Absolute path to scan for certificate files
type: string
kubeMetaPreloadCacheDir:
description: If set, Kubernetes meta-data can be cached/pre-loaded
from files in JSON format in this directory, named as
namespace-pod.meta
type: string
kubeTagPrefix:
description: When the source records comes from Tail input
plugin, this option allows to specify what's the prefix
used in Tail configuration.
type: string
kubeTokenFile:
description: Token file
type: string
kubeURL:
description: API Server end-point
type: string
labels:
description: Include Kubernetes resource labels in the extra
metadata.
type: boolean
mergeLog:
description: When enabled, it checks if the log field content
is a JSON string map, if so, it append the map fields
as part of the log structure.
type: boolean
mergeLogKey:
description: When Merge_Log is enabled, the filter tries
to assume the log field from the incoming message is a
JSON string message and make a structured representation
of it at the same level of the log field in the map. Now
if Merge_Log_Key is set (a string name), all the new structured
fields taken from the original log content are inserted
under the new key.
type: string
mergeLogTrim:
description: When Merge_Log is enabled, trim (remove possible
\n or \r) field values.
type: boolean
mergeParser:
description: Optional parser name to specify how to parse
the data contained in the log key. Recommended use is
for developers or testing only.
type: string
regexParser:
description: Set an alternative Parser to process record
Tag and extract pod_name, namespace_name, container_name
and docker_id. The parser must be registered in a parsers
file (refer to parser filter-kube-test as an example).
type: string
tlsDebug:
description: Debug level between 0 (nothing) and 4 (every
detail).
format: int32
type: integer
tlsVerify:
description: When enabled, turns on certificate validation
when connecting to the Kubernetes API server.
type: boolean
useJournal:
description: When enabled, the filter reads logs coming
in Journald format.
type: boolean
type: object
lua:
description: Lua defines Lua Filter configuration.
properties:
call:
description: Lua function name that will be triggered to
do filtering. It's assumed that the function is declared
inside the Script defined above.
type: string
protectedMode:
description: If enabled, Lua script will be executed in
protected mode. It prevents to crash when invalid Lua
script is executed. Default is true.
type: boolean
script:
description: Path to the Lua script that will be used.
properties:
key:
description: The key to select.
type: string
name:
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
TODO: Add other useful fields. apiVersion, kind, uid?'
type: string
optional:
description: Specify whether the ConfigMap or its key
must be defined
type: boolean
required:
- key
type: object
timeAsTable:
description: By default when the Lua script is invoked,
the record timestamp is passed as a Floating number which
might lead to loss precision when the data is converted
back. If you desire timestamp precision enabling this
option will pass the timestamp as a Lua table with keys
sec for seconds since epoch and nsec for nanoseconds.
type: boolean
typeIntKey:
description: If these keys are matched, the fields are converted
to integer. If more than one key, delimit by space. Note
that starting from Fluent Bit v1.6 integer data types
are preserved and not converted to double as in previous
versions.
items:
type: string
type: array
required:
- call
- script
type: object
modify:
description: Modify defines Modify Filter configuration.
properties:
conditions:
description: All conditions have to be true for the rules
to be applied.
items:
description: The plugin supports the following conditions
properties:
aKeyMatches:
description: Is true if a key matches regex KEY
type: string
keyDoesNotExist:
additionalProperties:
type: string
description: Is true if KEY does not exist
type: object
keyExists:
description: Is true if KEY exists
type: string
keyValueDoesNotEqual:
additionalProperties:
type: string
description: Is true if KEY exists and its value is
not VALUE
type: object
keyValueDoesNotMatch:
additionalProperties:
type: string
description: Is true if key KEY exists and its value
does not match VALUE
type: object
keyValueEquals:
additionalProperties:
type: string
description: Is true if KEY exists and its value is
VALUE
type: object
keyValueMatches:
additionalProperties:
type: string
description: Is true if key KEY exists and its value
matches VALUE
type: object
matchingKeysDoNotHaveMatchingValues:
additionalProperties:
type: string
description: Is true if all keys matching KEY have
values that do not match VALUE
type: object
matchingKeysHaveMatchingValues:
additionalProperties:
type: string
description: Is true if all keys matching KEY have
values that match VALUE
type: object
noKeyMatches:
description: Is true if no key matches regex KEY
type: string
type: object
type: array
rules:
description: Rules are applied in the order they appear,
with each rule operating on the result of the previous
rule.
items:
description: The plugin supports the following rules
properties:
add:
additionalProperties:
type: string
description: Add a key/value pair with key KEY and
value VALUE if KEY does not exist
type: object
copy:
additionalProperties:
type: string
description: Copy a key/value pair with key KEY to
COPIED_KEY if KEY exists AND COPIED_KEY does not
exist
type: object
hardCopy:
additionalProperties:
type: string
description: Copy a key/value pair with key KEY to
COPIED_KEY if KEY exists. If COPIED_KEY already
exists, this field is overwritten
type: object
hardRename:
additionalProperties:
type: string
description: Rename a key/value pair with key KEY
to RENAMED_KEY if KEY exists. If RENAMED_KEY already
exists, this field is overwritten
type: object
remove:
description: Remove a key/value pair with key KEY
if it exists
type: string
removeRegex:
description: Remove all key/value pairs with key matching
regexp KEY
type: string
removeWildcard:
description: Remove all key/value pairs with key matching
wildcard KEY
type: string
rename:
additionalProperties:
type: string
description: Rename a key/value pair with key KEY
to RENAMED_KEY if KEY exists AND RENAMED_KEY does
not exist
type: object
set:
additionalProperties:
type: string
description: Add a key/value pair with key KEY and
value VALUE. If KEY already exists, this field is
overwritten
type: object
type: object
type: array
type: object
multiline:
description: Multiline defines a Multiline configuration.
properties:
keyContent:
description: Key name that holds the content to process.
Note that a Multiline Parser definition can already specify
the key_content to use, but this option allows to overwrite
that value for the purpose of the filter.
type: string
parser:
description: Specify one or multiple Multiline Parsing definitions
to apply to the content. You can specify multiple multiline
parsers to detect different formats by separating them
with a comma.
type: string
required:
- parser
type: object
nest:
description: Nest defines Nest Filter configuration.
properties:
addPrefix:
description: Prefix affected keys with this string
type: string
nestUnder:
description: Nest records matching the Wildcard under this
key
type: string
nestedUnder:
description: Lift records nested under the Nested_under
key
type: string
operation:
description: Select the operation nest or lift
enum:
- nest
- lift
type: string
removePrefix:
description: Remove prefix from affected keys if it matches
this string
type: string
wildcard:
description: Nest records which field matches the wildcard
items:
type: string
type: array
type: object
parser:
description: Parser defines Parser Filter configuration.
properties:
keyName:
description: Specify field name in record to parse.
type: string
parser:
description: Specify the parser name to interpret the field.
Multiple Parser entries are allowed (split by comma).
type: string
preserveKey:
description: Keep original Key_Name field in the parsed
result. If false, the field will be removed.
type: boolean
reserveData:
description: Keep all other original fields in the parsed
result. If false, all other original fields will be removed.
type: boolean
unescapeKey:
description: 'If the key is a escaped string (e.g: stringify
JSON), unescape the string before to apply the parser.'
type: boolean
type: object
recordModifier:
description: RecordModifier defines Record Modifier Filter configuration.
properties:
records:
description: Append fields. This parameter needs key and
value pair.
items:
type: string
type: array
removeKeys:
description: If the key is matched, that field is removed.
items:
type: string
type: array
whitelistKeys:
description: If the key is not matched, that field is removed.
items:
type: string
type: array
type: object
rewriteTag:
description: RewriteTag defines a RewriteTag configuration.
properties:
emitterName:
description: When the filter emits a record under the new
Tag, there is an internal emitter plugin that takes care
of the job. Since this emitter expose metrics as any other
component of the pipeline, you can use this property to
configure an optional name for it.
type: string
rules:
description: 'Defines the matching criteria and the format
of the Tag for the matching record. The Rule format have
four components: KEY REGEX NEW_TAG KEEP.'
items:
type: string
type: array
type: object
throttle:
description: Throttle defines a Throttle configuration.
properties:
interval:
description: Interval is the time interval expressed in
"sleep" format. e.g. 3s, 1.5m, 0.5h, etc.
pattern: ^\d+(\.[0-9]{0,2})?(s|m|h|d)?$
type: string
printStatus:
description: PrintStatus represents whether to print status
messages with current rate and the limits to information
logs.
type: boolean
rate:
description: Rate is the amount of messages for the time.
format: int64
type: integer
window:
description: Window is the amount of intervals to calculate
average over.
format: int64
type: integer
type: object
type: object
type: array
match:
description: A pattern to match against the tags of incoming records.
It's case-sensitive and support the star (*) character as a wildcard.
type: string
matchRegex:
description: A regular expression to match against the tags of incoming
records. Use this option if you want to use the full regex syntax.
type: string
type: object
type: object
served: true
storage: true
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.4.1
name: clusterfilters.fluentd.fluent.io
spec:
group: fluentd.fluent.io
names:
kind: ClusterFilter
listKind: ClusterFilterList
plural: clusterfilters
shortNames:
- cfdf
singular: clusterfilter
scope: Cluster
versions:
- name: v1alpha1
schema:
openAPIV3Schema:
description: ClusterFilter is the Schema for the clusterfilters 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/sig-architecture/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/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
description: ClusterFilterSpec defines the desired state of ClusterFilter
properties:
filters:
items:
description: Filter defines all available filter plugins and their
parameters.
properties:
grep:
description: The filter_grep filter plugin
properties:
and:
items:
description: And defines the parameters for the "and"
plugin
properties:
exclude:
description: Exclude defines the parameters for the
exclude plugin
properties:
key:
type: string
pattern:
type: string
type: object
regexp:
description: Regexp defines the parameters for the
regexp plugin
properties:
key:
type: string
pattern:
type: string
type: object
type: object
type: array
exclude:
items:
description: Exclude defines the parameters for the exclude
plugin
properties:
key:
type: string
pattern:
type: string
type: object
type: array
or:
items:
description: Or defines the parameters for the "or" plugin
properties:
exclude:
description: Exclude defines the parameters for the
exclude plugin
properties:
key:
type: string
pattern:
type: string
type: object
regexp:
description: Regexp defines the parameters for the
regexp plugin
properties:
key:
type: string
pattern:
type: string
type: object
type: object
type: array
regexp:
items:
description: Regexp defines the parameters for the regexp
plugin
properties:
key:
type: string
pattern:
type: string
type: object
type: array
type: object
logLevel:
description: The @log_level parameter specifies the plugin-specific
logging level
type: string
parser:
description: The filter_parser filter plugin
properties:
emitInvalidRecordToError:
description: 'Emits invalid record to @ERROR label. Invalid
cases are: key does not exist;the format is not matched;an
unexpected error. If you want to ignore these errors,
set false.'
type: boolean
hashValueField:
description: Stores the parsed values as a hash value in
a field.
type: string
injectKeyPrefix:
description: Stores the parsed values with the specified
key name prefix.
type: string
keyName:
description: 'Specifies the field name in the record to
parse. Required parameter. i.e: If set keyName to log,
{"key":"value","log":"{\"time\":1622473200,\"user\":1}"}
=> {"user":1}'
type: string
parse:
description: Parse defines various parameters for the parse
plugin
properties:
estimateCurrentEvent:
description: If true, use Fluent::Eventnow(current time)
as a timestamp when time_key is specified.
type: boolean
expression:
description: Specifies the regular expression for matching
logs. Regular expression also supports i and m suffix.
type: string
id:
description: The @id parameter specifies a unique name
for the configuration.
type: string
keepTimeKey:
description: If true, keep time field in th record.
type: boolean
localtime:
description: If true, uses local time.
type: boolean
logLevel:
description: The @log_level parameter specifies the
plugin-specific logging level
type: string
timeFormat:
description: Process value according to the specified
format. This is available only when time_type is *string
type: string
timeFormatFallbacks:
description: Uses the specified time format as a fallback
in the specified order. You can parse undetermined
time format by using time_format_fallbacks. This options
is enabled when time_type is mixed.
type: string
timeKey:
description: Specify time field for event time. If the
event doesn't have this field, current time is used.
type: string
timeType:
description: parses/formats value according to this
type, default is *string
enum:
- float
- unixtime
- '*string'
- mixed
type: string
timeout:
description: Specify timeout for parse processing.
pattern: ^\d+(\.[0-9]{0,2})?(s|m|h|d)?$
type: string
timezone:
description: Uses the specified timezone.
type: string
type:
description: The @type parameter specifies the type
of the plugin.
enum:
- regexp
- apache2
- apache_error
- nginx
- syslog
- csv
- tsv
- ltsv
- json
- multiline
- none
type: string
types:
description: 'Specify types for converting field into
another, i.e: types user_id:integer,paid:bool,paid_usd_amount:float'
type: string
utc:
description: If true, uses UTC.
type: boolean
required:
- type
type: object
removeKeyNameField:
description: Removes key_name field when parsing is succeeded.
type: boolean
replaceInvalidSequence:
description: If true, invalid string is replaced with safe
characters and re-parse it.
type: boolean
reserveData:
description: 'Keeps the original key-value pair in the parsed
result. Default is false. i.e: If set keyName to log,
reverseData to true, {"key":"value","log":"{\"user\":1,\"num\":2}"}
=> {"key":"value","log":"{\"user\":1,\"num\":2}","user":1,"num":2}'
type: boolean
reserveTime:
description: Keeps the original event time in the parsed
result. Default is false.
type: boolean
required:
- keyName
- parse
type: object
recordTransformer:
description: The filter_record_transformer filter plugin
properties:
autoTypecast:
description: Automatically casts the field types. Default
is false. This option is effective only for field values
comprised of a single placeholder.
type: boolean
enableRuby:
description: 'When set to true, the full Ruby syntax is
enabled in the ${...} expression. The default value is
false. i.e: jsonized_record ${record.to_json}'
type: boolean
keepKeys:
description: A list of keys to keep. Only relevant if renew_record
is set to true.
type: string
records:
items:
description: The parameters inside <record> directives
are considered to be new key-value pairs
properties:
key:
description: New field can be defined as key
type: string
value:
description: The value must from Record properties.
See https://docs.fluentd.org/filter/record_transformer#less-than-record-greater-than-directive
type: string
required:
- key
- value
type: object
type: array
removeKeys:
description: A list of keys to delete. Supports nested field
via record_accessor syntax since v1.1.0.
type: string
renewRecord:
description: By default, the record transformer filter mutates
the incoming data. However, if this parameter is set to
true, it modifies a new empty hash instead.
type: boolean
renewTimeKey:
description: renew_time_key foo overwrites the time of events
with a value of the record field foo if exists. The value
of foo must be a Unix timestamp.
type: string
type: object
stdout:
description: The filter_stdout filter plugin
properties:
format:
description: The format section
properties:
delimiter:
description: Delimiter for each field.
type: string
id:
description: The @id parameter specifies a unique name
for the configuration.
type: string
localtime:
description: If true, uses local time.
type: boolean
logLevel:
description: The @log_level parameter specifies the
plugin-specific logging level
type: string
newline:
description: Specify newline characters.
enum:
- lf
- crlf
type: string
outputTag:
description: Output tag field if true.
type: boolean
outputTime:
description: Output time field if true.
type: boolean
timeFormat:
description: Process value according to the specified
format. This is available only when time_type is *string
type: string
timeFormatFallbacks:
description: Uses the specified time format as a fallback
in the specified order. You can parse undetermined
time format by using time_format_fallbacks. This options
is enabled when time_type is mixed.
type: string
timeType:
description: parses/formats value according to this
type, default is *string
enum:
- float
- unixtime
- '*string'
- mixed
type: string
timezone:
description: Uses the specified timezone.
type: string
type:
description: The @type parameter specifies the type
of the plugin.
enum:
- out_file
- json
- ltsv
- csv
- msgpack
- hash
- single_value
type: string
utc:
description: If true, uses UTC.
type: boolean
type: object
inject:
description: The inject section
properties:
hostname:
description: Hostname value
type: string
hostnameKey:
description: The field name to inject hostname
type: string
inline:
description: Time section
properties:
localtime:
description: If true, uses local time.
type: boolean
timeFormat:
description: Process value according to the specified
format. This is available only when time_type
is *string
type: string
timeFormatFallbacks:
description: Uses the specified time format as a
fallback in the specified order. You can parse
undetermined time format by using time_format_fallbacks.
This options is enabled when time_type is mixed.
type: string
timeType:
description: parses/formats value according to this
type, default is *string
enum:
- float
- unixtime
- '*string'
- mixed
type: string
timezone:
description: Uses the specified timezone.
type: string
utc:
description: If true, uses UTC.
type: boolean
type: object
tagKey:
description: The field name to inject tag
type: string
timeKey:
description: The field name to inject time
type: string
workerIdKey:
description: The field name to inject worker_id
type: string
type: object
type: object
type: object
type: array
type: object
status:
description: ClusterFilterStatus defines the observed state of ClusterFilter
type: object
type: object
served: true
storage: true
subresources:
status: {}
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.4.1
name: clusterfluentbitconfigs.fluentbit.fluent.io
spec:
group: fluentbit.fluent.io
names:
kind: ClusterFluentBitConfig
listKind: ClusterFluentBitConfigList
plural: clusterfluentbitconfigs
shortNames:
- fbc
singular: clusterfluentbitconfig
scope: Cluster
versions:
- name: v1alpha2
schema:
openAPIV3Schema:
description: ClusterFluentBitConfig is the Schema for the cluster-level fluentbitconfigs
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/sig-architecture/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/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
description: FluentBitConfigSpec defines the desired state of ClusterFluentBitConfig
properties:
filterSelector:
description: Select filter plugins
properties:
matchExpressions:
description: matchExpressions is a list of label selector requirements.
The requirements are ANDed.
items: