Skip to content

Instantly share code, notes, and snippets.

@Schnitzel
Created July 7, 2021 20:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Schnitzel/bba1a8a437f52fbf123ead1cc0406bf1 to your computer and use it in GitHub Desktop.
Save Schnitzel/bba1a8a437f52fbf123ead1cc0406bf1 to your computer and use it in GitHub Desktop.
controller:
config:
log-format-upstream: >-
{
"time": "$time_iso8601",
"remote_addr": "$remote_addr",
"x-forwarded-for": "$http_x_forwarded_for",
"true-client-ip": "$http_true_client_ip",
"req_id": "$req_id",
"remote_user": "$remote_user",
"bytes_sent": $bytes_sent,
"request_time": $request_time,
"status": "$status",
"host": "$host",
"request_proto": "$server_protocol",
"request_uri": "$uri",
"request_query": "$args",
"request_length": $request_length,
"request_time": $request_time,
"request_method": "$request_method",
"http_referer": "$http_referer",
"http_user_agent": "$http_user_agent",
"namespace": "$namespace",
"ingress_name": "$ingress_name",
"service_name": "$service_name",
"service_port": "$service_port"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment