gateway icon indicating copy to clipboard operation
gateway copied to clipboard

Getting service, namespace of matched rule in accessLog

Open mohammad5305 opened this issue 6 months ago • 4 comments

Description: i have a use case such that in my dashboards i use namespace and service name to filter my traffic now in envoy i want to add a field to my access log as below

UPS: <namespace>_<svc>

how can i achieve it? currently the solution i'm using is creating HTTPRoute for every service

UPS: %CEL(xds.route_metadata.filter_metadata['envoy-gateway']['resources'][0]['namespace'])%_%CEL(xds.route_metadata.filter_metadata['envoy-gateway']['resources'][0]['name'])%

mohammad5305 avatar May 16 '25 20:05 mohammad5305

cc @Ido-Itz

guydc avatar May 19 '25 16:05 guydc

Hi @guydc This is my first time contributing to gateway, Can you suggest me that is this feature request beginner-friendly to start with ? Guide me a little bit Thanks!

BHAVISHYA2005 avatar May 19 '25 16:05 BHAVISHYA2005

@BHAVISHYA2005 recommend picking issues with the label good first issue https://github.com/envoyproxy/gateway/issues?q=is%3Aissue%20state%3Aopen%20label%3A%22good%20first%20issue%22

arkodg avatar May 19 '25 17:05 arkodg

This issue has been automatically marked as stale because it has not had activity in the last 30 days.

github-actions[bot] avatar Jun 18 '25 20:06 github-actions[bot]