beats icon indicating copy to clipboard operation
beats copied to clipboard

[8.19](backport #44489) [Chore] Replace global logger instances with local logger #6

Open mergify[bot] opened this issue 6 months ago • 7 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 #44489 done by Mergify.

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

Cherry-pick of 46bc5fdd94282a3864cc97c8ee91761628b5af29 has failed:

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

You are currently cherry-picking commit 46bc5fdd9.
  (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/crawler.go
	modified:   filebeat/beater/filebeat.go
	modified:   filebeat/input/file/file.go
	modified:   filebeat/input/kafka/kafka_integration_test.go
	modified:   filebeat/input/log/config.go
	modified:   filebeat/input/log/input.go
	modified:   filebeat/input/log/log.go
	modified:   filebeat/input/syslog/config.go
	modified:   filebeat/input/syslog/input.go
	modified:   filebeat/input/syslog/input_test.go
	modified:   filebeat/input/tcp/input.go
	modified:   filebeat/input/udp/input.go
	modified:   filebeat/input/v2/compat/compat_test.go
	modified:   filebeat/input/v2/input-cursor/manager_test.go
	modified:   filebeat/input/v2/input-cursor/store_test.go
	modified:   filebeat/input/v2/internal/inputest/loader.go
	modified:   filebeat/input/v2/loader_test.go
	modified:   filebeat/inputsource/common/dgram/server.go
	modified:   filebeat/inputsource/common/streaming/listener.go
	modified:   filebeat/inputsource/tcp/server.go
	modified:   filebeat/inputsource/tcp/server_test.go
	modified:   filebeat/inputsource/udp/server.go
	modified:   filebeat/inputsource/udp/server_test.go
	modified:   filebeat/inputsource/unix/server.go
	modified:   filebeat/inputsource/unix/server_test.go
	modified:   filebeat/inputsource/unix/socket.go
	modified:   filebeat/registrar/registrar.go
	modified:   libbeat/autodiscover/provider.go
	modified:   libbeat/autodiscover/providers/docker/docker.go
	modified:   libbeat/autodiscover/providers/docker/docker_integration_test.go
	modified:   libbeat/autodiscover/providers/jolokia/jolokia.go
	modified:   libbeat/autodiscover/providers/kubernetes/kubernetes.go
	modified:   libbeat/autodiscover/providers/kubernetes/node.go
	modified:   libbeat/autodiscover/providers/kubernetes/pod.go
	modified:   libbeat/autodiscover/providers/kubernetes/pod_test.go
	modified:   libbeat/autodiscover/providers/kubernetes/service.go
	modified:   libbeat/autodiscover/providers/kubernetes/service_test.go
	modified:   metricbeat/mb/module/wrapper.go
	modified:   metricbeat/module/kubernetes/util/kubernetes.go
	modified:   metricbeat/module/system/network/network.go
	modified:   metricbeat/module/system/network/network_test.go
	modified:   metricbeat/module/system/process/process.go
	modified:   metricbeat/module/system/process/process_test.go
	modified:   metricbeat/module/system/raid/blockinfo/parser.go
	modified:   x-pack/filebeat/input/netflow/input.go
	modified:   x-pack/libbeat/autodiscover/providers/aws/ec2/provider.go
	modified:   x-pack/libbeat/autodiscover/providers/aws/elb/provider.go
	modified:   x-pack/libbeat/autodiscover/providers/nomad/nomad.go

Unmerged paths:
  (use "git add/rm <file>..." as appropriate to mark resolution)
	both modified:   libbeat/autodiscover/autodiscover_test.go
	deleted by us:   metricbeat/module/nats/jetstream/jetstream.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 16 '25 01:06 mergify[bot]

Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane)

elasticmachine avatar Jun 16 '25 01:06 elasticmachine

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

elasticmachine avatar Jun 16 '25 01:06 elasticmachine

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

elasticmachine avatar Jun 16 '25 01:06 elasticmachine

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

elasticmachine avatar Jun 16 '25 01: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]