Skip to content

[9.1](backport #45720) Replace global loggers with local logger #13#45959

Merged
khushijain21 merged 4 commits into
9.1from
mergify/bp/9.1/pr-45720
Aug 14, 2025
Merged

[9.1](backport #45720) Replace global loggers with local logger #13#45959
khushijain21 merged 4 commits into
9.1from
mergify/bp/9.1/pr-45720

Conversation

@mergify
Copy link
Copy Markdown
Contributor

@mergify mergify Bot commented Aug 13, 2025

Proposed commit message

This PR updates elastic-agent-libs and accomodates the logger changes made in this PR elastic/elastic-agent-libs#334

Checklist

  • My code follows the style guidelines of this project
  • 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

* Replace global loggers with local logger #13

(cherry picked from commit 8df1efe)

# Conflicts:
#	NOTICE.txt
#	go.mod
#	go.sum
#	x-pack/filebeat/input/http_endpoint/input.go
@mergify mergify Bot added backport conflicts There is a conflict in the backported pull request labels Aug 13, 2025
@mergify mergify Bot requested review from a team as code owners August 13, 2025 11:59
@mergify
Copy link
Copy Markdown
Contributor Author

mergify Bot commented Aug 13, 2025

Cherry-pick of 8df1efe has failed:

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

You are currently cherry-picking commit 8df1efe87.
  (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/input/kafka/config.go
	modified:   filebeat/input/mqtt/client.go
	modified:   filebeat/input/mqtt/input.go
	modified:   filebeat/input/redis/input.go
	modified:   filebeat/input/redis/redis_integration_test.go
	modified:   filebeat/inputsource/tcp/server.go
	modified:   heartbeat/monitors/active/http/http.go
	modified:   heartbeat/monitors/active/tcp/tcp.go
	modified:   libbeat/common/transport/transptest/testing.go
	modified:   libbeat/esleg/eslegclient/connection.go
	modified:   libbeat/otelbeat/oteltranslate/tls_otel.go
	modified:   libbeat/outputs/kafka/config.go
	modified:   libbeat/outputs/logstash/logstash.go
	modified:   libbeat/outputs/redis/redis.go
	modified:   libbeat/processors/add_cloud_metadata/add_cloud_metadata.go
	modified:   libbeat/processors/translate_ldap_attribute/translate_ldap_attribute.go
	modified:   metricbeat/helper/http.go
	modified:   metricbeat/helper/http_test.go
	modified:   metricbeat/helper/http_windows_test.go
	modified:   metricbeat/helper/server/http/http.go
	modified:   metricbeat/mb/module/example_test.go
	modified:   metricbeat/module/aerospike/aerospike.go
	modified:   metricbeat/module/aerospike/aerospike_test.go
	modified:   metricbeat/module/aerospike/namespace/namespace.go
	modified:   metricbeat/module/elasticsearch/cluster_stats/data_test.go
	modified:   metricbeat/module/elasticsearch/index/data_test.go
	modified:   metricbeat/module/kafka/metricset.go
	modified:   metricbeat/module/mongodb/collstats/collstats.go
	modified:   metricbeat/module/mongodb/dbstats/dbstats.go
	modified:   metricbeat/module/mongodb/metrics/metrics.go
	modified:   metricbeat/module/mongodb/mongodb.go
	modified:   metricbeat/module/mongodb/replstatus/replstatus.go
	modified:   metricbeat/module/mongodb/replstatus/replstatus_integration_test.go
	modified:   metricbeat/module/mongodb/status/status.go
	modified:   metricbeat/module/mysql/mysql.go
	modified:   metricbeat/module/mysql/query/query.go
	modified:   metricbeat/module/redis/metricset.go
	modified:   x-pack/filebeat/input/cel/input.go
	modified:   x-pack/filebeat/input/entityanalytics/provider/activedirectory/activedirectory.go
	modified:   x-pack/filebeat/input/entityanalytics/provider/activedirectory/conf.go
	modified:   x-pack/filebeat/input/entityanalytics/provider/azuread/authenticator/oauth2/oauth2.go
	modified:   x-pack/filebeat/input/entityanalytics/provider/azuread/fetcher/graph/graph.go
	modified:   x-pack/filebeat/input/entityanalytics/provider/jamf/jamf.go
	modified:   x-pack/filebeat/input/entityanalytics/provider/okta/okta.go
	modified:   x-pack/filebeat/input/http_endpoint/input_test.go
	modified:   x-pack/filebeat/input/httpjson/input.go
	modified:   x-pack/filebeat/input/lumberjack/server.go
	modified:   x-pack/filebeat/input/salesforce/input.go
	modified:   x-pack/filebeat/input/streaming/crowdstrike.go
	modified:   x-pack/filebeat/input/streaming/websocket.go
	modified:   x-pack/libbeat/common/aws/credentials.go
	modified:   x-pack/libbeat/common/cloudfoundry/hub.go
	modified:   x-pack/metricbeat/module/sql/query/dsn.go
	modified:   x-pack/metricbeat/module/sql/query/dsn_test.go

Unmerged paths:
  (use "git add <file>..." to mark resolution)
	both modified:   NOTICE.txt
	both modified:   go.mod
	both modified:   go.sum
	both modified:   x-pack/filebeat/input/http_endpoint/input.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 mergify Bot requested review from belimawr and mauri870 and removed request for a team August 13, 2025 11:59
@botelastic botelastic Bot added the needs_team Indicates that the issue/PR needs a Team:* label label Aug 13, 2025
@github-actions
Copy link
Copy Markdown
Contributor

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)

@github-actions github-actions Bot added Team:Integrations Label for the Integrations team Team:obs-ds-hosted-services Label for the Observability Hosted Services team Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team Team:Security-Service Integrations Security Service Integrations Team Team:Security-Windows Platform Windows Platform Team in Security Solution Team:Monitoring Stack Monitoring team labels Aug 13, 2025
@botelastic botelastic Bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Aug 13, 2025
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/integrations (Team:Integrations)

@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/sec-windows-platform (Team:Security-Windows Platform)

@elasticmachine
Copy link
Copy Markdown
Contributor

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

@elasticmachine
Copy link
Copy Markdown
Contributor

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

@elasticmachine
Copy link
Copy Markdown
Contributor

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

@khushijain21 khushijain21 enabled auto-merge (squash) August 14, 2025 04:41
@khushijain21 khushijain21 merged commit 8eddbaf into 9.1 Aug 14, 2025
247 of 250 checks passed
@khushijain21 khushijain21 deleted the mergify/bp/9.1/pr-45720 branch August 14, 2025 06:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport conflicts There is a conflict in the backported pull request Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team Team:Integrations Label for the Integrations team Team:Monitoring Stack Monitoring team Team:obs-ds-hosted-services Label for the Observability Hosted Services team Team:Security-Service Integrations Security Service Integrations Team Team:Security-Windows Platform Windows Platform Team in Security Solution

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants