Skip to content

Commit

Permalink
Merge pull request #1258 from smallc2009/add-compression-opensearch-o…
Browse files Browse the repository at this point in the history
…utput

add compression to opensearch output plugin
  • Loading branch information
benjaminhuo authored Jul 24, 2024
2 parents ffb0121 + 593503f commit 73e47bd
Show file tree
Hide file tree
Showing 8 changed files with 35 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apis/fluentbit/v1alpha2/plugins/output/open_search_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ type OpenSearch struct {
*plugins.Networking `json:"networking,omitempty"`
// Limit the maximum number of Chunks in the filesystem for the current output logical destination.
TotalLimitSize string `json:"totalLimitSize,omitempty"`
// +kubebuilder:validation:Enum=gzip
Compress string `json:"compress,omitempty"`
}

// Name implement Section() method
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2456,6 +2456,10 @@ spec:
otherwise the value must be according to the Unit Size specification.
pattern: ^\d+(k|K|KB|kb|m|M|MB|mb|g|G|GB|gb)?$
type: string
compress:
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 @@ -2456,6 +2456,10 @@ spec:
otherwise the value must be according to the Unit Size specification.
pattern: ^\d+(k|K|KB|kb|m|M|MB|mb|g|G|GB|gb)?$
type: string
compress:
enum:
- gzip
type: string
currentTimeIndex:
description: Use current time for index generation instead of
message record
Expand Down
4 changes: 4 additions & 0 deletions config/crd/bases/fluentbit.fluent.io_clusteroutputs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2456,6 +2456,10 @@ spec:
otherwise the value must be according to the Unit Size specification.
pattern: ^\d+(k|K|KB|kb|m|M|MB|mb|g|G|GB|gb)?$
type: string
compress:
enum:
- gzip
type: string
currentTimeIndex:
description: Use current time for index generation instead of
message record
Expand Down
4 changes: 4 additions & 0 deletions config/crd/bases/fluentbit.fluent.io_outputs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2456,6 +2456,10 @@ spec:
otherwise the value must be according to the Unit Size specification.
pattern: ^\d+(k|K|KB|kb|m|M|MB|mb|g|G|GB|gb)?$
type: string
compress:
enum:
- gzip
type: string
currentTimeIndex:
description: Use current time for index generation instead of
message record
Expand Down
1 change: 1 addition & 0 deletions docs/plugins/fluentbit/output/open_search.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,4 @@ OpenSearch is the opensearch output plugin, allows to ingest your records into a
| tls | | *[plugins.TLS](../tls.md) |
| networking | Include fluentbit networking options for this output-plugin | *plugins.Networking |
| totalLimitSize | Limit the maximum number of Chunks in the filesystem for the current output logical destination. | string |
| compress | | string |
8 changes: 8 additions & 0 deletions manifests/setup/fluent-operator-crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6249,6 +6249,10 @@ spec:
otherwise the value must be according to the Unit Size specification.
pattern: ^\d+(k|K|KB|kb|m|M|MB|mb|g|G|GB|gb)?$
type: string
compress:
enum:
- gzip
type: string
currentTimeIndex:
description: Use current time for index generation instead of
message record
Expand Down Expand Up @@ -34710,6 +34714,10 @@ spec:
otherwise the value must be according to the Unit Size specification.
pattern: ^\d+(k|K|KB|kb|m|M|MB|mb|g|G|GB|gb)?$
type: string
compress:
enum:
- gzip
type: string
currentTimeIndex:
description: Use current time for index generation instead of
message record
Expand Down
8 changes: 8 additions & 0 deletions manifests/setup/setup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6249,6 +6249,10 @@ spec:
otherwise the value must be according to the Unit Size specification.
pattern: ^\d+(k|K|KB|kb|m|M|MB|mb|g|G|GB|gb)?$
type: string
compress:
enum:
- gzip
type: string
currentTimeIndex:
description: Use current time for index generation instead of
message record
Expand Down Expand Up @@ -34710,6 +34714,10 @@ spec:
otherwise the value must be according to the Unit Size specification.
pattern: ^\d+(k|K|KB|kb|m|M|MB|mb|g|G|GB|gb)?$
type: string
compress:
enum:
- gzip
type: string
currentTimeIndex:
description: Use current time for index generation instead of
message record
Expand Down

0 comments on commit 73e47bd

Please sign in to comment.