Skip to content

formatter: add access log formatters for tracking upstream hosts and connection IDs attempted#43215

Open
IssaAbuKalbein wants to merge 2 commits intoenvoyproxy:mainfrom
IssaAbuKalbein:upstream_formatters
Open

formatter: add access log formatters for tracking upstream hosts and connection IDs attempted#43215
IssaAbuKalbein wants to merge 2 commits intoenvoyproxy:mainfrom
IssaAbuKalbein:upstream_formatters

Conversation

@IssaAbuKalbein
Copy link
Contributor

Commit Message: formatter: add access log formatters for tracking upstream hosts and connection IDs attempted

Additional Description: Adds new access log formatters to track all upstream hosts and connection IDs attempted during request processing:

  • %UPSTREAM_HOSTS_ATTEMPTED% - Comma-separated list of upstream host addresses (ip:port)
  • %UPSTREAM_HOSTS_ATTEMPTED_WITHOUT_PORT% - Upstream host addresses without port
  • %UPSTREAM_HOST_NAMES_ATTEMPTED% - Upstream host names
  • %UPSTREAM_HOST_NAMES_ATTEMPTED_WITHOUT_PORT% - Upstream host names without port
  • %UPSTREAM_CONNECTION_IDS_ATTEMPTED% - Connection IDs used during request processing

Extended StreamInfo::UpstreamInfo interface with methods to track attempted hosts and connection IDs. Implemented tracking in HTTP router, TCP proxy, and UDP proxy.

Risk Level: Low

Testing: Unit tests added for all new formatters. Mocks updated for new interface methods.

Docs Changes: Updated docs/root/configuration/advanced/substitution_formatter.rst with documentation for all new formatters.

Release Notes: Added entry in changelogs/current.yaml.

Platform Specific Features: N/A

…connection IDs attempted

Signed-off-by: Issa Abu Kalbein <iabukalbein@microsoft.com>
@IssaAbuKalbein
Copy link
Contributor Author

/retest

Signed-off-by: Issa Abu Kalbein <86603440+IssaAbuKalbein@users.noreply.github.com>
@IssaAbuKalbein
Copy link
Contributor Author

/retest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants