Skip to content

Instantly share code, notes, and snippets.

@mstrzele
Created July 28, 2017 09:05
Show Gist options
  • Save mstrzele/8b7feb9e80c9a220adce821b4ba65cc8 to your computer and use it in GitHub Desktop.
Save mstrzele/8b7feb9e80c9a220adce821b4ba65cc8 to your computer and use it in GitHub Desktop.
NGINX Ingress Google Cloud Platform Log Format
{
"timestamp": "$time_iso8601",
"httpRequest": {
"requestMethod": "$request_method",
"requestUrl": "$scheme://$host$request_uri",
"requestSize": "$request_length",
"status": "$status",
"responseSize": "$bytes_sent",
"userAgent": "$http_user_agent",
"remoteIp": "$proxy_protocol_addr",
"referer": "$http_referer",
"latency": "${request_time}s"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment