Include Kubernetes metadata like HTTPRoute name, namespace, etc.. in access logs #4907
-
|
Hi all 🙋🏾, The reason I am wondering about this is, back in the
And my log format looked something like below. {
"logtime": "$time_local",
"ssl_protocol": "$ssl_protocol",
"ssl_cipher": "$ssl_cipher",
"request_id": "$req_id",
......
"status": "$status",
"service": {
"ingress_namespace": "$namespace",
"service_name": "$service_name",
"service_port": "$service_port"
},
"geoip": {
"country_code": "$geoip2_country_code",
"city": "$geoip2_city",
"postal_code": "$geoip2_postal_code",
"latitude": "$geoip2_latitude",
"geoip_longitude": "$geoip2_longitude"
}
}I went through as much documentation as I could for the Gateway Fabric but could not find an equivalent configuration or a set of variables that can output similar information. Have I missed something in the documentation or is this something not implemented in the Gateway Fabric? Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Hi @yohanAnushka! Thanks so much for your interest in our project! We do not have support for this today like in ingress-nginx, this issue has some ideas of how similar functionality could be configured. The TL/DR of the linked issue:
Hopefully one of these paths can work for you! Please let me know if you require any further help! |
Beta Was this translation helpful? Give feedback.
Hi @yohanAnushka!
Thanks so much for your interest in our project!
We do not have support for this today like in ingress-nginx, this issue has some ideas of how similar functionality could be configured.
The TL/DR of the linked issue:
Hopefully one o…