Skip to content

Commit

Permalink
fix: incorrect fields in syslog input plugin parameters
Browse files Browse the repository at this point in the history
Signed-off-by: Lukas Boettcher <[email protected]>
  • Loading branch information
lukasboettcher committed Mar 7, 2024
1 parent 82dc7a9 commit 6e7fcf8
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 6e7fcf8

Please sign in to comment.