Skip to content

Commit

Permalink
Merge pull request #1318 from jk-mob/add-storage-total-limit-size-to-…
Browse files Browse the repository at this point in the history
…syslog-plugin

Support storage.total_limit_size in syslog plugin
  • Loading branch information
benjaminhuo committed Aug 23, 2024
2 parents a7efbcc + 192130b commit 850cb1b
Show file tree
Hide file tree
Showing 8 changed files with 38 additions and 0 deletions.
5 changes: 5 additions & 0 deletions apis/fluentbit/v1alpha2/plugins/output/syslog_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ type Syslog struct {
*plugins.TLS `json:"tls,omitempty"`
// Include fluentbit networking options for this output-plugin
*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"`
}

func (_ *Syslog) Name() string {
Expand Down Expand Up @@ -107,5 +109,8 @@ func (s *Syslog) Params(sl plugins.SecretLoader) (*params.KVs, error) {
}
kvs.Merge(net)
}
if s.TotalLimitSize != "" {
kvs.Insert("storage.total_limit_size", s.TotalLimitSize)
}
return kvs, nil
}
Original file line number Diff line number Diff line change
Expand Up @@ -4159,6 +4159,10 @@ spec:
description: Hostname to be used for TLS SNI extension
type: string
type: object
totalLimitSize:
description: Limit the maximum number of Chunks in the filesystem
for the current output logical destination.
type: string
type: object
tcp:
description: TCP defines TCP Output configuration.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4159,6 +4159,10 @@ spec:
description: Hostname to be used for TLS SNI extension
type: string
type: object
totalLimitSize:
description: Limit the maximum number of Chunks in the filesystem
for the current output logical destination.
type: string
type: object
tcp:
description: TCP defines TCP Output configuration.
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 @@ -4159,6 +4159,10 @@ spec:
description: Hostname to be used for TLS SNI extension
type: string
type: object
totalLimitSize:
description: Limit the maximum number of Chunks in the filesystem
for the current output logical destination.
type: string
type: object
tcp:
description: TCP defines TCP Output configuration.
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 @@ -4159,6 +4159,10 @@ spec:
description: Hostname to be used for TLS SNI extension
type: string
type: object
totalLimitSize:
description: Limit the maximum number of Chunks in the filesystem
for the current output logical destination.
type: string
type: object
tcp:
description: TCP defines TCP Output configuration.
Expand Down
1 change: 1 addition & 0 deletions docs/plugins/fluentbit/output/syslog.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ Syslog output plugin allows you to deliver messages to Syslog servers. <br /> **
| syslogMessageKey | Key key name that contains the message to deliver. | string |
| tls | Syslog output plugin supports TTL/SSL, for more details about the properties available and general configuration, please refer to the TLS/SSL section. | *[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 |
8 changes: 8 additions & 0 deletions manifests/setup/fluent-operator-crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8096,6 +8096,10 @@ spec:
description: Hostname to be used for TLS SNI extension
type: string
type: object
totalLimitSize:
description: Limit the maximum number of Chunks in the filesystem
for the current output logical destination.
type: string
type: object
tcp:
description: TCP defines TCP Output configuration.
Expand Down Expand Up @@ -36655,6 +36659,10 @@ spec:
description: Hostname to be used for TLS SNI extension
type: string
type: object
totalLimitSize:
description: Limit the maximum number of Chunks in the filesystem
for the current output logical destination.
type: string
type: object
tcp:
description: TCP defines TCP Output configuration.
Expand Down
8 changes: 8 additions & 0 deletions manifests/setup/setup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8096,6 +8096,10 @@ spec:
description: Hostname to be used for TLS SNI extension
type: string
type: object
totalLimitSize:
description: Limit the maximum number of Chunks in the filesystem
for the current output logical destination.
type: string
type: object
tcp:
description: TCP defines TCP Output configuration.
Expand Down Expand Up @@ -36655,6 +36659,10 @@ spec:
description: Hostname to be used for TLS SNI extension
type: string
type: object
totalLimitSize:
description: Limit the maximum number of Chunks in the filesystem
for the current output logical destination.
type: string
type: object
tcp:
description: TCP defines TCP Output configuration.
Expand Down

0 comments on commit 850cb1b

Please sign in to comment.