Skip to content

Commit

Permalink
Merge pull request #1084 from lukasboettcher/fix/syslog-input-params
Browse files Browse the repository at this point in the history
fix: incorrect fields in syslog input plugin parameters
  • Loading branch information
benjaminhuo committed Mar 8, 2024
2 parents 0957492 + 6e7fcf8 commit 4c637fb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apis/fluentbit/v1alpha2/plugins/input/syslog.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ func (s *Syslog) Params(_ plugins.SecretLoader) (*params.KVs, error) {
kvs := params.NewKVs()

if s.Mode != "" {
kvs.Insert("Mode", s.Path)
kvs.Insert("Mode", s.Mode)
}
if s.Listen != "" {
kvs.Insert("Listen", s.Path)
kvs.Insert("Listen", s.Listen)
}
if s.Port != nil {
kvs.Insert("Port", fmt.Sprint(*s.Port))
Expand All @@ -72,7 +72,7 @@ func (s *Syslog) Params(_ plugins.SecretLoader) (*params.KVs, error) {
kvs.Insert("Buffer_Chunk_Size", s.BufferChunkSize)
}
if s.BufferMaxSize != "" {
kvs.Insert("Buffer_Max_Size", s.BufferChunkSize)
kvs.Insert("Buffer_Max_Size", s.BufferMaxSize)
}
if s.ReceiveBufferSize != "" {
kvs.Insert("Receive_Buffer_Size", s.ReceiveBufferSize)
Expand Down

0 comments on commit 4c637fb

Please sign in to comment.