From 6e7fcf878aa1ca467d4a1507c320aebb41b63737 Mon Sep 17 00:00:00 2001 From: Lukas Boettcher <1340215+lukasboettcher@users.noreply.github.com> Date: Thu, 7 Mar 2024 20:41:52 +0100 Subject: [PATCH] fix: incorrect fields in syslog input plugin parameters Signed-off-by: Lukas Boettcher <1340215+lukasboettcher@users.noreply.github.com> --- apis/fluentbit/v1alpha2/plugins/input/syslog.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apis/fluentbit/v1alpha2/plugins/input/syslog.go b/apis/fluentbit/v1alpha2/plugins/input/syslog.go index 4597d9a7a..27b2121b5 100644 --- a/apis/fluentbit/v1alpha2/plugins/input/syslog.go +++ b/apis/fluentbit/v1alpha2/plugins/input/syslog.go @@ -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)) @@ -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)