Skip to content

Instantly share code, notes, and snippets.

@askmeegs
Created August 1, 2019 16:54
Show Gist options
  • Save askmeegs/856de6f1455af778eb92440ef50715c7 to your computer and use it in GitHub Desktop.
Save askmeegs/856de6f1455af778eb92440ef50715c7 to your computer and use it in GitHub Desktop.
diagram - envoy access logs

format

[%START_TIME%] "%REQ(:METHOD)% %REQ(X-ENVOY-ORIGINAL-PATH?:PATH)% %PROTOCOL%" %RESPONSE_CODE% %RESPONSE_FLAGS% %BYTES_RECEIVED% %BYTES_SENT% %DURATION% %RESP(X-ENVOY-UPSTREAM-SERVICE-TIME)% "%REQ(X-FORWARDED-FOR)%" "%REQ(USER-AGENT)%" "%REQ(X-REQUEST-ID)%" "%REQ(:AUTHORITY)%" "%UPSTREAM_HOST%"\n

examples

[2019-08-01T16:52:36.432Z] "GET /loginHTTP/1.1" 200 - 0 18 7 4 "10.150.0.15" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.87 Safari/537.36" "e1d073f5-9e3b-46f4-ba24-7080359a0a01" "35.245.213.144" "127.0.0.1:8080" inbound|80||auth.default.svc.cluster.local - 10.52.0.22:8080 10.150.0.15:0
[2016-04-15T20:17:00.310Z] "POST /api/v1/locations HTTP/2" 204 - 154 0 226 100 "10.0.35.28"
"nsq2http" "cc21d9b0-cf5c-432b-8c7e-98aeb7988cd2" "locations" "tcp://10.0.2.1:80"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment