Skip to content

Instantly share code, notes, and snippets.

@ccapndave
Created December 14, 2016 16:13
Show Gist options
  • Save ccapndave/7c0aa5888e5546626cf176d430897bfd to your computer and use it in GitHub Desktop.
Save ccapndave/7c0aa5888e5546626cf176d430897bfd to your computer and use it in GitHub Desktop.
root@ip-172-30-0-115:/etc/varnish# varnishlog -g request
* << Request >> 2
- Begin req 1 rxreq
- Timestamp Start: 1481731967.821513 0.000000 0.000000
- Timestamp Req: 1481731967.821513 0.000000 0.000000
- ReqStart 127.0.0.1 40298
- ReqMethod GET
- ReqURL /ppt/tests/a/a2-e4.html?contentRoot=content&id=20
- ReqProtocol HTTP/1.1
- ReqHeader accept-encoding: gzip,deflate
- ReqHeader user-agent: node-fetch/1.0 (+https://github.com/bitinn/node-fetch)
- ReqHeader connection: close
- ReqHeader accept: */*
- ReqHeader Host: 127.0.0.1:6081
- ReqHeader X-Forwarded-For: 127.0.0.1
- VCL_call RECV
- VCL_return hash
- ReqUnset accept-encoding: gzip,deflate
- ReqHeader Accept-Encoding: gzip
- VCL_call HASH
- VCL_return lookup
- Debug "XXXX MISS"
- VCL_call MISS
- VCL_return fetch
- Link bereq 3 fetch
- Timestamp Fetch: 1481731967.889784 0.068270 0.068270
- RespProtocol HTTP/1.1
- RespStatus 200
- RespReason OK
- RespHeader X-Powered-By: Express
- RespHeader Access-Control-Allow-Origin: *
- RespHeader Cache-Control: no-cache
- RespHeader ETag: 3b6e8bbc903d000af53a38c6c9149ec3dba7749e
- RespHeader Content-Type: text/html; charset=utf-8
- RespHeader Content-Length: 34709
- RespHeader Date: Wed, 14 Dec 2016 16:12:47 GMT
- RespHeader X-Varnish: 2
- RespHeader Age: 0
- RespHeader Via: 1.1 varnish-v4
- VCL_call DELIVER
- VCL_return deliver
- Timestamp Process: 1481731967.889797 0.068284 0.000014
- Debug "RES_MODE 2"
- RespHeader Connection: close
- RespHeader Accept-Ranges: bytes
- Timestamp Resp: 1481731967.889898 0.068385 0.000101
- Debug "XXX REF 2"
- ReqAcct 219 0 219 331 34709 35040
- End
** << BeReq >> 3
-- Begin bereq 2 fetch
-- Timestamp Start: 1481731967.821584 0.000000 0.000000
-- BereqMethod GET
-- BereqURL /ppt/tests/a/a2-e4.html?contentRoot=content&id=20
-- BereqProtocol HTTP/1.1
-- BereqHeader user-agent: node-fetch/1.0 (+https://github.com/bitinn/node-fetch)
-- BereqHeader accept: */*
-- BereqHeader Host: 127.0.0.1:6081
-- BereqHeader X-Forwarded-For: 127.0.0.1
-- BereqHeader Accept-Encoding: gzip
-- BereqHeader X-Varnish: 3
-- VCL_call BACKEND_FETCH
-- VCL_return fetch
-- BackendOpen 17 default(127.0.0.1,,3001) 127.0.0.1 53044
-- Backend 17 default default(127.0.0.1,,3001)
-- Timestamp Bereq: 1481731967.821657 0.000073 0.000073
-- Timestamp Beresp: 1481731967.889666 0.068082 0.068009
-- BerespProtocol HTTP/1.1
-- BerespStatus 200
-- BerespReason OK
-- BerespHeader X-Powered-By: Express
-- BerespHeader Access-Control-Allow-Origin: *
-- BerespHeader Cache-Control: no-cache
-- BerespHeader ETag: 3b6e8bbc903d000af53a38c6c9149ec3dba7749e
-- BerespHeader Content-Type: text/html; charset=utf-8
-- BerespHeader Content-Length: 34709
-- BerespHeader Date: Wed, 14 Dec 2016 16:12:47 GMT
-- BerespHeader Connection: keep-alive
-- TTL RFC 120 -1 -1 1481731968 1481731968 1481731967 0 0
-- VCL_call BACKEND_RESPONSE
-- TTL VCL 31556900 10 0 1481731968
-- TTL VCL 120 10 0 1481731968
-- VCL_return deliver
-- Storage malloc Transient
-- ObjProtocol HTTP/1.1
-- ObjStatus 200
-- ObjReason OK
-- ObjHeader X-Powered-By: Express
-- ObjHeader Access-Control-Allow-Origin: *
-- ObjHeader Cache-Control: no-cache
-- ObjHeader ETag: 3b6e8bbc903d000af53a38c6c9149ec3dba7749e
-- ObjHeader Content-Type: text/html; charset=utf-8
-- ObjHeader Content-Length: 34709
-- ObjHeader Date: Wed, 14 Dec 2016 16:12:47 GMT
-- Fetch_Body 3 length stream
-- BackendReuse 17 default(127.0.0.1,,3001)
-- Timestamp BerespBody: 1481731967.889850 0.068266 0.000184
-- Length 34709
-- BereqAcct 234 0 234 271 34709 34980
-- End
* << Request >> 32770
- Begin req 32769 rxreq
- Timestamp Start: 1481731969.184587 0.000000 0.000000
- Timestamp Req: 1481731969.184587 0.000000 0.000000
- ReqStart 127.0.0.1 40301
- ReqMethod GET
- ReqURL /ppt/tests/a/a2-e4.html?contentRoot=content&id=20
- ReqProtocol HTTP/1.1
- ReqHeader accept-encoding: gzip,deflate
- ReqHeader user-agent: node-fetch/1.0 (+https://github.com/bitinn/node-fetch)
- ReqHeader connection: close
- ReqHeader accept: */*
- ReqHeader Host: 127.0.0.1:6081
- ReqHeader X-Forwarded-For: 127.0.0.1
- VCL_call RECV
- VCL_return hash
- ReqUnset accept-encoding: gzip,deflate
- ReqHeader Accept-Encoding: gzip
- VCL_call HASH
- VCL_return lookup
- Debug "XXXX HIT-FOR-PASS"
- HitPass 2147483651
- VCL_call PASS
- VCL_return fetch
- Link bereq 32771 pass
- Timestamp Fetch: 1481731969.257628 0.073042 0.073042
- RespProtocol HTTP/1.1
- RespStatus 200
- RespReason OK
- RespHeader X-Powered-By: Express
- RespHeader Access-Control-Allow-Origin: *
- RespHeader Cache-Control: no-cache
- RespHeader ETag: 3b6e8bbc903d000af53a38c6c9149ec3dba7749e
- RespHeader Content-Type: text/html; charset=utf-8
- RespHeader Content-Length: 34709
- RespHeader Date: Wed, 14 Dec 2016 16:12:49 GMT
- RespHeader X-Varnish: 32770
- RespHeader Age: 0
- RespHeader Via: 1.1 varnish-v4
- VCL_call DELIVER
- VCL_return deliver
- Timestamp Process: 1481731969.257646 0.073060 0.000018
- Debug "RES_MODE 2"
- RespHeader Connection: close
- RespHeader Accept-Ranges: bytes
- Timestamp Resp: 1481731969.257681 0.073094 0.000035
- Debug "XXX REF 1"
- ReqAcct 219 0 219 335 34709 35044
- End
** << BeReq >> 32771
-- Begin bereq 32770 pass
-- Timestamp Start: 1481731969.184639 0.000000 0.000000
-- BereqMethod GET
-- BereqURL /ppt/tests/a/a2-e4.html?contentRoot=content&id=20
-- BereqProtocol HTTP/1.1
-- BereqHeader user-agent: node-fetch/1.0 (+https://github.com/bitinn/node-fetch)
-- BereqHeader accept: */*
-- BereqHeader Host: 127.0.0.1:6081
-- BereqHeader X-Forwarded-For: 127.0.0.1
-- BereqHeader Accept-Encoding: gzip
-- BereqHeader X-Varnish: 32771
-- VCL_call BACKEND_FETCH
-- VCL_return fetch
-- Backend 17 default default(127.0.0.1,,3001)
-- Timestamp Bereq: 1481731969.184671 0.000033 0.000033
-- Timestamp Beresp: 1481731969.257543 0.072904 0.072871
-- BerespProtocol HTTP/1.1
-- BerespStatus 200
-- BerespReason OK
-- BerespHeader X-Powered-By: Express
-- BerespHeader Access-Control-Allow-Origin: *
-- BerespHeader Cache-Control: no-cache
-- BerespHeader ETag: 3b6e8bbc903d000af53a38c6c9149ec3dba7749e
-- BerespHeader Content-Type: text/html; charset=utf-8
-- BerespHeader Content-Length: 34709
-- BerespHeader Date: Wed, 14 Dec 2016 16:12:49 GMT
-- BerespHeader Connection: keep-alive
-- TTL RFC 120 -1 -1 1481731969 1481731969 1481731969 0 0
-- VCL_call BACKEND_RESPONSE
-- TTL VCL 31556900 10 0 1481731969
-- TTL VCL 120 10 0 1481731969
-- VCL_return deliver
-- Storage malloc Transient
-- ObjProtocol HTTP/1.1
-- ObjStatus 200
-- ObjReason OK
-- ObjHeader X-Powered-By: Express
-- ObjHeader Access-Control-Allow-Origin: *
-- ObjHeader Cache-Control: no-cache
-- ObjHeader ETag: 3b6e8bbc903d000af53a38c6c9149ec3dba7749e
-- ObjHeader Content-Type: text/html; charset=utf-8
-- ObjHeader Content-Length: 34709
-- ObjHeader Date: Wed, 14 Dec 2016 16:12:49 GMT
-- Fetch_Body 3 length stream
-- BackendReuse 17 default(127.0.0.1,,3001)
-- Timestamp BerespBody: 1481731969.257617 0.072979 0.000075
-- Length 34709
-- BereqAcct 238 0 238 271 34709 34980
-- End
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment