beats icon indicating copy to clipboard operation
beats copied to clipboard

[8.19](backport #44607) [Chore] Replace global logger with local logger #7

Open mergify[bot] opened this issue 6 months ago • 8 comments

Proposed commit message

This PR replaces global logger instances with local loggers

Checklist

  • [x] My code follows the style guidelines of this project
  • [x] I have commented my code, particularly in hard-to-understand areas
  • [ ] I have made corresponding changes to the documentation
  • [ ] I have made corresponding change to the default configuration files
  • [ ] I have added tests that prove my fix is effective or that my feature works
  • [ ] I have added an entry in CHANGELOG.next.asciidoc or CHANGELOG-developer.next.asciidoc.

Related issues

  • Part of https://github.com/elastic/ingest-dev/issues/5202
  • For https://github.com/elastic/ingest-dev/issues/5251
    This is an automatic backport of pull request #44607 done by Mergify.

mergify[bot] avatar Jun 12 '25 12:06 mergify[bot]

Cherry-pick of 404bf217775e143ee15938cd42a0d565a04b8567 has failed:

On branch mergify/bp/8.19/pr-44607
Your branch is up to date with 'origin/8.19'.

You are currently cherry-picking commit 404bf2177.
  (fix conflicts and run "git cherry-pick --continue")
  (use "git cherry-pick --skip" to skip this patch)
  (use "git cherry-pick --abort" to cancel the cherry-pick operation)

Changes to be committed:
	modified:   filebeat/beater/filebeat.go
	modified:   filebeat/beater/signalwait.go
	modified:   filebeat/config/config.go
	modified:   filebeat/config/config_test.go
	modified:   filebeat/fileset/compatibility_test.go
	modified:   filebeat/fileset/fileset.go
	modified:   filebeat/fileset/fileset_test.go
	modified:   filebeat/fileset/modules.go
	modified:   filebeat/fileset/modules_integration_test.go
	modified:   filebeat/fileset/pipelines_test.go
	modified:   filebeat/harvester/forwarder.go
	modified:   filebeat/harvester/registry.go
	modified:   filebeat/harvester/util_test.go
	modified:   filebeat/input/file/identifier.go
	modified:   filebeat/input/file/identifier_inode_deviceid.go
	modified:   filebeat/input/file/identifier_inode_deviceid_windows.go
	modified:   filebeat/input/file/identifier_test.go
	modified:   filebeat/input/file/identifier_test_windows.go
	modified:   filebeat/input/file/states.go
	modified:   filebeat/input/file/states_test.go
	modified:   filebeat/input/filestream/copytruncate_prospector_test.go
	modified:   filebeat/input/filestream/environment_test.go
	modified:   filebeat/input/filestream/filestream_test.go
	modified:   filebeat/input/filestream/filestream_test_non_windows.go
	modified:   filebeat/input/filestream/fswatch_test_non_windows.go
	modified:   filebeat/input/filestream/identifier_fingerprint.go
	modified:   filebeat/input/filestream/internal/input-logfile/clean_test.go
	modified:   filebeat/input/filestream/internal/input-logfile/store_test.go
	modified:   filebeat/input/journald/pkg/journalfield/conv_test.go
	modified:   filebeat/input/log/harvester.go
	modified:   filebeat/input/log/harvester_test.go
	modified:   filebeat/input/log/input.go
	modified:   filebeat/input/log/input_other_test.go
	modified:   filebeat/input/mqtt/input.go
	modified:   filebeat/input/mqtt/logging.go
	modified:   filebeat/input/netmetrics/netmetrics_test.go
	modified:   filebeat/input/redis/harvester.go
	modified:   filebeat/input/redis/input.go
	modified:   filebeat/input/stdin/input.go
	modified:   filebeat/input/syslog/input.go
	modified:   filebeat/input/v2/input-cursor/clean_test.go
	modified:   filebeat/registrar/migrate.go
	modified:   filebeat/registrar/registrar.go
	modified:   x-pack/auditbeat/module/system/host/host.go
	modified:   x-pack/auditbeat/module/system/login/login.go
	modified:   x-pack/auditbeat/module/system/process/process.go
	modified:   x-pack/auditbeat/module/system/socket/socket_linux.go
	modified:   x-pack/auditbeat/module/system/system.go
	modified:   x-pack/filebeat/input/awss3/s3_filters_test.go
	modified:   x-pack/filebeat/input/awss3/s3_objects_test.go
	modified:   x-pack/filebeat/input/awss3/sqs_s3_event_test.go
	modified:   x-pack/filebeat/input/httpjson/transform_set_test.go
	modified:   x-pack/filebeat/input/netflow/decoder/v9/session_test.go
	modified:   x-pack/metricbeat/module/aws/awshealth/awshealth.go
	modified:   x-pack/metricbeat/module/aws/billing/billing.go
	modified:   x-pack/metricbeat/module/aws/cloudwatch/cloudwatch.go
	modified:   x-pack/metricbeat/module/aws/cloudwatch/cloudwatch_test.go
	modified:   x-pack/metricbeat/module/awsfargate/task_stats/task_stats.go
	modified:   x-pack/metricbeat/module/azure/app_insights/app_insights.go
	modified:   x-pack/metricbeat/module/azure/billing/billing.go
	modified:   x-pack/metricbeat/module/azure/billing/data_test.go
	modified:   x-pack/metricbeat/module/cloudfoundry/cloudfoundry.go
	modified:   x-pack/metricbeat/module/gcp/billing/billing.go
	modified:   x-pack/metricbeat/module/gcp/carbon/carbon.go
	modified:   x-pack/metricbeat/module/gcp/metrics/metricset.go
	modified:   x-pack/metricbeat/module/iis/application_pool/application_pool.go
	modified:   x-pack/metricbeat/module/meraki/device_health/device_health.go
	modified:   x-pack/metricbeat/module/mssql/performance/performance.go
	modified:   x-pack/metricbeat/module/mssql/transaction_log/transaction_log.go
	modified:   x-pack/metricbeat/module/openai/usage/usage.go
	modified:   x-pack/metricbeat/module/panw/interfaces/interfaces.go
	modified:   x-pack/metricbeat/module/panw/routing/routing.go
	modified:   x-pack/metricbeat/module/panw/system/system.go
	modified:   x-pack/metricbeat/module/panw/vpn/vpn.go
	modified:   x-pack/metricbeat/module/stan/channels/channels.go
	modified:   x-pack/metricbeat/module/stan/subscriptions/subscriptions.go

Unmerged paths:
  (use "git add <file>..." to mark resolution)
	both modified:   filebeat/inputsource/tcp/server_test.go
	both modified:   x-pack/auditbeat/module/system/package/package.go
	both modified:   x-pack/auditbeat/module/system/user/user.go

To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally

mergify[bot] avatar Jun 12 '25 12:06 mergify[bot]

Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane)

elasticmachine avatar Jun 12 '25 12:06 elasticmachine

Pinging @elastic/obs-ds-hosted-services (Team:obs-ds-hosted-services)

elasticmachine avatar Jun 12 '25 12:06 elasticmachine

Pinging @elastic/sec-linux-platform (Team:Security-Linux Platform)

elasticmachine avatar Jun 12 '25 12:06 elasticmachine

Pinging @elastic/security-service-integrations (Team:Security-Service Integrations)

elasticmachine avatar Jun 12 '25 12:06 elasticmachine

Pinging @elastic/sec-deployment-and-devices (Team:Security-Deployment and Devices)

elasticmachine avatar Jun 12 '25 12:06 elasticmachine

This pull request has not been merged yet. Could you please review and merge it @khushijain21? 🙏

mergify[bot] avatar Jun 16 '25 04:06 mergify[bot]

This pull request has not been merged yet. Could you please review and merge it @khushijain21? 🙏

mergify[bot] avatar Jun 23 '25 04:06 mergify[bot]

This pull request is now in conflicts. Could you fix it? 🙏 To fixup this pull request, you can check out it locally. See documentation: https://help.github.com/articles/checking-out-pull-requests-locally/

git fetch upstream
git checkout -b mergify/bp/8.19/pr-44607 upstream/mergify/bp/8.19/pr-44607
git merge upstream/8.19
git push upstream mergify/bp/8.19/pr-44607

mergify[bot] avatar Jun 30 '25 01:06 mergify[bot]

This pull request is now in conflicts. Could you fix it? 🙏 To fixup this pull request, you can check out it locally. See documentation: https://help.github.com/articles/checking-out-pull-requests-locally/

git fetch upstream
git checkout -b mergify/bp/8.19/pr-44607 upstream/mergify/bp/8.19/pr-44607
git merge upstream/8.19
git push upstream mergify/bp/8.19/pr-44607

mergify[bot] avatar Jun 30 '25 03:06 mergify[bot]

This pull request has not been merged yet. Could you please review and merge it @khushijain21? 🙏

mergify[bot] avatar Jun 30 '25 04:06 mergify[bot]