From a69cbd68708fedc18c8b8b103e579306fe07da37 Mon Sep 17 00:00:00 2001 From: ShourieG <105607378+ShourieG@users.noreply.github.com> Date: Fri, 27 Jan 2023 17:42:42 +0530 Subject: [PATCH 1/2] Revert "fixed log naming syntax to not clash with ecs field names (#34403) (#34404)" This reverts commit 73396eb9877c2778f685775ea02c4efc86a4f62a. --- CHANGELOG.next.asciidoc | 25 ------------------- .../filebeat/input/azureblobstorage/input.go | 2 +- 2 files changed, 1 insertion(+), 26 deletions(-) diff --git a/CHANGELOG.next.asciidoc b/CHANGELOG.next.asciidoc index 388e29a32ae4..a758bccf7044 100644 --- a/CHANGELOG.next.asciidoc +++ b/CHANGELOG.next.asciidoc @@ -44,31 +44,6 @@ https://github.com/elastic/beats/compare/v8.2.0\...main[Check the HEAD diff] *Filebeat* -- [Azure blob storage] Changed logger field name from `container` to `container_name` so that it does not clash - with the ecs field name `container`. {pull}34403[34403] -- [GCS] Added support for more mime types & introduced offset tracking via cursor state. Also added support for - automatic splitting at root level, if root level element is an array. {pull}34155[34155] -- [httpsjon] Improved error handling during pagination with chaining & split processor {pull}34127[34127] -- [Azure blob storage] Added support for more mime types & introduced offset tracking via cursor state. {pull}33981[33981] -- Fix EOF on single line not producing any event. {issue}30436[30436] {pull}33568[33568] -- Fix handling of error in states in direct aws-s3 listing input {issue}33513[33513] {pull}33722[33722] -- Fix `httpjson` input page number initialization and documentation. {pull}33400[33400] -- Add handling of AAA operations for Cisco ASA module. {issue}32257[32257] {pull}32789[32789] -- Fix gc.log always shipped even if gc fileset is disabled {issue}30995[30995] -- Fix handling of empty array in httpjson input. {pull}32001[32001] -- Fix reporting of `filebeat.events.active` in log events such that the current value is always reported instead of the difference from the last value. {pull}33597[33597] -- Fix splitting array of strings/arrays in httpjson input {issue}30345[30345] {pull}33609[33609] -- Fix Google workspace pagination and document ID generation. {pull}33666[33666] -- Fix PANW handling of messages with event.original already set. {issue}33829[33829] {pull}33830[33830] -- Rename identity as identity_name when the value is a string in Azure Platform Logs. {pull}33654[33654] -- Fix 'requires pointer' error while getting cursor metadata. {pull}33956[33956] -- Fix input cancellation handling when HTTP client does not support contexts. {issue}33962[33962] {pull}33968[33968] -- Update mito CEL extension library to v0.0.0-20221207004749-2f0f2875e464 {pull}33974[33974] -- Fix CEL result deserialisation when evaluation fails. {issue}33992[33992] {pull}33996[33996] -- Fix handling of non-200/non-429 status codes. {issue}33999[33999] {pull}34002[34002] -- [azure-eventhub input] Switch the run EPH run mode to non-blocking {pull}34075[34075] -- [google_workspace] Fix pagination and cursor value update. {pull}34274[34274] -- Fix handling of quoted values in auditd module. {issue}22587[22587] {pull}34069[34069] *Heartbeat* - Fix broken zip URL monitors. NOTE: Zip URL Monitors will be removed in version 8.7 and replaced with project monitors. {pull}33723[33723] diff --git a/x-pack/filebeat/input/azureblobstorage/input.go b/x-pack/filebeat/input/azureblobstorage/input.go index 8abfd6c810c8..c9f887cf3752 100644 --- a/x-pack/filebeat/input/azureblobstorage/input.go +++ b/x-pack/filebeat/input/azureblobstorage/input.go @@ -113,7 +113,7 @@ func (input *azurebsInput) Test(src cursor.Source, ctx v2.TestContext) error { func (input *azurebsInput) Run(inputCtx v2.Context, src cursor.Source, cursor cursor.Cursor, publisher cursor.Publisher) error { currentSource := src.(*Source) - log := inputCtx.Logger.With("account_name", currentSource.AccountName).With("container_name", currentSource.ContainerName) + log := inputCtx.Logger.With("account_name", currentSource.AccountName).With("container", currentSource.ContainerName) log.Infof("Running azure blob storage for account: %s", input.config.AccountName) var cp *Checkpoint From 4acc22594f189d0e5fd846c63d663b30d3555e2c Mon Sep 17 00:00:00 2001 From: ShourieG <105607378+ShourieG@users.noreply.github.com> Date: Fri, 27 Jan 2023 18:09:30 +0530 Subject: [PATCH 2/2] Update x-pack/filebeat/input/azureblobstorage/input.go --- x-pack/filebeat/input/azureblobstorage/input.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/filebeat/input/azureblobstorage/input.go b/x-pack/filebeat/input/azureblobstorage/input.go index c9f887cf3752..8abfd6c810c8 100644 --- a/x-pack/filebeat/input/azureblobstorage/input.go +++ b/x-pack/filebeat/input/azureblobstorage/input.go @@ -113,7 +113,7 @@ func (input *azurebsInput) Test(src cursor.Source, ctx v2.TestContext) error { func (input *azurebsInput) Run(inputCtx v2.Context, src cursor.Source, cursor cursor.Cursor, publisher cursor.Publisher) error { currentSource := src.(*Source) - log := inputCtx.Logger.With("account_name", currentSource.AccountName).With("container", currentSource.ContainerName) + log := inputCtx.Logger.With("account_name", currentSource.AccountName).With("container_name", currentSource.ContainerName) log.Infof("Running azure blob storage for account: %s", input.config.AccountName) var cp *Checkpoint