From cc4f9512b71927a1ec91a680c20eab855f934d07 Mon Sep 17 00:00:00 2001 From: Liam Thompson <32779855+leemthompo@users.noreply.github.com> Date: Mon, 21 Oct 2024 17:24:09 +0200 Subject: [PATCH 1/2] [DOCS] Fix typo in changelog (#41315) h/t @lhirlimann --- CHANGELOG.asciidoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.asciidoc b/CHANGELOG.asciidoc index ab562abbb54..449bc30dd52 100644 --- a/CHANGELOG.asciidoc +++ b/CHANGELOG.asciidoc @@ -474,7 +474,7 @@ https://github.com/elastic/beats/compare/v8.13.2\...v8.13.3[View commits] *Metricbeat* -- Add new fields to configure the lease duration, retry and renew when using leader elector with Kubernetes autodiscover.{pull}38471[38471] +- Add new fields to configure the lease duration, retry and renew when using leader elector with Kubernetes autodiscover. {pull}38471[38471] [[release-notes-8.13.2]] From 7ca9893ca0f1e482a3667801f29e6239edfd0127 Mon Sep 17 00:00:00 2001 From: Vinit Chauhan Date: Mon, 21 Oct 2024 13:00:14 -0400 Subject: [PATCH 2/2] [Filebeat][udp] - Remove unnecessary multiplication (#41211) Remove unnecessary multiplication --------- Co-authored-by: Denis Co-authored-by: Kush Rana <89848966+kush-elastic@users.noreply.github.com> --- filebeat/inputsource/udp/server.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/filebeat/inputsource/udp/server.go b/filebeat/inputsource/udp/server.go index 75c74a1f3d0..3a0b429f851 100644 --- a/filebeat/inputsource/udp/server.go +++ b/filebeat/inputsource/udp/server.go @@ -20,8 +20,6 @@ package udp import ( "net" - "github.com/dustin/go-humanize" - "github.com/elastic/beats/v7/filebeat/inputsource" "github.com/elastic/beats/v7/filebeat/inputsource/common/dgram" "github.com/elastic/elastic-agent-libs/logp" @@ -62,12 +60,13 @@ func (u *Server) createConn() (net.PacketConn, error) { if err != nil { return nil, err } - socketSize := int(u.config.ReadBuffer) * humanize.KiByte - if socketSize != 0 { + + if int(u.config.ReadBuffer) != 0 { if err := listener.SetReadBuffer(int(u.config.ReadBuffer)); err != nil { return nil, err } } + u.localaddress = listener.LocalAddr().String() return listener, err