Skip to content

Instantly share code, notes, and snippets.

@veziak
Last active February 13, 2025 16:48
Show Gist options
  • Save veziak/d455df1a812bbd8b33b1fc18d532bf83 to your computer and use it in GitHub Desktop.
Save veziak/d455df1a812bbd8b33b1fc18d532bf83 to your computer and use it in GitHub Desktop.
example of fastly logs streaming request to HTTPS service
{
"timestamp": "2025-02-13T16:19:17+0000",
"client_ip": "2.96.155.166",
"geo_country": "united kingdom",
"geo_city": "greenwich",
"host": "veziak.global.ssl.fastly.net",
"url": "/",
"request_method": "GET",
"request_protocol": "HTTP/1.1",
"request_referer": "",
"request_user_agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36",
"response_state": "HIT",
"response_status": 200,
"response_reason": "OK",
"response_body_size": 2544,
"fastly_server": "cache-lon4223-LON",
"fastly_is_edge": true
}
{
"resourceSpans": [
{
"resource": {
"attributes": [
{
"key": "service.name",
"value": {
"stringValue": "Fastly www"
}
},
{
"key": "telemetry.sdk.language",
"value": {
"stringValue": "vcl"
}
},
{
"key": "telemetry.sdk.name",
"value": {
"stringValue": "opentelemetry"
}
},
{
"key": "telemetry.sdk.version",
"value": {
"stringValue": "1.0.1"
}
},
{
"key": "host.name",
"value": {
"stringValue": "cache-lon4223-LON"
}
}
],
"droppedAttributesCount": 0
},
"instrumentationLibrarySpans": [
{
"spans": [
{
"traceId": "d3936d5db3def71b46e8638d69a6ed0b",
"spanId": "fb20fa901a921046",
"name": "Fastly request processing",
"kind": 1,
"startTimeUnixNano": 1739463557447139000,
"endTimeUnixNano": 1739463557447293000,
"attributes": [
{
"key": "http.method",
"value": {
"stringValue": "GET"
}
},
{
"key": "http.target",
"value": {
"stringValue": "/"
}
},
{
"key": "http.host",
"value": {
"stringValue": "veziak.global.ssl.fastly.net"
}
},
{
"key": "http.protocol",
"value": {
"stringValue": "https"
}
},
{
"key": "http.client_ip",
"value": {
"stringValue": "2.96.155.166"
}
},
{
"key": "fastly.restarts",
"value": {
"stringValue": "0"
}
},
{
"key": "fastly.visits_this_service",
"value": {
"stringValue": "0"
}
},
{
"key": "fastly.server_role",
"value": {
"stringValue": "edge"
}
},
{
"key": "fastly.server_ip",
"value": {
"stringValue": "199.232.57.194"
}
},
{
"key": "fastly.server_id",
"value": {
"stringValue": "cache-lon4223-LON"
}
},
{
"key": "fastly.server_role",
"value": {
"stringValue": "edge"
}
},
{
"key": "fastly.vcl_version",
"value": {
"stringValue": "15"
}
},
{
"key": "fastly.pop",
"value": {
"stringValue": "LON"
}
},
{
"key": "fastly.workspace.overflowed",
"value": {
"stringValue": "0"
}
},
{
"key": "fastly.workspace.bytes_total",
"value": {
"stringValue": "262144"
}
},
{
"key": "fastly.workspace.bytes_free",
"value": {
"stringValue": "247008"
}
},
{
"key": "http.user_agent",
"value": {
"stringValue": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36"
}
},
{
"key": "http.status_code",
"value": {
"stringValue": "200"
}
}
],
"status": {
"code": 0
},
"links": [],
"droppedLinksCount": 0
}
]
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment