Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add compress in fluentbit output es #899

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions apis/fluentbit/v1alpha2/plugins/output/elasticsearch_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ type Elasticsearch struct {
// This option defines such path on the fluent-bit side.
// It simply adds a path prefix in the indexing HTTP POST URI.
Path string `json:"path,omitempty"`
// Set payload compression mechanism. Option available is 'gzip'
// +kubebuilder:validation:Enum=gzip
Compress string `json:"compress,omitempty"`
// Specify the buffer size used to read the response from the Elasticsearch HTTP service.
// This option is useful for debugging purposes where is required to read full responses,
// note that response size grows depending of the number of records inserted.
Expand Down Expand Up @@ -114,6 +117,9 @@ func (es *Elasticsearch) Params(sl plugins.SecretLoader) (*params.KVs, error) {
if es.Path != "" {
kvs.Insert("Path", es.Path)
}
if es.Compress != "" {
kvs.Insert("Compress", es.Compress)
}
if es.BufferSize != "" {
kvs.Insert("Buffer_Size", es.BufferSize)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,12 @@ spec:
description: If you are using Elastic's Elasticsearch Service
you can specify the cloud_id of the cluster running.
type: string
compress:
description: Set payload compression mechanism. Option available
is 'gzip'
enum:
- gzip
type: string
currentTimeIndex:
description: Use current time for index generation instead of
message record
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,12 @@ spec:
description: If you are using Elastic's Elasticsearch Service
you can specify the cloud_id of the cluster running.
type: string
compress:
description: Set payload compression mechanism. Option available
is 'gzip'
enum:
- gzip
type: string
currentTimeIndex:
description: Use current time for index generation instead of
message record
Expand Down
6 changes: 6 additions & 0 deletions config/crd/bases/fluentbit.fluent.io_clusteroutputs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,12 @@ spec:
description: If you are using Elastic's Elasticsearch Service
you can specify the cloud_id of the cluster running.
type: string
compress:
description: Set payload compression mechanism. Option available
is 'gzip'
enum:
- gzip
type: string
currentTimeIndex:
description: Use current time for index generation instead of
message record
Expand Down
6 changes: 6 additions & 0 deletions config/crd/bases/fluentbit.fluent.io_outputs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,12 @@ spec:
description: If you are using Elastic's Elasticsearch Service
you can specify the cloud_id of the cluster running.
type: string
compress:
description: Set payload compression mechanism. Option available
is 'gzip'
enum:
- gzip
type: string
currentTimeIndex:
description: Use current time for index generation instead of
message record
Expand Down
1 change: 0 additions & 1 deletion docs/fluentbit.md
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,6 @@ InputSpec defines the desired state of ClusterInput
| forward | Forward defines forward input plugin configuration | *[input.Forward](plugins/input/forward.md) |
| openTelemetry | OpenTelemetry defines forward input plugin configuration | *[input.OpenTelemetry](plugins/input/opentelemetry.md) |


[Back to TOC](#table-of-contents)
# NamespacedFluentBitCfgSpec

Expand Down
1 change: 1 addition & 0 deletions docs/plugins/fluentbit/output/elasticsearch.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Elasticsearch is the es output plugin, allows to ingest your records into an Ela
| host | IP address or hostname of the target Elasticsearch instance | string |
| port | TCP port of the target Elasticsearch instance | *int32 |
| path | Elasticsearch accepts new data on HTTP query path \"/_bulk\". But it is also possible to serve Elasticsearch behind a reverse proxy on a subpath. This option defines such path on the fluent-bit side. It simply adds a path prefix in the indexing HTTP POST URI. | string |
| compress | Set payload compression mechanism. Option available is 'gzip' | string |
| bufferSize | Specify the buffer size used to read the response from the Elasticsearch HTTP service. This option is useful for debugging purposes where is required to read full responses, note that response size grows depending of the number of records inserted. To set an unlimited amount of memory set this value to False, otherwise the value must be according to the Unit Size specification. | string |
| pipeline | Newer versions of Elasticsearch allows setting up filters called pipelines. This option allows defining which pipeline the database should use. For performance reasons is strongly suggested parsing and filtering on Fluent Bit side, avoid pipelines. | string |
| awsAuth | Enable AWS Sigv4 Authentication for Amazon ElasticSearch Service. | string |
Expand Down
12 changes: 12 additions & 0 deletions manifests/setup/fluent-operator-crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2656,6 +2656,12 @@ spec:
description: If you are using Elastic's Elasticsearch Service
you can specify the cloud_id of the cluster running.
type: string
compress:
description: Set payload compression mechanism. Option available
is 'gzip'
enum:
- gzip
type: string
currentTimeIndex:
description: Use current time for index generation instead of
message record
Expand Down Expand Up @@ -25372,6 +25378,12 @@ spec:
description: If you are using Elastic's Elasticsearch Service
you can specify the cloud_id of the cluster running.
type: string
compress:
description: Set payload compression mechanism. Option available
is 'gzip'
enum:
- gzip
type: string
currentTimeIndex:
description: Use current time for index generation instead of
message record
Expand Down
12 changes: 12 additions & 0 deletions manifests/setup/setup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2656,6 +2656,12 @@ spec:
description: If you are using Elastic's Elasticsearch Service
you can specify the cloud_id of the cluster running.
type: string
compress:
description: Set payload compression mechanism. Option available
is 'gzip'
enum:
- gzip
type: string
currentTimeIndex:
description: Use current time for index generation instead of
message record
Expand Down Expand Up @@ -25372,6 +25378,12 @@ spec:
description: If you are using Elastic's Elasticsearch Service
you can specify the cloud_id of the cluster running.
type: string
compress:
description: Set payload compression mechanism. Option available
is 'gzip'
enum:
- gzip
type: string
currentTimeIndex:
description: Use current time for index generation instead of
message record
Expand Down
Loading