From 3127c4c24b9200efcefabeea64629fced2beb7e5 Mon Sep 17 00:00:00 2001 From: Srinivas Chippagiri Date: Wed, 11 Nov 2026 17:47:45 -0800 Subject: [PATCH] feat(fluentd): add elasticsearchDynamic output Adds an elasticsearchDynamic output that renders @type elasticsearch_dynamic. It reuses the elasticsearch parameters, so host, index and logstash values can use placeholders like ${tag_parts[1]} or ${record['key']}. Signed-off-by: Srinivas Chippagiri --- apis/fluentd/v1alpha1/plugins/output/types.go | 26 +- apis/fluentd/v1alpha1/plugins/params/const.go | 1 + .../fluentd-cluster-cfg-output-es-dynamic.cfg | 25 + apis/fluentd/v1alpha1/tests/helper_test.go | 5 + apis/fluentd/v1alpha1/tests/tools.go | 18 + .../fluentd.fluent.io_clusteroutputs.yaml | 305 ++++ .../templates/fluentd.fluent.io_outputs.yaml | 305 ++++ .../fluentd.fluent.io_clusteroutputs.yaml | 305 ++++ .../crds/fluentd.fluent.io_outputs.yaml | 305 ++++ .../fluentd.fluent.io_clusteroutputs.yaml | 305 ++++ .../crd/bases/fluentd.fluent.io_outputs.yaml | 305 ++++ docs/plugins/fluentd/output/types.md | 1 + manifests/setup/setup.yaml | 1318 ++++++++++++----- 13 files changed, 2861 insertions(+), 363 deletions(-) create mode 100644 apis/fluentd/v1alpha1/tests/expected/fluentd-cluster-cfg-output-es-dynamic.cfg diff --git a/apis/fluentd/v1alpha1/plugins/output/types.go b/apis/fluentd/v1alpha1/plugins/output/types.go index b7c18bbe4..ad625cd8d 100644 --- a/apis/fluentd/v1alpha1/plugins/output/types.go +++ b/apis/fluentd/v1alpha1/plugins/output/types.go @@ -35,6 +35,9 @@ type Output struct { Elasticsearch *Elasticsearch `json:"elasticsearch,omitempty"` // out_es datastreams plugin ElasticsearchDataStream *ElasticsearchDataStream `json:"elasticsearchDataStream,omitempty"` + // out_es dynamic plugin (elasticsearch_dynamic). It takes the same parameters as elasticsearch, + // but host, port, index and logstash values can use placeholders like ${tag_parts[1]} or ${record['key']}. + ElasticsearchDynamic *Elasticsearch `json:"elasticsearchDynamic,omitempty"` // out_opensearch plugin Opensearch *Opensearch `json:"opensearch,omitempty"` // out_kafka plugin @@ -135,7 +138,7 @@ func (o *Output) Params(loader plugins.SecretLoader) (*params.PluginStore, error if o.Elasticsearch != nil { ps.InsertType(string(params.ElasticsearchOutputType)) - return o.elasticsearchPlugin(ps, loader) + return o.elasticsearchPlugin(o.Elasticsearch, ps, loader) } if o.ElasticsearchDataStream != nil { @@ -143,6 +146,11 @@ func (o *Output) Params(loader plugins.SecretLoader) (*params.PluginStore, error return o.elasticsearchDataStreamPlugin(ps, loader) } + if o.ElasticsearchDynamic != nil { + ps.InsertType(string(params.ElasticsearchDynamicOutputType)) + return o.elasticsearchPlugin(o.ElasticsearchDynamic, ps, loader) + } + if o.Opensearch != nil { ps.InsertType(string(params.OpensearchOutputType)) return o.opensearchPlugin(ps, loader) @@ -401,22 +409,22 @@ func (o *Output) elasticsearchPluginCommon(cmn *ElasticsearchCommon, parent *par return parent, nil } -func (o *Output) elasticsearchPlugin(parent *params.PluginStore, loader plugins.SecretLoader) (*params.PluginStore, error) { - parent, err := o.elasticsearchPluginCommon(&o.Elasticsearch.ElasticsearchCommon, parent, loader) +func (o *Output) elasticsearchPlugin(es *Elasticsearch, parent *params.PluginStore, loader plugins.SecretLoader) (*params.PluginStore, error) { + parent, err := o.elasticsearchPluginCommon(&es.ElasticsearchCommon, parent, loader) if err != nil { return nil, err } - if o.Elasticsearch.IndexName != nil { - parent.InsertPairs("index_name", fmt.Sprint(*o.Elasticsearch.IndexName)) + if es.IndexName != nil { + parent.InsertPairs("index_name", fmt.Sprint(*es.IndexName)) } - if o.Elasticsearch.LogstashFormat != nil { - parent.InsertPairs("logstash_format", fmt.Sprint(*o.Elasticsearch.LogstashFormat)) + if es.LogstashFormat != nil { + parent.InsertPairs("logstash_format", fmt.Sprint(*es.LogstashFormat)) } - if o.Elasticsearch.LogstashPrefix != nil { - parent.InsertPairs("logstash_prefix", fmt.Sprint(*o.Elasticsearch.LogstashPrefix)) + if es.LogstashPrefix != nil { + parent.InsertPairs("logstash_prefix", fmt.Sprint(*es.LogstashPrefix)) } return parent, nil diff --git a/apis/fluentd/v1alpha1/plugins/params/const.go b/apis/fluentd/v1alpha1/plugins/params/const.go index 424669a95..c0eb368fa 100644 --- a/apis/fluentd/v1alpha1/plugins/params/const.go +++ b/apis/fluentd/v1alpha1/plugins/params/const.go @@ -67,6 +67,7 @@ const ( KafkaOutputType OutputType = "kafka2" ElasticsearchOutputType OutputType = "elasticsearch" ElasticsearchDataStreamOutputType OutputType = "elasticsearch_data_stream" + ElasticsearchDynamicOutputType OutputType = "elasticsearch_dynamic" OpensearchOutputType OutputType = "opensearch" S3OutputType OutputType = "s3" LokiOutputType OutputType = "loki" diff --git a/apis/fluentd/v1alpha1/tests/expected/fluentd-cluster-cfg-output-es-dynamic.cfg b/apis/fluentd/v1alpha1/tests/expected/fluentd-cluster-cfg-output-es-dynamic.cfg new file mode 100644 index 000000000..b797b433f --- /dev/null +++ b/apis/fluentd/v1alpha1/tests/expected/fluentd-cluster-cfg-output-es-dynamic.cfg @@ -0,0 +1,25 @@ + + @type forward + bind 0.0.0.0 + port 24224 + + + @id main + @type label_router + + @label @a2170d34e9940ec56d328100e375c43e + + namespaces default,kube-system + + + + \ No newline at end of file diff --git a/apis/fluentd/v1alpha1/tests/helper_test.go b/apis/fluentd/v1alpha1/tests/helper_test.go index ce48dfa1f..b5c02e54b 100644 --- a/apis/fluentd/v1alpha1/tests/helper_test.go +++ b/apis/fluentd/v1alpha1/tests/helper_test.go @@ -50,6 +50,11 @@ func Test_ClusterCfgOutput2ESBulkThreshold(t *testing.T) { testClusterConfigWithFiltersAndOutputs(t, sl, Fluentd, &FluentdClusterFluentdConfig1, []fluentdv1alpha1.ClusterFilter{}, []fluentdv1alpha1.ClusterOutput{FluentdclusterOutput2ESBulkThreshold}, "./expected/fluentd-cluster-cfg-output-es-bulk-threshold.cfg", false) } +func Test_ClusterCfgOutput2ESDynamic(t *testing.T) { + sl := plugins.NewSecretLoader(nil, Fluentd.Namespace, logr.Logger{}) + testClusterConfigWithFiltersAndOutputs(t, sl, Fluentd, &FluentdClusterFluentdConfig1, []fluentdv1alpha1.ClusterFilter{}, []fluentdv1alpha1.ClusterOutput{FluentdclusterOutput2ESDynamic}, "./expected/fluentd-cluster-cfg-output-es-dynamic.cfg", false) +} + func Test_ClusterCfgOutput2ESDataStream(t *testing.T) { sl := plugins.NewSecretLoader(nil, Fluentd.Namespace, logr.Logger{}) testClusterConfigWithFiltersAndOutputs(t, sl, Fluentd, &FluentdClusterFluentdConfig1, []fluentdv1alpha1.ClusterFilter{}, []fluentdv1alpha1.ClusterOutput{FluentdclusterOutput2ESDataStream}, "./expected/fluentd-cluster-cfg-output-es-data-stream.cfg", false) diff --git a/apis/fluentd/v1alpha1/tests/tools.go b/apis/fluentd/v1alpha1/tests/tools.go index aa5fccdc9..a49a60199 100644 --- a/apis/fluentd/v1alpha1/tests/tools.go +++ b/apis/fluentd/v1alpha1/tests/tools.go @@ -385,6 +385,23 @@ spec: bulkMessageRequestThreshold: 20000000 ` + FluentdclusterOutput2ESDynamic fluentdv1alpha1.ClusterOutput + FluentdclusterOutput2ESDynamicRaw = ` +apiVersion: fluentd.fluent.io/v1alpha1 +kind: ClusterOutput +metadata: + name: fluentd-output-es-dynamic + labels: + output.fluentd.fluent.io/enabled: "true" +spec: + outputs: + - elasticsearchDynamic: + host: elasticsearch-logging-data.kubesphere-logging-system.svc + port: 9200 + logstashFormat: true + logstashPrefix: ks-${record['kubernetes']['namespace_name']} +` + FluentdclusterOutput2ESDataStream fluentdv1alpha1.ClusterOutput FluentdclusterOutput2ESDataStreamRaw = ` apiVersion: fluentd.fluent.io/v1alpha1 @@ -1279,6 +1296,7 @@ func init() { MustParseIntoObject(FluentdClusterOutputMemoryBufferRaw, &FluentdClusterOutputMemoryBuffer) MustParseIntoObject(FluentdclusterOutput2ESRaw, &FluentdclusterOutput2ES) MustParseIntoObject(FluentdclusterOutput2ESBulkThresholdRaw, &FluentdclusterOutput2ESBulkThreshold) + MustParseIntoObject(FluentdclusterOutput2ESDynamicRaw, &FluentdclusterOutput2ESDynamic) MustParseIntoObject(FluentdclusterOutput2ESDataStreamRaw, &FluentdclusterOutput2ESDataStream) MustParseIntoObject(FluentdclusterOutput2CopyESDataStreamRaw, &FluentdclusterOutput2CopyESDataStream) MustParseIntoObject(FluentdOutput2ES1Raw, &FluentdOutput2ES1) diff --git a/charts/fluent-operator-fluentd-crds/templates/fluentd.fluent.io_clusteroutputs.yaml b/charts/fluent-operator-fluentd-crds/templates/fluentd.fluent.io_clusteroutputs.yaml index fc7e82cad..163e9a7bf 100644 --- a/charts/fluent-operator-fluentd-crds/templates/fluentd.fluent.io_clusteroutputs.yaml +++ b/charts/fluent-operator-fluentd-crds/templates/fluentd.fluent.io_clusteroutputs.yaml @@ -1197,6 +1197,311 @@ spec: required: - dataStreamName type: object + elasticsearchDynamic: + description: |- + out_es dynamic plugin (elasticsearch_dynamic). It takes the same parameters as elasticsearch, + but host, port, index and logstash values can use placeholders like ${tag_parts[1]} or ${record['key']}. + properties: + bulkMessageRequestThreshold: + description: |- + Optional, Configure bulk_message_request_threshold splitting threshold size. + Default value is -1 (unlimited). + If a bulk message exceeds this threshold, the request is split into multiple smaller requests. + format: int32 + type: integer + caFile: + description: Optional, Absolute path to CA certificate file + type: string + clientCert: + description: Optional, Absolute path to client Certificate + file + type: string + clientKey: + description: Optional, Absolute path to client private Key + file + type: string + clientKeyPassword: + description: Optional, password for ClientKey file + properties: + valueFrom: + description: ValueSource defines how to find a value's + key. + properties: + secretKeyRef: + description: Selects a key of a secret in the pod's + namespace + properties: + key: + description: The key of the secret to select + from. Must be a valid secret key. + type: string + name: + default: "" + description: |- + Name of the referent. + This field is effectively required, but due to backwards compatibility is + allowed to be empty. Instances of this type with an empty value here are + almost certainly wrong. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + type: string + optional: + description: Specify whether the Secret or its + key must be defined + type: boolean + required: + - key + type: object + x-kubernetes-map-type: atomic + type: object + type: object + cloudAuth: + description: Authenticate towards Elastic Cloud using cloudAuth. + properties: + valueFrom: + description: ValueSource defines how to find a value's + key. + properties: + secretKeyRef: + description: Selects a key of a secret in the pod's + namespace + properties: + key: + description: The key of the secret to select + from. Must be a valid secret key. + type: string + name: + default: "" + description: |- + Name of the referent. + This field is effectively required, but due to backwards compatibility is + allowed to be empty. Instances of this type with an empty value here are + almost certainly wrong. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + type: string + optional: + description: Specify whether the Secret or its + key must be defined + type: boolean + required: + - key + type: object + x-kubernetes-map-type: atomic + type: object + type: object + cloudId: + description: |- + Authenticate towards Elastic Cloud using CloudId. If set, cloudAuth must + be set as well and host, port, user and password are ignored. + properties: + valueFrom: + description: ValueSource defines how to find a value's + key. + properties: + secretKeyRef: + description: Selects a key of a secret in the pod's + namespace + properties: + key: + description: The key of the secret to select + from. Must be a valid secret key. + type: string + name: + default: "" + description: |- + Name of the referent. + This field is effectively required, but due to backwards compatibility is + allowed to be empty. Instances of this type with an empty value here are + almost certainly wrong. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + type: string + optional: + description: Specify whether the Secret or its + key must be defined + type: boolean + required: + - key + type: object + x-kubernetes-map-type: atomic + type: object + type: object + enableIlm: + description: Optional, Enable Index Lifecycle Management + (ILM) + type: boolean + failOnPuttingTemplateRetryExceeded: + description: 'Optional, Indicates whether to fail when max_retry_putting_template + is exceeded. If you have multiple output plugin, you could + use this property to do not fail on fluentd statup (default: + false)' + type: boolean + host: + description: 'The hostname of your Elasticsearch node (default: + localhost).' + type: string + hosts: + description: Hosts defines a list of hosts if you want to + connect to more than one Elasticsearch nodes + type: string + ilmPolicy: + description: Optional, Specify ILM policy contents as Hash + type: string + ilmPolicyId: + description: Optional, Specify ILM policy id + type: string + ilmPolicyOverride: + description: Optional, Specify whether overwriting ilm policy + or not + type: boolean + indexName: + description: IndexName defines the placeholder syntax of + Fluentd plugin API. See https://docs.fluentd.org/configuration/buffer-section. + type: string + logEs400Reason: + description: Optional, Enable logging of 400 reason without + enabling debug log level + type: boolean + logstashFormat: + description: 'If true, Fluentd uses the conventional index + name format logstash-%Y.%m.%d (default: false). This option + supersedes the index_name option.' + type: boolean + logstashPrefix: + description: 'LogstashPrefix defines the logstash prefix + index name to write events when logstash_format is true + (default: logstash).' + type: string + maxRetryPuttingTemplate: + description: 'Optional, You can specify times of retry putting + template (default: 10)' + format: int32 + type: integer + password: + description: Optional, The login credentials to connect + to Elasticsearch + properties: + valueFrom: + description: ValueSource defines how to find a value's + key. + properties: + secretKeyRef: + description: Selects a key of a secret in the pod's + namespace + properties: + key: + description: The key of the secret to select + from. Must be a valid secret key. + type: string + name: + default: "" + description: |- + Name of the referent. + This field is effectively required, but due to backwards compatibility is + allowed to be empty. Instances of this type with an empty value here are + almost certainly wrong. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + type: string + optional: + description: Specify whether the Secret or its + key must be defined + type: boolean + required: + - key + type: object + x-kubernetes-map-type: atomic + type: object + type: object + path: + description: 'Path defines the REST API endpoint of Elasticsearch + to post write requests (default: nil).' + type: string + port: + description: 'The port number of your Elasticsearch node + (default: 9200).' + format: int32 + maximum: 65535 + minimum: 1 + type: integer + reconnectOnError: + description: 'Optional, Indicates that the plugin should + reset connection on any error (reconnect on next send) + (default: false)' + type: boolean + reloadAfter: + description: Optional, When ReloadConnections true, this + is the integer number of operations after which the plugin + will reload the connections. The default value is 10000. + format: int32 + type: integer + reloadConnections: + description: 'Optional, Automatically reload connection + after 10000 documents (default: true)' + type: boolean + reloadOnFailure: + description: 'Optional, Indicates that the elasticsearch-transport + will try to reload the nodes addresses if there is a failure + while making the request, this can be useful to quickly + remove a dead node from the list of addresses (default: + false)' + type: boolean + requestTimeout: + description: 'Optional, HTTP Timeout (default: 5)' + pattern: ^\d+(s|m|h|d)$ + type: string + scheme: + description: 'Specify https if your Elasticsearch endpoint + supports SSL (default: http).' + type: string + snifferClassName: + description: Optional, Provide a different sniffer class + name + type: string + sslVerify: + description: Optional, Force certificate validation + type: boolean + suppressTypeName: + description: Optional, Suppress '[types removal]' warnings + on elasticsearch 7.x + type: boolean + templateOverwrite: + description: 'Optional, Always update the template, even + if it already exists (default: false)' + type: boolean + user: + description: Optional, The login credentials to connect + to Elasticsearch + properties: + valueFrom: + description: ValueSource defines how to find a value's + key. + properties: + secretKeyRef: + description: Selects a key of a secret in the pod's + namespace + properties: + key: + description: The key of the secret to select + from. Must be a valid secret key. + type: string + name: + default: "" + description: |- + Name of the referent. + This field is effectively required, but due to backwards compatibility is + allowed to be empty. Instances of this type with an empty value here are + almost certainly wrong. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + type: string + optional: + description: Specify whether the Secret or its + key must be defined + type: boolean + required: + - key + type: object + x-kubernetes-map-type: atomic + type: object + type: object + type: object format: description: format section properties: diff --git a/charts/fluent-operator-fluentd-crds/templates/fluentd.fluent.io_outputs.yaml b/charts/fluent-operator-fluentd-crds/templates/fluentd.fluent.io_outputs.yaml index f65e97ae2..14f0b4ab1 100644 --- a/charts/fluent-operator-fluentd-crds/templates/fluentd.fluent.io_outputs.yaml +++ b/charts/fluent-operator-fluentd-crds/templates/fluentd.fluent.io_outputs.yaml @@ -1197,6 +1197,311 @@ spec: required: - dataStreamName type: object + elasticsearchDynamic: + description: |- + out_es dynamic plugin (elasticsearch_dynamic). It takes the same parameters as elasticsearch, + but host, port, index and logstash values can use placeholders like ${tag_parts[1]} or ${record['key']}. + properties: + bulkMessageRequestThreshold: + description: |- + Optional, Configure bulk_message_request_threshold splitting threshold size. + Default value is -1 (unlimited). + If a bulk message exceeds this threshold, the request is split into multiple smaller requests. + format: int32 + type: integer + caFile: + description: Optional, Absolute path to CA certificate file + type: string + clientCert: + description: Optional, Absolute path to client Certificate + file + type: string + clientKey: + description: Optional, Absolute path to client private Key + file + type: string + clientKeyPassword: + description: Optional, password for ClientKey file + properties: + valueFrom: + description: ValueSource defines how to find a value's + key. + properties: + secretKeyRef: + description: Selects a key of a secret in the pod's + namespace + properties: + key: + description: The key of the secret to select + from. Must be a valid secret key. + type: string + name: + default: "" + description: |- + Name of the referent. + This field is effectively required, but due to backwards compatibility is + allowed to be empty. Instances of this type with an empty value here are + almost certainly wrong. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + type: string + optional: + description: Specify whether the Secret or its + key must be defined + type: boolean + required: + - key + type: object + x-kubernetes-map-type: atomic + type: object + type: object + cloudAuth: + description: Authenticate towards Elastic Cloud using cloudAuth. + properties: + valueFrom: + description: ValueSource defines how to find a value's + key. + properties: + secretKeyRef: + description: Selects a key of a secret in the pod's + namespace + properties: + key: + description: The key of the secret to select + from. Must be a valid secret key. + type: string + name: + default: "" + description: |- + Name of the referent. + This field is effectively required, but due to backwards compatibility is + allowed to be empty. Instances of this type with an empty value here are + almost certainly wrong. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + type: string + optional: + description: Specify whether the Secret or its + key must be defined + type: boolean + required: + - key + type: object + x-kubernetes-map-type: atomic + type: object + type: object + cloudId: + description: |- + Authenticate towards Elastic Cloud using CloudId. If set, cloudAuth must + be set as well and host, port, user and password are ignored. + properties: + valueFrom: + description: ValueSource defines how to find a value's + key. + properties: + secretKeyRef: + description: Selects a key of a secret in the pod's + namespace + properties: + key: + description: The key of the secret to select + from. Must be a valid secret key. + type: string + name: + default: "" + description: |- + Name of the referent. + This field is effectively required, but due to backwards compatibility is + allowed to be empty. Instances of this type with an empty value here are + almost certainly wrong. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + type: string + optional: + description: Specify whether the Secret or its + key must be defined + type: boolean + required: + - key + type: object + x-kubernetes-map-type: atomic + type: object + type: object + enableIlm: + description: Optional, Enable Index Lifecycle Management + (ILM) + type: boolean + failOnPuttingTemplateRetryExceeded: + description: 'Optional, Indicates whether to fail when max_retry_putting_template + is exceeded. If you have multiple output plugin, you could + use this property to do not fail on fluentd statup (default: + false)' + type: boolean + host: + description: 'The hostname of your Elasticsearch node (default: + localhost).' + type: string + hosts: + description: Hosts defines a list of hosts if you want to + connect to more than one Elasticsearch nodes + type: string + ilmPolicy: + description: Optional, Specify ILM policy contents as Hash + type: string + ilmPolicyId: + description: Optional, Specify ILM policy id + type: string + ilmPolicyOverride: + description: Optional, Specify whether overwriting ilm policy + or not + type: boolean + indexName: + description: IndexName defines the placeholder syntax of + Fluentd plugin API. See https://docs.fluentd.org/configuration/buffer-section. + type: string + logEs400Reason: + description: Optional, Enable logging of 400 reason without + enabling debug log level + type: boolean + logstashFormat: + description: 'If true, Fluentd uses the conventional index + name format logstash-%Y.%m.%d (default: false). This option + supersedes the index_name option.' + type: boolean + logstashPrefix: + description: 'LogstashPrefix defines the logstash prefix + index name to write events when logstash_format is true + (default: logstash).' + type: string + maxRetryPuttingTemplate: + description: 'Optional, You can specify times of retry putting + template (default: 10)' + format: int32 + type: integer + password: + description: Optional, The login credentials to connect + to Elasticsearch + properties: + valueFrom: + description: ValueSource defines how to find a value's + key. + properties: + secretKeyRef: + description: Selects a key of a secret in the pod's + namespace + properties: + key: + description: The key of the secret to select + from. Must be a valid secret key. + type: string + name: + default: "" + description: |- + Name of the referent. + This field is effectively required, but due to backwards compatibility is + allowed to be empty. Instances of this type with an empty value here are + almost certainly wrong. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + type: string + optional: + description: Specify whether the Secret or its + key must be defined + type: boolean + required: + - key + type: object + x-kubernetes-map-type: atomic + type: object + type: object + path: + description: 'Path defines the REST API endpoint of Elasticsearch + to post write requests (default: nil).' + type: string + port: + description: 'The port number of your Elasticsearch node + (default: 9200).' + format: int32 + maximum: 65535 + minimum: 1 + type: integer + reconnectOnError: + description: 'Optional, Indicates that the plugin should + reset connection on any error (reconnect on next send) + (default: false)' + type: boolean + reloadAfter: + description: Optional, When ReloadConnections true, this + is the integer number of operations after which the plugin + will reload the connections. The default value is 10000. + format: int32 + type: integer + reloadConnections: + description: 'Optional, Automatically reload connection + after 10000 documents (default: true)' + type: boolean + reloadOnFailure: + description: 'Optional, Indicates that the elasticsearch-transport + will try to reload the nodes addresses if there is a failure + while making the request, this can be useful to quickly + remove a dead node from the list of addresses (default: + false)' + type: boolean + requestTimeout: + description: 'Optional, HTTP Timeout (default: 5)' + pattern: ^\d+(s|m|h|d)$ + type: string + scheme: + description: 'Specify https if your Elasticsearch endpoint + supports SSL (default: http).' + type: string + snifferClassName: + description: Optional, Provide a different sniffer class + name + type: string + sslVerify: + description: Optional, Force certificate validation + type: boolean + suppressTypeName: + description: Optional, Suppress '[types removal]' warnings + on elasticsearch 7.x + type: boolean + templateOverwrite: + description: 'Optional, Always update the template, even + if it already exists (default: false)' + type: boolean + user: + description: Optional, The login credentials to connect + to Elasticsearch + properties: + valueFrom: + description: ValueSource defines how to find a value's + key. + properties: + secretKeyRef: + description: Selects a key of a secret in the pod's + namespace + properties: + key: + description: The key of the secret to select + from. Must be a valid secret key. + type: string + name: + default: "" + description: |- + Name of the referent. + This field is effectively required, but due to backwards compatibility is + allowed to be empty. Instances of this type with an empty value here are + almost certainly wrong. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + type: string + optional: + description: Specify whether the Secret or its + key must be defined + type: boolean + required: + - key + type: object + x-kubernetes-map-type: atomic + type: object + type: object + type: object format: description: format section properties: diff --git a/charts/fluent-operator/crds/fluentd.fluent.io_clusteroutputs.yaml b/charts/fluent-operator/crds/fluentd.fluent.io_clusteroutputs.yaml index dcb77c818..2db8e3843 100644 --- a/charts/fluent-operator/crds/fluentd.fluent.io_clusteroutputs.yaml +++ b/charts/fluent-operator/crds/fluentd.fluent.io_clusteroutputs.yaml @@ -1195,6 +1195,311 @@ spec: required: - dataStreamName type: object + elasticsearchDynamic: + description: |- + out_es dynamic plugin (elasticsearch_dynamic). It takes the same parameters as elasticsearch, + but host, port, index and logstash values can use placeholders like ${tag_parts[1]} or ${record['key']}. + properties: + bulkMessageRequestThreshold: + description: |- + Optional, Configure bulk_message_request_threshold splitting threshold size. + Default value is -1 (unlimited). + If a bulk message exceeds this threshold, the request is split into multiple smaller requests. + format: int32 + type: integer + caFile: + description: Optional, Absolute path to CA certificate file + type: string + clientCert: + description: Optional, Absolute path to client Certificate + file + type: string + clientKey: + description: Optional, Absolute path to client private Key + file + type: string + clientKeyPassword: + description: Optional, password for ClientKey file + properties: + valueFrom: + description: ValueSource defines how to find a value's + key. + properties: + secretKeyRef: + description: Selects a key of a secret in the pod's + namespace + properties: + key: + description: The key of the secret to select + from. Must be a valid secret key. + type: string + name: + default: "" + description: |- + Name of the referent. + This field is effectively required, but due to backwards compatibility is + allowed to be empty. Instances of this type with an empty value here are + almost certainly wrong. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + type: string + optional: + description: Specify whether the Secret or its + key must be defined + type: boolean + required: + - key + type: object + x-kubernetes-map-type: atomic + type: object + type: object + cloudAuth: + description: Authenticate towards Elastic Cloud using cloudAuth. + properties: + valueFrom: + description: ValueSource defines how to find a value's + key. + properties: + secretKeyRef: + description: Selects a key of a secret in the pod's + namespace + properties: + key: + description: The key of the secret to select + from. Must be a valid secret key. + type: string + name: + default: "" + description: |- + Name of the referent. + This field is effectively required, but due to backwards compatibility is + allowed to be empty. Instances of this type with an empty value here are + almost certainly wrong. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + type: string + optional: + description: Specify whether the Secret or its + key must be defined + type: boolean + required: + - key + type: object + x-kubernetes-map-type: atomic + type: object + type: object + cloudId: + description: |- + Authenticate towards Elastic Cloud using CloudId. If set, cloudAuth must + be set as well and host, port, user and password are ignored. + properties: + valueFrom: + description: ValueSource defines how to find a value's + key. + properties: + secretKeyRef: + description: Selects a key of a secret in the pod's + namespace + properties: + key: + description: The key of the secret to select + from. Must be a valid secret key. + type: string + name: + default: "" + description: |- + Name of the referent. + This field is effectively required, but due to backwards compatibility is + allowed to be empty. Instances of this type with an empty value here are + almost certainly wrong. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + type: string + optional: + description: Specify whether the Secret or its + key must be defined + type: boolean + required: + - key + type: object + x-kubernetes-map-type: atomic + type: object + type: object + enableIlm: + description: Optional, Enable Index Lifecycle Management + (ILM) + type: boolean + failOnPuttingTemplateRetryExceeded: + description: 'Optional, Indicates whether to fail when max_retry_putting_template + is exceeded. If you have multiple output plugin, you could + use this property to do not fail on fluentd statup (default: + false)' + type: boolean + host: + description: 'The hostname of your Elasticsearch node (default: + localhost).' + type: string + hosts: + description: Hosts defines a list of hosts if you want to + connect to more than one Elasticsearch nodes + type: string + ilmPolicy: + description: Optional, Specify ILM policy contents as Hash + type: string + ilmPolicyId: + description: Optional, Specify ILM policy id + type: string + ilmPolicyOverride: + description: Optional, Specify whether overwriting ilm policy + or not + type: boolean + indexName: + description: IndexName defines the placeholder syntax of + Fluentd plugin API. See https://docs.fluentd.org/configuration/buffer-section. + type: string + logEs400Reason: + description: Optional, Enable logging of 400 reason without + enabling debug log level + type: boolean + logstashFormat: + description: 'If true, Fluentd uses the conventional index + name format logstash-%Y.%m.%d (default: false). This option + supersedes the index_name option.' + type: boolean + logstashPrefix: + description: 'LogstashPrefix defines the logstash prefix + index name to write events when logstash_format is true + (default: logstash).' + type: string + maxRetryPuttingTemplate: + description: 'Optional, You can specify times of retry putting + template (default: 10)' + format: int32 + type: integer + password: + description: Optional, The login credentials to connect + to Elasticsearch + properties: + valueFrom: + description: ValueSource defines how to find a value's + key. + properties: + secretKeyRef: + description: Selects a key of a secret in the pod's + namespace + properties: + key: + description: The key of the secret to select + from. Must be a valid secret key. + type: string + name: + default: "" + description: |- + Name of the referent. + This field is effectively required, but due to backwards compatibility is + allowed to be empty. Instances of this type with an empty value here are + almost certainly wrong. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + type: string + optional: + description: Specify whether the Secret or its + key must be defined + type: boolean + required: + - key + type: object + x-kubernetes-map-type: atomic + type: object + type: object + path: + description: 'Path defines the REST API endpoint of Elasticsearch + to post write requests (default: nil).' + type: string + port: + description: 'The port number of your Elasticsearch node + (default: 9200).' + format: int32 + maximum: 65535 + minimum: 1 + type: integer + reconnectOnError: + description: 'Optional, Indicates that the plugin should + reset connection on any error (reconnect on next send) + (default: false)' + type: boolean + reloadAfter: + description: Optional, When ReloadConnections true, this + is the integer number of operations after which the plugin + will reload the connections. The default value is 10000. + format: int32 + type: integer + reloadConnections: + description: 'Optional, Automatically reload connection + after 10000 documents (default: true)' + type: boolean + reloadOnFailure: + description: 'Optional, Indicates that the elasticsearch-transport + will try to reload the nodes addresses if there is a failure + while making the request, this can be useful to quickly + remove a dead node from the list of addresses (default: + false)' + type: boolean + requestTimeout: + description: 'Optional, HTTP Timeout (default: 5)' + pattern: ^\d+(s|m|h|d)$ + type: string + scheme: + description: 'Specify https if your Elasticsearch endpoint + supports SSL (default: http).' + type: string + snifferClassName: + description: Optional, Provide a different sniffer class + name + type: string + sslVerify: + description: Optional, Force certificate validation + type: boolean + suppressTypeName: + description: Optional, Suppress '[types removal]' warnings + on elasticsearch 7.x + type: boolean + templateOverwrite: + description: 'Optional, Always update the template, even + if it already exists (default: false)' + type: boolean + user: + description: Optional, The login credentials to connect + to Elasticsearch + properties: + valueFrom: + description: ValueSource defines how to find a value's + key. + properties: + secretKeyRef: + description: Selects a key of a secret in the pod's + namespace + properties: + key: + description: The key of the secret to select + from. Must be a valid secret key. + type: string + name: + default: "" + description: |- + Name of the referent. + This field is effectively required, but due to backwards compatibility is + allowed to be empty. Instances of this type with an empty value here are + almost certainly wrong. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + type: string + optional: + description: Specify whether the Secret or its + key must be defined + type: boolean + required: + - key + type: object + x-kubernetes-map-type: atomic + type: object + type: object + type: object format: description: format section properties: diff --git a/charts/fluent-operator/crds/fluentd.fluent.io_outputs.yaml b/charts/fluent-operator/crds/fluentd.fluent.io_outputs.yaml index 80e280353..733047f95 100644 --- a/charts/fluent-operator/crds/fluentd.fluent.io_outputs.yaml +++ b/charts/fluent-operator/crds/fluentd.fluent.io_outputs.yaml @@ -1195,6 +1195,311 @@ spec: required: - dataStreamName type: object + elasticsearchDynamic: + description: |- + out_es dynamic plugin (elasticsearch_dynamic). It takes the same parameters as elasticsearch, + but host, port, index and logstash values can use placeholders like ${tag_parts[1]} or ${record['key']}. + properties: + bulkMessageRequestThreshold: + description: |- + Optional, Configure bulk_message_request_threshold splitting threshold size. + Default value is -1 (unlimited). + If a bulk message exceeds this threshold, the request is split into multiple smaller requests. + format: int32 + type: integer + caFile: + description: Optional, Absolute path to CA certificate file + type: string + clientCert: + description: Optional, Absolute path to client Certificate + file + type: string + clientKey: + description: Optional, Absolute path to client private Key + file + type: string + clientKeyPassword: + description: Optional, password for ClientKey file + properties: + valueFrom: + description: ValueSource defines how to find a value's + key. + properties: + secretKeyRef: + description: Selects a key of a secret in the pod's + namespace + properties: + key: + description: The key of the secret to select + from. Must be a valid secret key. + type: string + name: + default: "" + description: |- + Name of the referent. + This field is effectively required, but due to backwards compatibility is + allowed to be empty. Instances of this type with an empty value here are + almost certainly wrong. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + type: string + optional: + description: Specify whether the Secret or its + key must be defined + type: boolean + required: + - key + type: object + x-kubernetes-map-type: atomic + type: object + type: object + cloudAuth: + description: Authenticate towards Elastic Cloud using cloudAuth. + properties: + valueFrom: + description: ValueSource defines how to find a value's + key. + properties: + secretKeyRef: + description: Selects a key of a secret in the pod's + namespace + properties: + key: + description: The key of the secret to select + from. Must be a valid secret key. + type: string + name: + default: "" + description: |- + Name of the referent. + This field is effectively required, but due to backwards compatibility is + allowed to be empty. Instances of this type with an empty value here are + almost certainly wrong. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + type: string + optional: + description: Specify whether the Secret or its + key must be defined + type: boolean + required: + - key + type: object + x-kubernetes-map-type: atomic + type: object + type: object + cloudId: + description: |- + Authenticate towards Elastic Cloud using CloudId. If set, cloudAuth must + be set as well and host, port, user and password are ignored. + properties: + valueFrom: + description: ValueSource defines how to find a value's + key. + properties: + secretKeyRef: + description: Selects a key of a secret in the pod's + namespace + properties: + key: + description: The key of the secret to select + from. Must be a valid secret key. + type: string + name: + default: "" + description: |- + Name of the referent. + This field is effectively required, but due to backwards compatibility is + allowed to be empty. Instances of this type with an empty value here are + almost certainly wrong. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + type: string + optional: + description: Specify whether the Secret or its + key must be defined + type: boolean + required: + - key + type: object + x-kubernetes-map-type: atomic + type: object + type: object + enableIlm: + description: Optional, Enable Index Lifecycle Management + (ILM) + type: boolean + failOnPuttingTemplateRetryExceeded: + description: 'Optional, Indicates whether to fail when max_retry_putting_template + is exceeded. If you have multiple output plugin, you could + use this property to do not fail on fluentd statup (default: + false)' + type: boolean + host: + description: 'The hostname of your Elasticsearch node (default: + localhost).' + type: string + hosts: + description: Hosts defines a list of hosts if you want to + connect to more than one Elasticsearch nodes + type: string + ilmPolicy: + description: Optional, Specify ILM policy contents as Hash + type: string + ilmPolicyId: + description: Optional, Specify ILM policy id + type: string + ilmPolicyOverride: + description: Optional, Specify whether overwriting ilm policy + or not + type: boolean + indexName: + description: IndexName defines the placeholder syntax of + Fluentd plugin API. See https://docs.fluentd.org/configuration/buffer-section. + type: string + logEs400Reason: + description: Optional, Enable logging of 400 reason without + enabling debug log level + type: boolean + logstashFormat: + description: 'If true, Fluentd uses the conventional index + name format logstash-%Y.%m.%d (default: false). This option + supersedes the index_name option.' + type: boolean + logstashPrefix: + description: 'LogstashPrefix defines the logstash prefix + index name to write events when logstash_format is true + (default: logstash).' + type: string + maxRetryPuttingTemplate: + description: 'Optional, You can specify times of retry putting + template (default: 10)' + format: int32 + type: integer + password: + description: Optional, The login credentials to connect + to Elasticsearch + properties: + valueFrom: + description: ValueSource defines how to find a value's + key. + properties: + secretKeyRef: + description: Selects a key of a secret in the pod's + namespace + properties: + key: + description: The key of the secret to select + from. Must be a valid secret key. + type: string + name: + default: "" + description: |- + Name of the referent. + This field is effectively required, but due to backwards compatibility is + allowed to be empty. Instances of this type with an empty value here are + almost certainly wrong. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + type: string + optional: + description: Specify whether the Secret or its + key must be defined + type: boolean + required: + - key + type: object + x-kubernetes-map-type: atomic + type: object + type: object + path: + description: 'Path defines the REST API endpoint of Elasticsearch + to post write requests (default: nil).' + type: string + port: + description: 'The port number of your Elasticsearch node + (default: 9200).' + format: int32 + maximum: 65535 + minimum: 1 + type: integer + reconnectOnError: + description: 'Optional, Indicates that the plugin should + reset connection on any error (reconnect on next send) + (default: false)' + type: boolean + reloadAfter: + description: Optional, When ReloadConnections true, this + is the integer number of operations after which the plugin + will reload the connections. The default value is 10000. + format: int32 + type: integer + reloadConnections: + description: 'Optional, Automatically reload connection + after 10000 documents (default: true)' + type: boolean + reloadOnFailure: + description: 'Optional, Indicates that the elasticsearch-transport + will try to reload the nodes addresses if there is a failure + while making the request, this can be useful to quickly + remove a dead node from the list of addresses (default: + false)' + type: boolean + requestTimeout: + description: 'Optional, HTTP Timeout (default: 5)' + pattern: ^\d+(s|m|h|d)$ + type: string + scheme: + description: 'Specify https if your Elasticsearch endpoint + supports SSL (default: http).' + type: string + snifferClassName: + description: Optional, Provide a different sniffer class + name + type: string + sslVerify: + description: Optional, Force certificate validation + type: boolean + suppressTypeName: + description: Optional, Suppress '[types removal]' warnings + on elasticsearch 7.x + type: boolean + templateOverwrite: + description: 'Optional, Always update the template, even + if it already exists (default: false)' + type: boolean + user: + description: Optional, The login credentials to connect + to Elasticsearch + properties: + valueFrom: + description: ValueSource defines how to find a value's + key. + properties: + secretKeyRef: + description: Selects a key of a secret in the pod's + namespace + properties: + key: + description: The key of the secret to select + from. Must be a valid secret key. + type: string + name: + default: "" + description: |- + Name of the referent. + This field is effectively required, but due to backwards compatibility is + allowed to be empty. Instances of this type with an empty value here are + almost certainly wrong. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + type: string + optional: + description: Specify whether the Secret or its + key must be defined + type: boolean + required: + - key + type: object + x-kubernetes-map-type: atomic + type: object + type: object + type: object format: description: format section properties: diff --git a/config/crd/bases/fluentd.fluent.io_clusteroutputs.yaml b/config/crd/bases/fluentd.fluent.io_clusteroutputs.yaml index 89c5cd6d8..caeda8baa 100644 --- a/config/crd/bases/fluentd.fluent.io_clusteroutputs.yaml +++ b/config/crd/bases/fluentd.fluent.io_clusteroutputs.yaml @@ -1196,6 +1196,311 @@ spec: required: - dataStreamName type: object + elasticsearchDynamic: + description: |- + out_es dynamic plugin (elasticsearch_dynamic). It takes the same parameters as elasticsearch, + but host, port, index and logstash values can use placeholders like ${tag_parts[1]} or ${record['key']}. + properties: + bulkMessageRequestThreshold: + description: |- + Optional, Configure bulk_message_request_threshold splitting threshold size. + Default value is -1 (unlimited). + If a bulk message exceeds this threshold, the request is split into multiple smaller requests. + format: int32 + type: integer + caFile: + description: Optional, Absolute path to CA certificate file + type: string + clientCert: + description: Optional, Absolute path to client Certificate + file + type: string + clientKey: + description: Optional, Absolute path to client private Key + file + type: string + clientKeyPassword: + description: Optional, password for ClientKey file + properties: + valueFrom: + description: ValueSource defines how to find a value's + key. + properties: + secretKeyRef: + description: Selects a key of a secret in the pod's + namespace + properties: + key: + description: The key of the secret to select + from. Must be a valid secret key. + type: string + name: + default: "" + description: |- + Name of the referent. + This field is effectively required, but due to backwards compatibility is + allowed to be empty. Instances of this type with an empty value here are + almost certainly wrong. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + type: string + optional: + description: Specify whether the Secret or its + key must be defined + type: boolean + required: + - key + type: object + x-kubernetes-map-type: atomic + type: object + type: object + cloudAuth: + description: Authenticate towards Elastic Cloud using cloudAuth. + properties: + valueFrom: + description: ValueSource defines how to find a value's + key. + properties: + secretKeyRef: + description: Selects a key of a secret in the pod's + namespace + properties: + key: + description: The key of the secret to select + from. Must be a valid secret key. + type: string + name: + default: "" + description: |- + Name of the referent. + This field is effectively required, but due to backwards compatibility is + allowed to be empty. Instances of this type with an empty value here are + almost certainly wrong. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + type: string + optional: + description: Specify whether the Secret or its + key must be defined + type: boolean + required: + - key + type: object + x-kubernetes-map-type: atomic + type: object + type: object + cloudId: + description: |- + Authenticate towards Elastic Cloud using CloudId. If set, cloudAuth must + be set as well and host, port, user and password are ignored. + properties: + valueFrom: + description: ValueSource defines how to find a value's + key. + properties: + secretKeyRef: + description: Selects a key of a secret in the pod's + namespace + properties: + key: + description: The key of the secret to select + from. Must be a valid secret key. + type: string + name: + default: "" + description: |- + Name of the referent. + This field is effectively required, but due to backwards compatibility is + allowed to be empty. Instances of this type with an empty value here are + almost certainly wrong. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + type: string + optional: + description: Specify whether the Secret or its + key must be defined + type: boolean + required: + - key + type: object + x-kubernetes-map-type: atomic + type: object + type: object + enableIlm: + description: Optional, Enable Index Lifecycle Management + (ILM) + type: boolean + failOnPuttingTemplateRetryExceeded: + description: 'Optional, Indicates whether to fail when max_retry_putting_template + is exceeded. If you have multiple output plugin, you could + use this property to do not fail on fluentd statup (default: + false)' + type: boolean + host: + description: 'The hostname of your Elasticsearch node (default: + localhost).' + type: string + hosts: + description: Hosts defines a list of hosts if you want to + connect to more than one Elasticsearch nodes + type: string + ilmPolicy: + description: Optional, Specify ILM policy contents as Hash + type: string + ilmPolicyId: + description: Optional, Specify ILM policy id + type: string + ilmPolicyOverride: + description: Optional, Specify whether overwriting ilm policy + or not + type: boolean + indexName: + description: IndexName defines the placeholder syntax of + Fluentd plugin API. See https://docs.fluentd.org/configuration/buffer-section. + type: string + logEs400Reason: + description: Optional, Enable logging of 400 reason without + enabling debug log level + type: boolean + logstashFormat: + description: 'If true, Fluentd uses the conventional index + name format logstash-%Y.%m.%d (default: false). This option + supersedes the index_name option.' + type: boolean + logstashPrefix: + description: 'LogstashPrefix defines the logstash prefix + index name to write events when logstash_format is true + (default: logstash).' + type: string + maxRetryPuttingTemplate: + description: 'Optional, You can specify times of retry putting + template (default: 10)' + format: int32 + type: integer + password: + description: Optional, The login credentials to connect + to Elasticsearch + properties: + valueFrom: + description: ValueSource defines how to find a value's + key. + properties: + secretKeyRef: + description: Selects a key of a secret in the pod's + namespace + properties: + key: + description: The key of the secret to select + from. Must be a valid secret key. + type: string + name: + default: "" + description: |- + Name of the referent. + This field is effectively required, but due to backwards compatibility is + allowed to be empty. Instances of this type with an empty value here are + almost certainly wrong. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + type: string + optional: + description: Specify whether the Secret or its + key must be defined + type: boolean + required: + - key + type: object + x-kubernetes-map-type: atomic + type: object + type: object + path: + description: 'Path defines the REST API endpoint of Elasticsearch + to post write requests (default: nil).' + type: string + port: + description: 'The port number of your Elasticsearch node + (default: 9200).' + format: int32 + maximum: 65535 + minimum: 1 + type: integer + reconnectOnError: + description: 'Optional, Indicates that the plugin should + reset connection on any error (reconnect on next send) + (default: false)' + type: boolean + reloadAfter: + description: Optional, When ReloadConnections true, this + is the integer number of operations after which the plugin + will reload the connections. The default value is 10000. + format: int32 + type: integer + reloadConnections: + description: 'Optional, Automatically reload connection + after 10000 documents (default: true)' + type: boolean + reloadOnFailure: + description: 'Optional, Indicates that the elasticsearch-transport + will try to reload the nodes addresses if there is a failure + while making the request, this can be useful to quickly + remove a dead node from the list of addresses (default: + false)' + type: boolean + requestTimeout: + description: 'Optional, HTTP Timeout (default: 5)' + pattern: ^\d+(s|m|h|d)$ + type: string + scheme: + description: 'Specify https if your Elasticsearch endpoint + supports SSL (default: http).' + type: string + snifferClassName: + description: Optional, Provide a different sniffer class + name + type: string + sslVerify: + description: Optional, Force certificate validation + type: boolean + suppressTypeName: + description: Optional, Suppress '[types removal]' warnings + on elasticsearch 7.x + type: boolean + templateOverwrite: + description: 'Optional, Always update the template, even + if it already exists (default: false)' + type: boolean + user: + description: Optional, The login credentials to connect + to Elasticsearch + properties: + valueFrom: + description: ValueSource defines how to find a value's + key. + properties: + secretKeyRef: + description: Selects a key of a secret in the pod's + namespace + properties: + key: + description: The key of the secret to select + from. Must be a valid secret key. + type: string + name: + default: "" + description: |- + Name of the referent. + This field is effectively required, but due to backwards compatibility is + allowed to be empty. Instances of this type with an empty value here are + almost certainly wrong. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + type: string + optional: + description: Specify whether the Secret or its + key must be defined + type: boolean + required: + - key + type: object + x-kubernetes-map-type: atomic + type: object + type: object + type: object format: description: format section properties: diff --git a/config/crd/bases/fluentd.fluent.io_outputs.yaml b/config/crd/bases/fluentd.fluent.io_outputs.yaml index 0e088484a..f06bb2347 100644 --- a/config/crd/bases/fluentd.fluent.io_outputs.yaml +++ b/config/crd/bases/fluentd.fluent.io_outputs.yaml @@ -1196,6 +1196,311 @@ spec: required: - dataStreamName type: object + elasticsearchDynamic: + description: |- + out_es dynamic plugin (elasticsearch_dynamic). It takes the same parameters as elasticsearch, + but host, port, index and logstash values can use placeholders like ${tag_parts[1]} or ${record['key']}. + properties: + bulkMessageRequestThreshold: + description: |- + Optional, Configure bulk_message_request_threshold splitting threshold size. + Default value is -1 (unlimited). + If a bulk message exceeds this threshold, the request is split into multiple smaller requests. + format: int32 + type: integer + caFile: + description: Optional, Absolute path to CA certificate file + type: string + clientCert: + description: Optional, Absolute path to client Certificate + file + type: string + clientKey: + description: Optional, Absolute path to client private Key + file + type: string + clientKeyPassword: + description: Optional, password for ClientKey file + properties: + valueFrom: + description: ValueSource defines how to find a value's + key. + properties: + secretKeyRef: + description: Selects a key of a secret in the pod's + namespace + properties: + key: + description: The key of the secret to select + from. Must be a valid secret key. + type: string + name: + default: "" + description: |- + Name of the referent. + This field is effectively required, but due to backwards compatibility is + allowed to be empty. Instances of this type with an empty value here are + almost certainly wrong. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + type: string + optional: + description: Specify whether the Secret or its + key must be defined + type: boolean + required: + - key + type: object + x-kubernetes-map-type: atomic + type: object + type: object + cloudAuth: + description: Authenticate towards Elastic Cloud using cloudAuth. + properties: + valueFrom: + description: ValueSource defines how to find a value's + key. + properties: + secretKeyRef: + description: Selects a key of a secret in the pod's + namespace + properties: + key: + description: The key of the secret to select + from. Must be a valid secret key. + type: string + name: + default: "" + description: |- + Name of the referent. + This field is effectively required, but due to backwards compatibility is + allowed to be empty. Instances of this type with an empty value here are + almost certainly wrong. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + type: string + optional: + description: Specify whether the Secret or its + key must be defined + type: boolean + required: + - key + type: object + x-kubernetes-map-type: atomic + type: object + type: object + cloudId: + description: |- + Authenticate towards Elastic Cloud using CloudId. If set, cloudAuth must + be set as well and host, port, user and password are ignored. + properties: + valueFrom: + description: ValueSource defines how to find a value's + key. + properties: + secretKeyRef: + description: Selects a key of a secret in the pod's + namespace + properties: + key: + description: The key of the secret to select + from. Must be a valid secret key. + type: string + name: + default: "" + description: |- + Name of the referent. + This field is effectively required, but due to backwards compatibility is + allowed to be empty. Instances of this type with an empty value here are + almost certainly wrong. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + type: string + optional: + description: Specify whether the Secret or its + key must be defined + type: boolean + required: + - key + type: object + x-kubernetes-map-type: atomic + type: object + type: object + enableIlm: + description: Optional, Enable Index Lifecycle Management + (ILM) + type: boolean + failOnPuttingTemplateRetryExceeded: + description: 'Optional, Indicates whether to fail when max_retry_putting_template + is exceeded. If you have multiple output plugin, you could + use this property to do not fail on fluentd statup (default: + false)' + type: boolean + host: + description: 'The hostname of your Elasticsearch node (default: + localhost).' + type: string + hosts: + description: Hosts defines a list of hosts if you want to + connect to more than one Elasticsearch nodes + type: string + ilmPolicy: + description: Optional, Specify ILM policy contents as Hash + type: string + ilmPolicyId: + description: Optional, Specify ILM policy id + type: string + ilmPolicyOverride: + description: Optional, Specify whether overwriting ilm policy + or not + type: boolean + indexName: + description: IndexName defines the placeholder syntax of + Fluentd plugin API. See https://docs.fluentd.org/configuration/buffer-section. + type: string + logEs400Reason: + description: Optional, Enable logging of 400 reason without + enabling debug log level + type: boolean + logstashFormat: + description: 'If true, Fluentd uses the conventional index + name format logstash-%Y.%m.%d (default: false). This option + supersedes the index_name option.' + type: boolean + logstashPrefix: + description: 'LogstashPrefix defines the logstash prefix + index name to write events when logstash_format is true + (default: logstash).' + type: string + maxRetryPuttingTemplate: + description: 'Optional, You can specify times of retry putting + template (default: 10)' + format: int32 + type: integer + password: + description: Optional, The login credentials to connect + to Elasticsearch + properties: + valueFrom: + description: ValueSource defines how to find a value's + key. + properties: + secretKeyRef: + description: Selects a key of a secret in the pod's + namespace + properties: + key: + description: The key of the secret to select + from. Must be a valid secret key. + type: string + name: + default: "" + description: |- + Name of the referent. + This field is effectively required, but due to backwards compatibility is + allowed to be empty. Instances of this type with an empty value here are + almost certainly wrong. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + type: string + optional: + description: Specify whether the Secret or its + key must be defined + type: boolean + required: + - key + type: object + x-kubernetes-map-type: atomic + type: object + type: object + path: + description: 'Path defines the REST API endpoint of Elasticsearch + to post write requests (default: nil).' + type: string + port: + description: 'The port number of your Elasticsearch node + (default: 9200).' + format: int32 + maximum: 65535 + minimum: 1 + type: integer + reconnectOnError: + description: 'Optional, Indicates that the plugin should + reset connection on any error (reconnect on next send) + (default: false)' + type: boolean + reloadAfter: + description: Optional, When ReloadConnections true, this + is the integer number of operations after which the plugin + will reload the connections. The default value is 10000. + format: int32 + type: integer + reloadConnections: + description: 'Optional, Automatically reload connection + after 10000 documents (default: true)' + type: boolean + reloadOnFailure: + description: 'Optional, Indicates that the elasticsearch-transport + will try to reload the nodes addresses if there is a failure + while making the request, this can be useful to quickly + remove a dead node from the list of addresses (default: + false)' + type: boolean + requestTimeout: + description: 'Optional, HTTP Timeout (default: 5)' + pattern: ^\d+(s|m|h|d)$ + type: string + scheme: + description: 'Specify https if your Elasticsearch endpoint + supports SSL (default: http).' + type: string + snifferClassName: + description: Optional, Provide a different sniffer class + name + type: string + sslVerify: + description: Optional, Force certificate validation + type: boolean + suppressTypeName: + description: Optional, Suppress '[types removal]' warnings + on elasticsearch 7.x + type: boolean + templateOverwrite: + description: 'Optional, Always update the template, even + if it already exists (default: false)' + type: boolean + user: + description: Optional, The login credentials to connect + to Elasticsearch + properties: + valueFrom: + description: ValueSource defines how to find a value's + key. + properties: + secretKeyRef: + description: Selects a key of a secret in the pod's + namespace + properties: + key: + description: The key of the secret to select + from. Must be a valid secret key. + type: string + name: + default: "" + description: |- + Name of the referent. + This field is effectively required, but due to backwards compatibility is + allowed to be empty. Instances of this type with an empty value here are + almost certainly wrong. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + type: string + optional: + description: Specify whether the Secret or its + key must be defined + type: boolean + required: + - key + type: object + x-kubernetes-map-type: atomic + type: object + type: object + type: object format: description: format section properties: diff --git a/docs/plugins/fluentd/output/types.md b/docs/plugins/fluentd/output/types.md index 8286983bd..e8e6cd59f 100644 --- a/docs/plugins/fluentd/output/types.md +++ b/docs/plugins/fluentd/output/types.md @@ -18,6 +18,7 @@ Output defines all available output plugins and their parameters | http | out_http plugin | *[Http](#http) | | elasticsearch | out_es plugin | *[Elasticsearch](#elasticsearch) | | elasticsearchDataStream | out_es datastreams plugin | *[ElasticsearchDataStream](#elasticsearchdatastream) | +| elasticsearchDynamic | out_es dynamic plugin (elasticsearch_dynamic). It takes the same parameters as elasticsearch, but host, port, index and logstash values can use placeholders like ${tag_parts[1]} or ${record['key']}. | *[Elasticsearch](#elasticsearch) | | opensearch | out_opensearch plugin | *[Opensearch](#opensearch) | | kafka | out_kafka plugin | *[Kafka2](#kafka2) | | s3 | out_s3 plugin | *[S3](#s3) | diff --git a/manifests/setup/setup.yaml b/manifests/setup/setup.yaml index 199b6dca7..d6272ab44 100644 --- a/manifests/setup/setup.yaml +++ b/manifests/setup/setup.yaml @@ -10617,6 +10617,311 @@ spec: required: - dataStreamName type: object + elasticsearchDynamic: + description: |- + out_es dynamic plugin (elasticsearch_dynamic). It takes the same parameters as elasticsearch, + but host, port, index and logstash values can use placeholders like ${tag_parts[1]} or ${record['key']}. + properties: + bulkMessageRequestThreshold: + description: |- + Optional, Configure bulk_message_request_threshold splitting threshold size. + Default value is -1 (unlimited). + If a bulk message exceeds this threshold, the request is split into multiple smaller requests. + format: int32 + type: integer + caFile: + description: Optional, Absolute path to CA certificate file + type: string + clientCert: + description: Optional, Absolute path to client Certificate + file + type: string + clientKey: + description: Optional, Absolute path to client private Key + file + type: string + clientKeyPassword: + description: Optional, password for ClientKey file + properties: + valueFrom: + description: ValueSource defines how to find a value's + key. + properties: + secretKeyRef: + description: Selects a key of a secret in the pod's + namespace + properties: + key: + description: The key of the secret to select + from. Must be a valid secret key. + type: string + name: + default: "" + description: |- + Name of the referent. + This field is effectively required, but due to backwards compatibility is + allowed to be empty. Instances of this type with an empty value here are + almost certainly wrong. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + type: string + optional: + description: Specify whether the Secret or its + key must be defined + type: boolean + required: + - key + type: object + x-kubernetes-map-type: atomic + type: object + type: object + cloudAuth: + description: Authenticate towards Elastic Cloud using cloudAuth. + properties: + valueFrom: + description: ValueSource defines how to find a value's + key. + properties: + secretKeyRef: + description: Selects a key of a secret in the pod's + namespace + properties: + key: + description: The key of the secret to select + from. Must be a valid secret key. + type: string + name: + default: "" + description: |- + Name of the referent. + This field is effectively required, but due to backwards compatibility is + allowed to be empty. Instances of this type with an empty value here are + almost certainly wrong. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + type: string + optional: + description: Specify whether the Secret or its + key must be defined + type: boolean + required: + - key + type: object + x-kubernetes-map-type: atomic + type: object + type: object + cloudId: + description: |- + Authenticate towards Elastic Cloud using CloudId. If set, cloudAuth must + be set as well and host, port, user and password are ignored. + properties: + valueFrom: + description: ValueSource defines how to find a value's + key. + properties: + secretKeyRef: + description: Selects a key of a secret in the pod's + namespace + properties: + key: + description: The key of the secret to select + from. Must be a valid secret key. + type: string + name: + default: "" + description: |- + Name of the referent. + This field is effectively required, but due to backwards compatibility is + allowed to be empty. Instances of this type with an empty value here are + almost certainly wrong. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + type: string + optional: + description: Specify whether the Secret or its + key must be defined + type: boolean + required: + - key + type: object + x-kubernetes-map-type: atomic + type: object + type: object + enableIlm: + description: Optional, Enable Index Lifecycle Management + (ILM) + type: boolean + failOnPuttingTemplateRetryExceeded: + description: 'Optional, Indicates whether to fail when max_retry_putting_template + is exceeded. If you have multiple output plugin, you could + use this property to do not fail on fluentd statup (default: + false)' + type: boolean + host: + description: 'The hostname of your Elasticsearch node (default: + localhost).' + type: string + hosts: + description: Hosts defines a list of hosts if you want to + connect to more than one Elasticsearch nodes + type: string + ilmPolicy: + description: Optional, Specify ILM policy contents as Hash + type: string + ilmPolicyId: + description: Optional, Specify ILM policy id + type: string + ilmPolicyOverride: + description: Optional, Specify whether overwriting ilm policy + or not + type: boolean + indexName: + description: IndexName defines the placeholder syntax of + Fluentd plugin API. See https://docs.fluentd.org/configuration/buffer-section. + type: string + logEs400Reason: + description: Optional, Enable logging of 400 reason without + enabling debug log level + type: boolean + logstashFormat: + description: 'If true, Fluentd uses the conventional index + name format logstash-%Y.%m.%d (default: false). This option + supersedes the index_name option.' + type: boolean + logstashPrefix: + description: 'LogstashPrefix defines the logstash prefix + index name to write events when logstash_format is true + (default: logstash).' + type: string + maxRetryPuttingTemplate: + description: 'Optional, You can specify times of retry putting + template (default: 10)' + format: int32 + type: integer + password: + description: Optional, The login credentials to connect + to Elasticsearch + properties: + valueFrom: + description: ValueSource defines how to find a value's + key. + properties: + secretKeyRef: + description: Selects a key of a secret in the pod's + namespace + properties: + key: + description: The key of the secret to select + from. Must be a valid secret key. + type: string + name: + default: "" + description: |- + Name of the referent. + This field is effectively required, but due to backwards compatibility is + allowed to be empty. Instances of this type with an empty value here are + almost certainly wrong. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + type: string + optional: + description: Specify whether the Secret or its + key must be defined + type: boolean + required: + - key + type: object + x-kubernetes-map-type: atomic + type: object + type: object + path: + description: 'Path defines the REST API endpoint of Elasticsearch + to post write requests (default: nil).' + type: string + port: + description: 'The port number of your Elasticsearch node + (default: 9200).' + format: int32 + maximum: 65535 + minimum: 1 + type: integer + reconnectOnError: + description: 'Optional, Indicates that the plugin should + reset connection on any error (reconnect on next send) + (default: false)' + type: boolean + reloadAfter: + description: Optional, When ReloadConnections true, this + is the integer number of operations after which the plugin + will reload the connections. The default value is 10000. + format: int32 + type: integer + reloadConnections: + description: 'Optional, Automatically reload connection + after 10000 documents (default: true)' + type: boolean + reloadOnFailure: + description: 'Optional, Indicates that the elasticsearch-transport + will try to reload the nodes addresses if there is a failure + while making the request, this can be useful to quickly + remove a dead node from the list of addresses (default: + false)' + type: boolean + requestTimeout: + description: 'Optional, HTTP Timeout (default: 5)' + pattern: ^\d+(s|m|h|d)$ + type: string + scheme: + description: 'Specify https if your Elasticsearch endpoint + supports SSL (default: http).' + type: string + snifferClassName: + description: Optional, Provide a different sniffer class + name + type: string + sslVerify: + description: Optional, Force certificate validation + type: boolean + suppressTypeName: + description: Optional, Suppress '[types removal]' warnings + on elasticsearch 7.x + type: boolean + templateOverwrite: + description: 'Optional, Always update the template, even + if it already exists (default: false)' + type: boolean + user: + description: Optional, The login credentials to connect + to Elasticsearch + properties: + valueFrom: + description: ValueSource defines how to find a value's + key. + properties: + secretKeyRef: + description: Selects a key of a secret in the pod's + namespace + properties: + key: + description: The key of the secret to select + from. Must be a valid secret key. + type: string + name: + default: "" + description: |- + Name of the referent. + This field is effectively required, but due to backwards compatibility is + allowed to be empty. Instances of this type with an empty value here are + almost certainly wrong. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + type: string + optional: + description: Specify whether the Secret or its + key must be defined + type: boolean + required: + - key + type: object + x-kubernetes-map-type: atomic + type: object + type: object + type: object format: description: format section properties: @@ -41332,141 +41637,468 @@ spec: description: The @log_level parameter specifies the plugin-specific logging level type: string - overflowAction: - description: |- - OverflowAtction defines the output plugin behave when its buffer queue is full. - Default: throw_exception + overflowAction: + description: |- + OverflowAtction defines the output plugin behave when its buffer queue is full. + Default: throw_exception + type: string + path: + description: The path where buffer chunks are stored. This + field would make no effect in memory buffer plugin. + type: string + pathSuffix: + description: Changes the suffix of the buffer file. + type: string + queueLimitLength: + description: 'The queue length limitation of this buffer + plugin instance. Default: 0.95' + pattern: ^\d+.?\d+$ + type: string + queuedChunksLimitSize: + description: |- + Limit the number of queued chunks. Default: 1 + If a smaller flush_interval is set, e.g. 1s, + there are lots of small queued chunks in the buffer. + With file buffer, it may consume a lot of fd resources when output destination has a problem. + This parameter mitigates such situations. + minimum: 1 + type: integer + retryExponentialBackoffBase: + description: The base number of exponential backoff for + retries. + pattern: ^\d+(\.[0-9]{0,2})?$ + type: string + retryForever: + description: If true, plugin will ignore retry_timeout and + retry_max_times options and retry flushing forever. + type: boolean + retryMaxInterval: + description: The maximum interval (seconds) for exponential + backoff between retries while failing + pattern: ^\d+(\.[0-9]{0,2})?(s|m|h|d)?$ + type: string + retryMaxTimes: + description: 'The maximum number of times to retry to flush + the failed chunks. Default: none' + type: integer + retryRandomize: + description: If true, the output plugin will retry after + randomized interval not to do burst retries + type: boolean + retrySecondaryThreshold: + description: The ratio of retry_timeout to switch to use + the secondary while failing. + pattern: ^\d+.?\d+$ + type: string + retryTimeout: + description: |- + Retry parameters + The maximum time (seconds) to retry to flush again the failed chunks, until the plugin discards the buffer chunks + pattern: ^\d+(\.[0-9]{0,2})?(s|m|h|d)?$ + type: string + retryType: + description: Output plugin will retry periodically with + fixed intervals. + type: string + retryWait: + description: Wait in seconds before the next retry to flush + or constant factor of exponential backoff + pattern: ^\d+(\.[0-9]{0,2})?(s|m|h|d)?$ + type: string + tag: + description: |- + The output plugins group events into chunks. + Chunk keys, specified as the argument of section, control how to group events into chunks. + If tag is empty, which means blank Chunk Keys. + Tag also supports Nested Field, combination of Chunk Keys, placeholders, etc. + See https://docs.fluentd.org/configuration/buffer-section. + 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 + timeType: + description: parses/formats value according to this type, + default is string + enum: + - float + - unixtime + - string + - mixed + type: string + timekey: + description: Output plugin will flush chunks per specified + time (enabled when time is specified in chunk keys) + type: string + timekeyWait: + description: Output plugin will write chunks after timekey_wait + seconds later after timekey expiration + type: string + timezone: + description: Uses the specified timezone. + type: string + totalLimitSize: + description: |- + The size limitation of this buffer plugin instance + Default: 512MB (memory) / 64GB (file) + pattern: ^\d+(KB|MB|GB|TB)$ + type: string + type: + description: The @type parameter specifies the type of the + plugin. + enum: + - file + - memory + - file_single + type: string + utc: + description: If true, uses UTC. + type: boolean + required: + - type + type: object + cloudWatch: + description: out_cloudwatch plugin + properties: + autoCreateStream: + type: boolean + awsEcsAuthentication: + type: boolean + awsKeyId: + description: Secret defines the key of a value. + properties: + valueFrom: + description: ValueSource defines how to find a value's + key. + properties: + secretKeyRef: + description: Selects a key of a secret in the pod's + namespace + properties: + key: + description: The key of the secret to select + from. Must be a valid secret key. + type: string + name: + default: "" + description: |- + Name of the referent. + This field is effectively required, but due to backwards compatibility is + allowed to be empty. Instances of this type with an empty value here are + almost certainly wrong. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + type: string + optional: + description: Specify whether the Secret or its + key must be defined + type: boolean + required: + - key + type: object + x-kubernetes-map-type: atomic + type: object + type: object + awsSecKey: + description: Secret defines the key of a value. + properties: + valueFrom: + description: ValueSource defines how to find a value's + key. + properties: + secretKeyRef: + description: Selects a key of a secret in the pod's + namespace + properties: + key: + description: The key of the secret to select + from. Must be a valid secret key. + type: string + name: + default: "" + description: |- + Name of the referent. + This field is effectively required, but due to backwards compatibility is + allowed to be empty. Instances of this type with an empty value here are + almost certainly wrong. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + type: string + optional: + description: Specify whether the Secret or its + key must be defined + type: boolean + required: + - key + type: object + x-kubernetes-map-type: atomic + type: object + type: object + awsStsDurationSeconds: + type: string + awsStsEndpointUrl: + type: string + awsStsExternalId: + type: string + awsStsPolicy: + type: string + awsStsRoleArn: + type: string + awsStsSessionName: + type: string + awsUseSts: + type: boolean + concurrency: + type: integer + durationSeconds: + type: string + endpoint: + description: Specify an AWS endpoint to send data to. + type: string + httpProxy: + type: string + includeTimeKey: + type: boolean + jsonHandler: + type: string + localtime: + type: boolean + logGroupAwsTags: + type: string + logGroupAwsTagsKey: + type: string + logGroupName: + type: string + logGroupNameKey: + type: string + logRejectedRequest: + type: string + logStreamName: + type: string + logStreamNameKey: type: string - path: - description: The path where buffer chunks are stored. This - field would make no effect in memory buffer plugin. + maxEventsPerBatch: type: string - pathSuffix: - description: Changes the suffix of the buffer file. + maxMessageLength: type: string - queueLimitLength: - description: 'The queue length limitation of this buffer - plugin instance. Default: 0.95' - pattern: ^\d+.?\d+$ + messageKeys: type: string - queuedChunksLimitSize: - description: |- - Limit the number of queued chunks. Default: 1 - If a smaller flush_interval is set, e.g. 1s, - there are lots of small queued chunks in the buffer. - With file buffer, it may consume a lot of fd resources when output destination has a problem. - This parameter mitigates such situations. - minimum: 1 - type: integer - retryExponentialBackoffBase: - description: The base number of exponential backoff for - retries. - pattern: ^\d+(\.[0-9]{0,2})?$ + policy: type: string - retryForever: - description: If true, plugin will ignore retry_timeout and - retry_max_times options and retry flushing forever. + putLogEventsDisableRetryLimit: type: boolean - retryMaxInterval: - description: The maximum interval (seconds) for exponential - backoff between retries while failing - pattern: ^\d+(\.[0-9]{0,2})?(s|m|h|d)?$ + putLogEventsRetryLimit: type: string - retryMaxTimes: - description: 'The maximum number of times to retry to flush - the failed chunks. Default: none' - type: integer - retryRandomize: - description: If true, the output plugin will retry after - randomized interval not to do burst retries + putLogEventsRetryWait: + type: string + region: + description: The AWS region. + type: string + removeLogGroupAwsTagsKey: type: boolean - retrySecondaryThreshold: - description: The ratio of retry_timeout to switch to use - the secondary while failing. - pattern: ^\d+.?\d+$ + removeLogGroupNameKey: + type: boolean + removeLogStreamNameKey: + type: boolean + removeRetentionInDaysKey: + type: boolean + retentionInDays: type: string - retryTimeout: - description: |- - Retry parameters - The maximum time (seconds) to retry to flush again the failed chunks, until the plugin discards the buffer chunks - pattern: ^\d+(\.[0-9]{0,2})?(s|m|h|d)?$ + retentionInDaysKey: type: string - retryType: - description: Output plugin will retry periodically with - fixed intervals. + roleArn: + description: ARN of an IAM role to assume (for cross account + access). type: string - retryWait: - description: Wait in seconds before the next retry to flush - or constant factor of exponential backoff - pattern: ^\d+(\.[0-9]{0,2})?(s|m|h|d)?$ + roleSessionName: + description: Role Session name type: string - tag: - description: |- - The output plugins group events into chunks. - Chunk keys, specified as the argument of section, control how to group events into chunks. - If tag is empty, which means blank Chunk Keys. - Tag also supports Nested Field, combination of Chunk Keys, placeholders, etc. - See https://docs.fluentd.org/configuration/buffer-section. + sslVerifyPeer: + type: boolean + useTagAsGroup: type: string - timeFormat: - description: Process value according to the specified format. - This is available only when time_type is string + useTagAsStream: 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. + webIdentityTokenFile: + description: Web identity token file type: string - timeType: - description: parses/formats value according to this type, - default is string + type: object + copy: + description: copy plugin + properties: + copyMode: + description: CopyMode defines how to pass the events to + plugins. enum: - - float - - unixtime - - string - - mixed + - no_copy + - shallow + - deep + - marshal type: string - timekey: - description: Output plugin will flush chunks per specified - time (enabled when time is specified in chunk keys) + required: + - copyMode + type: object + customPlugin: + description: Custom plugin type + properties: + config: type: string - timekeyWait: - description: Output plugin will write chunks after timekey_wait - seconds later after timekey expiration + required: + - config + type: object + datadog: + description: datadog plugin + properties: + apiKey: + description: This parameter is required in order to authenticate + your fluent agent. + properties: + valueFrom: + description: ValueSource defines how to find a value's + key. + properties: + secretKeyRef: + description: Selects a key of a secret in the pod's + namespace + properties: + key: + description: The key of the secret to select + from. Must be a valid secret key. + type: string + name: + default: "" + description: |- + Name of the referent. + This field is effectively required, but due to backwards compatibility is + allowed to be empty. Instances of this type with an empty value here are + almost certainly wrong. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + type: string + optional: + description: Specify whether the Secret or its + key must be defined + type: boolean + required: + - key + type: object + x-kubernetes-map-type: atomic + type: object + type: object + compressionLevel: + description: Set the log compression level for HTTP (1 to + 9, 9 being the best ratio) + format: int32 + type: integer + ddHostname: + description: Used by Datadog to identify the host submitting + the logs. type: string - timezone: - description: Uses the specified timezone. + ddSource: + description: This tells Datadog what integration it is type: string - totalLimitSize: - description: |- - The size limitation of this buffer plugin instance - Default: 512MB (memory) / 64GB (file) - pattern: ^\d+(KB|MB|GB|TB)$ + ddSourcecategory: + description: Multiple value attribute. Can be used to refine + the source attribute type: string - type: - description: The @type parameter specifies the type of the - plugin. - enum: - - file - - memory - - file_single + ddTags: + description: Custom tags with the following format "key1:value1, + key2:value2" + type: string + host: + description: Proxy endpoint when logs are not directly forwarded + to Datadog + type: string + httpProxy: + description: HTTP proxy, only takes effect if HTTP forwarding + is enabled (use_http). Defaults to HTTP_PROXY/http_proxy + env vars. + type: string + includeTagKey: + description: Automatically include the Fluentd tag in the + record. + type: boolean + maxBackoff: + description: The maximum time waited between each retry + in seconds + format: int32 + type: integer + maxRetries: + description: The number of retries before the output plugin + stops. Set to -1 for unlimited retries + format: int32 + type: integer + noSSLValidation: + description: Disable SSL validation (useful for proxy forwarding) + type: boolean + port: + description: Proxy port when logs are not directly forwarded + to Datadog and ssl is not used + format: int32 + maximum: 65535 + minimum: 1 + type: integer + service: + description: Used by Datadog to correlate between logs, + traces and metrics. + type: string + sslPort: + description: Port used to send logs over a SSL encrypted + connection to Datadog. If use_http is disabled, use 10516 + for the US region and 443 for the EU region. + format: int32 + maximum: 65535 + minimum: 1 + type: integer + tagKey: + description: Where to store the Fluentd tag. + type: string + timestampKey: + description: Name of the attribute which will contain timestamp + of the log event. If nil, timestamp attribute is not added. type: string - utc: - description: If true, uses UTC. + useCompression: + description: Enable log compression for HTTP type: boolean - required: - - type - type: object - cloudWatch: - description: out_cloudwatch plugin - properties: - autoCreateStream: + useHTTP: + description: Enable HTTP forwarding. If you disable it, + make sure to change the port to 10514 or ssl_port to 10516 type: boolean - awsEcsAuthentication: + useJson: + description: Event format, if true, the event is sent in + json format. Othwerwise, in plain text. type: boolean - awsKeyId: - description: Secret defines the key of a value. + useSSL: + description: If true, the agent initializes a secure connection + to Datadog. In clear TCP otherwise. + type: boolean + type: object + elasticsearch: + description: out_es plugin + properties: + bulkMessageRequestThreshold: + description: |- + Optional, Configure bulk_message_request_threshold splitting threshold size. + Default value is -1 (unlimited). + If a bulk message exceeds this threshold, the request is split into multiple smaller requests. + format: int32 + type: integer + caFile: + description: Optional, Absolute path to CA certificate file + type: string + clientCert: + description: Optional, Absolute path to client Certificate + file + type: string + clientKey: + description: Optional, Absolute path to client private Key + file + type: string + clientKeyPassword: + description: Optional, password for ClientKey file properties: valueFrom: description: ValueSource defines how to find a value's @@ -41499,8 +42131,8 @@ spec: x-kubernetes-map-type: atomic type: object type: object - awsSecKey: - description: Secret defines the key of a value. + cloudAuth: + description: Authenticate towards Elastic Cloud using cloudAuth. properties: valueFrom: description: ValueSource defines how to find a value's @@ -41533,124 +42165,187 @@ spec: x-kubernetes-map-type: atomic type: object type: object - awsStsDurationSeconds: - type: string - awsStsEndpointUrl: - type: string - awsStsExternalId: - type: string - awsStsPolicy: - type: string - awsStsRoleArn: - type: string - awsStsSessionName: - type: string - awsUseSts: - type: boolean - concurrency: - type: integer - durationSeconds: - type: string - endpoint: - description: Specify an AWS endpoint to send data to. - type: string - httpProxy: - type: string - includeTimeKey: + cloudId: + description: |- + Authenticate towards Elastic Cloud using CloudId. If set, cloudAuth must + be set as well and host, port, user and password are ignored. + properties: + valueFrom: + description: ValueSource defines how to find a value's + key. + properties: + secretKeyRef: + description: Selects a key of a secret in the pod's + namespace + properties: + key: + description: The key of the secret to select + from. Must be a valid secret key. + type: string + name: + default: "" + description: |- + Name of the referent. + This field is effectively required, but due to backwards compatibility is + allowed to be empty. Instances of this type with an empty value here are + almost certainly wrong. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + type: string + optional: + description: Specify whether the Secret or its + key must be defined + type: boolean + required: + - key + type: object + x-kubernetes-map-type: atomic + type: object + type: object + enableIlm: + description: Optional, Enable Index Lifecycle Management + (ILM) type: boolean - jsonHandler: - type: string - localtime: + failOnPuttingTemplateRetryExceeded: + description: 'Optional, Indicates whether to fail when max_retry_putting_template + is exceeded. If you have multiple output plugin, you could + use this property to do not fail on fluentd statup (default: + false)' type: boolean - logGroupAwsTags: - type: string - logGroupAwsTagsKey: - type: string - logGroupName: - type: string - logGroupNameKey: - type: string - logRejectedRequest: - type: string - logStreamName: - type: string - logStreamNameKey: - type: string - maxEventsPerBatch: + host: + description: 'The hostname of your Elasticsearch node (default: + localhost).' type: string - maxMessageLength: + hosts: + description: Hosts defines a list of hosts if you want to + connect to more than one Elasticsearch nodes type: string - messageKeys: + ilmPolicy: + description: Optional, Specify ILM policy contents as Hash type: string - policy: + ilmPolicyId: + description: Optional, Specify ILM policy id type: string - putLogEventsDisableRetryLimit: + ilmPolicyOverride: + description: Optional, Specify whether overwriting ilm policy + or not type: boolean - putLogEventsRetryLimit: - type: string - putLogEventsRetryWait: - type: string - region: - description: The AWS region. + indexName: + description: IndexName defines the placeholder syntax of + Fluentd plugin API. See https://docs.fluentd.org/configuration/buffer-section. type: string - removeLogGroupAwsTagsKey: - type: boolean - removeLogGroupNameKey: - type: boolean - removeLogStreamNameKey: + logEs400Reason: + description: Optional, Enable logging of 400 reason without + enabling debug log level type: boolean - removeRetentionInDaysKey: + logstashFormat: + description: 'If true, Fluentd uses the conventional index + name format logstash-%Y.%m.%d (default: false). This option + supersedes the index_name option.' type: boolean - retentionInDays: - type: string - retentionInDaysKey: - type: string - roleArn: - description: ARN of an IAM role to assume (for cross account - access). + logstashPrefix: + description: 'LogstashPrefix defines the logstash prefix + index name to write events when logstash_format is true + (default: logstash).' type: string - roleSessionName: - description: Role Session name + maxRetryPuttingTemplate: + description: 'Optional, You can specify times of retry putting + template (default: 10)' + format: int32 + type: integer + password: + description: Optional, The login credentials to connect + to Elasticsearch + properties: + valueFrom: + description: ValueSource defines how to find a value's + key. + properties: + secretKeyRef: + description: Selects a key of a secret in the pod's + namespace + properties: + key: + description: The key of the secret to select + from. Must be a valid secret key. + type: string + name: + default: "" + description: |- + Name of the referent. + This field is effectively required, but due to backwards compatibility is + allowed to be empty. Instances of this type with an empty value here are + almost certainly wrong. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + type: string + optional: + description: Specify whether the Secret or its + key must be defined + type: boolean + required: + - key + type: object + x-kubernetes-map-type: atomic + type: object + type: object + path: + description: 'Path defines the REST API endpoint of Elasticsearch + to post write requests (default: nil).' type: string - sslVerifyPeer: + port: + description: 'The port number of your Elasticsearch node + (default: 9200).' + format: int32 + maximum: 65535 + minimum: 1 + type: integer + reconnectOnError: + description: 'Optional, Indicates that the plugin should + reset connection on any error (reconnect on next send) + (default: false)' + type: boolean + reloadAfter: + description: Optional, When ReloadConnections true, this + is the integer number of operations after which the plugin + will reload the connections. The default value is 10000. + format: int32 + type: integer + reloadConnections: + description: 'Optional, Automatically reload connection + after 10000 documents (default: true)' type: boolean - useTagAsGroup: - type: string - useTagAsStream: - type: string - webIdentityTokenFile: - description: Web identity token file + reloadOnFailure: + description: 'Optional, Indicates that the elasticsearch-transport + will try to reload the nodes addresses if there is a failure + while making the request, this can be useful to quickly + remove a dead node from the list of addresses (default: + false)' + type: boolean + requestTimeout: + description: 'Optional, HTTP Timeout (default: 5)' + pattern: ^\d+(s|m|h|d)$ type: string - type: object - copy: - description: copy plugin - properties: - copyMode: - description: CopyMode defines how to pass the events to - plugins. - enum: - - no_copy - - shallow - - deep - - marshal + scheme: + description: 'Specify https if your Elasticsearch endpoint + supports SSL (default: http).' type: string - required: - - copyMode - type: object - customPlugin: - description: Custom plugin type - properties: - config: + snifferClassName: + description: Optional, Provide a different sniffer class + name type: string - required: - - config - type: object - datadog: - description: datadog plugin - properties: - apiKey: - description: This parameter is required in order to authenticate - your fluent agent. + sslVerify: + description: Optional, Force certificate validation + type: boolean + suppressTypeName: + description: Optional, Suppress '[types removal]' warnings + on elasticsearch 7.x + type: boolean + templateOverwrite: + description: 'Optional, Always update the template, even + if it already exists (default: false)' + type: boolean + user: + description: Optional, The login credentials to connect + to Elasticsearch properties: valueFrom: description: ValueSource defines how to find a value's @@ -41683,96 +42378,9 @@ spec: x-kubernetes-map-type: atomic type: object type: object - compressionLevel: - description: Set the log compression level for HTTP (1 to - 9, 9 being the best ratio) - format: int32 - type: integer - ddHostname: - description: Used by Datadog to identify the host submitting - the logs. - type: string - ddSource: - description: This tells Datadog what integration it is - type: string - ddSourcecategory: - description: Multiple value attribute. Can be used to refine - the source attribute - type: string - ddTags: - description: Custom tags with the following format "key1:value1, - key2:value2" - type: string - host: - description: Proxy endpoint when logs are not directly forwarded - to Datadog - type: string - httpProxy: - description: HTTP proxy, only takes effect if HTTP forwarding - is enabled (use_http). Defaults to HTTP_PROXY/http_proxy - env vars. - type: string - includeTagKey: - description: Automatically include the Fluentd tag in the - record. - type: boolean - maxBackoff: - description: The maximum time waited between each retry - in seconds - format: int32 - type: integer - maxRetries: - description: The number of retries before the output plugin - stops. Set to -1 for unlimited retries - format: int32 - type: integer - noSSLValidation: - description: Disable SSL validation (useful for proxy forwarding) - type: boolean - port: - description: Proxy port when logs are not directly forwarded - to Datadog and ssl is not used - format: int32 - maximum: 65535 - minimum: 1 - type: integer - service: - description: Used by Datadog to correlate between logs, - traces and metrics. - type: string - sslPort: - description: Port used to send logs over a SSL encrypted - connection to Datadog. If use_http is disabled, use 10516 - for the US region and 443 for the EU region. - format: int32 - maximum: 65535 - minimum: 1 - type: integer - tagKey: - description: Where to store the Fluentd tag. - type: string - timestampKey: - description: Name of the attribute which will contain timestamp - of the log event. If nil, timestamp attribute is not added. - type: string - useCompression: - description: Enable log compression for HTTP - type: boolean - useHTTP: - description: Enable HTTP forwarding. If you disable it, - make sure to change the port to 10514 or ssl_port to 10516 - type: boolean - useJson: - description: Event format, if true, the event is sent in - json format. Othwerwise, in plain text. - type: boolean - useSSL: - description: If true, the agent initializes a secure connection - to Datadog. In clear TCP otherwise. - type: boolean type: object - elasticsearch: - description: out_es plugin + elasticsearchDataStream: + description: out_es datastreams plugin properties: bulkMessageRequestThreshold: description: |- @@ -41896,6 +42504,39 @@ spec: x-kubernetes-map-type: atomic type: object type: object + dataStreamIlmName: + description: Optional, You can specify the name of an existing + ILM policy, which will be applied to the data stream. + If not present, it creates a new ILM default policy (unless + data_stream_template_name is defined, in that case the + ILM will be set to the one specified in the matching index + template) + type: string + dataStreamIlmPolicy: + description: Optional, You can specify the ILM policy contents + as hash. If not present, it will apply the ILM default + policy + type: string + dataStreamIlmPolicyOverwrite: + description: Optional, Specify whether the data stream ILM + policy should be overwritten + type: boolean + dataStreamName: + description: You can specify Elasticsearch data stream name + by this parameter. This parameter is mandatory for elasticsearch_data_stream + type: string + dataStreamTemplateName: + description: Optional, You can specify an existing matching + index template for the data stream. If not present, it + creates a new matching index template + type: string + dataStreamTemplateUseIndexPatternsWildcard: + description: Optional, Specify whether index patterns should + include a wildcard (*) when creating an index template. + This is particularly useful to prevent errors in scenarios + where index templates are generated automatically, and + multiple services with distinct suffixes are in use + type: boolean enableIlm: description: Optional, Enable Index Lifecycle Management (ILM) @@ -41924,24 +42565,10 @@ spec: description: Optional, Specify whether overwriting ilm policy or not type: boolean - indexName: - description: IndexName defines the placeholder syntax of - Fluentd plugin API. See https://docs.fluentd.org/configuration/buffer-section. - type: string logEs400Reason: description: Optional, Enable logging of 400 reason without enabling debug log level type: boolean - logstashFormat: - description: 'If true, Fluentd uses the conventional index - name format logstash-%Y.%m.%d (default: false). This option - supersedes the index_name option.' - type: boolean - logstashPrefix: - description: 'LogstashPrefix defines the logstash prefix - index name to write events when logstash_format is true - (default: logstash).' - type: string maxRetryPuttingTemplate: description: 'Optional, You can specify times of retry putting template (default: 10)' @@ -42073,9 +42700,13 @@ spec: x-kubernetes-map-type: atomic type: object type: object + required: + - dataStreamName type: object - elasticsearchDataStream: - description: out_es datastreams plugin + elasticsearchDynamic: + description: |- + out_es dynamic plugin (elasticsearch_dynamic). It takes the same parameters as elasticsearch, + but host, port, index and logstash values can use placeholders like ${tag_parts[1]} or ${record['key']}. properties: bulkMessageRequestThreshold: description: |- @@ -42199,39 +42830,6 @@ spec: x-kubernetes-map-type: atomic type: object type: object - dataStreamIlmName: - description: Optional, You can specify the name of an existing - ILM policy, which will be applied to the data stream. - If not present, it creates a new ILM default policy (unless - data_stream_template_name is defined, in that case the - ILM will be set to the one specified in the matching index - template) - type: string - dataStreamIlmPolicy: - description: Optional, You can specify the ILM policy contents - as hash. If not present, it will apply the ILM default - policy - type: string - dataStreamIlmPolicyOverwrite: - description: Optional, Specify whether the data stream ILM - policy should be overwritten - type: boolean - dataStreamName: - description: You can specify Elasticsearch data stream name - by this parameter. This parameter is mandatory for elasticsearch_data_stream - type: string - dataStreamTemplateName: - description: Optional, You can specify an existing matching - index template for the data stream. If not present, it - creates a new matching index template - type: string - dataStreamTemplateUseIndexPatternsWildcard: - description: Optional, Specify whether index patterns should - include a wildcard (*) when creating an index template. - This is particularly useful to prevent errors in scenarios - where index templates are generated automatically, and - multiple services with distinct suffixes are in use - type: boolean enableIlm: description: Optional, Enable Index Lifecycle Management (ILM) @@ -42260,10 +42858,24 @@ spec: description: Optional, Specify whether overwriting ilm policy or not type: boolean + indexName: + description: IndexName defines the placeholder syntax of + Fluentd plugin API. See https://docs.fluentd.org/configuration/buffer-section. + type: string logEs400Reason: description: Optional, Enable logging of 400 reason without enabling debug log level type: boolean + logstashFormat: + description: 'If true, Fluentd uses the conventional index + name format logstash-%Y.%m.%d (default: false). This option + supersedes the index_name option.' + type: boolean + logstashPrefix: + description: 'LogstashPrefix defines the logstash prefix + index name to write events when logstash_format is true + (default: logstash).' + type: string maxRetryPuttingTemplate: description: 'Optional, You can specify times of retry putting template (default: 10)' @@ -42395,8 +43007,6 @@ spec: x-kubernetes-map-type: atomic type: object type: object - required: - - dataStreamName type: object format: description: format section