Skip to content

Instantly share code, notes, and snippets.

@chasers
Created July 23, 2020 19:30
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 chasers/09207df9c03e5f5344c4af03aaf0cbdb to your computer and use it in GitHub Desktop.
Save chasers/09207df9c03e5f5344c4af03aaf0cbdb to your computer and use it in GitHub Desktop.
Example Vercel Logflare Message
{
"deploymentId": "dpl_8zVeEFAnYTXLoBT8XYMgLVbc1Rpi",
"host": "pino-logflare-nextjs-vercel-example-7duieexku.vercel.app",
"id": "1595492268532915653954269765",
"message": "START RequestId: 4148955a-4bf6-4ae9-8736-95826ac8a414 Version: $LATEST\n{\"metadata\":{\"env\":\"production\",\"request\":{\"headers\":{\"host\":\"pino-logflare-nextjs-vercel-example.now.sh\",\"x_forwarded_host\":\"pino-logflare-nextjs-vercel-example.now.sh\",\"accept\":\"*/*\",\"x_vercel_deployment_url\":\"pino-logflare-nextjs-vercel-example-7duieexku.vercel.app\",\"x_forwarded_proto\":\"https\",\"x_real_ip\":\"54.36.148.90\",\"accept_encoding\":\"deflate, gzip, br\",\"user_agent\":\"Mozilla/5.0 (compatible; AhrefsBot/6.1; +http://ahrefs.com/robot/)\",\"x_vercel_forwarded_for\":\"54.36.148.90\",\"x_forwarded_for\":\"54.36.148.90\",\"x_nextjs_page\":\"/index\",\"x_vercel_id\":\"lhr1::95xl7-1595492267523-aebd6fdc73fb\",\"connection\":\"close\"},\"url\":\"/\",\"method\":\"GET\"},\"response\":{\"statusCode\":200},\"context\":{},\"level\":\"info\"},\"message\":\"Index request\",\"timestamp\":1595492269406}\nEND RequestId: 4148955a-4bf6-4ae9-8736-95826ac8a414\nREPORT RequestId: 4148955a-4bf6-4ae9-8736-95826ac8a414\tDuration: 468.68 ms\tBilled Duration: 500 ms\tMemory Size: 1024 MB\tMax Memory Used: 87 MB\tInit Duration: 130.88 ms\t\n",
"parsedLambdaMessage": {
"lines": [
{
"data": {
"message": "Index request",
"metadata": {
"env": "production",
"level": "info",
"request": {
"headers": {
"accept": "*/*",
"accept_encoding": "deflate, gzip, br",
"connection": "close",
"host": "pino-logflare-nextjs-vercel-example.now.sh",
"user_agent": "Mozilla/5.0 (compatible; AhrefsBot/6.1; +http://ahrefs.com/robot/)",
"x_forwarded_for": "54.36.148.90",
"x_forwarded_host": "pino-logflare-nextjs-vercel-example.now.sh",
"x_forwarded_proto": "https",
"x_nextjs_page": "/index",
"x_real_ip": "54.36.148.90",
"x_vercel_deployment_url": "pino-logflare-nextjs-vercel-example-7duieexku.vercel.app",
"x_vercel_forwarded_for": "54.36.148.90",
"x_vercel_id": "lhr1::95xl7-1595492267523-aebd6fdc73fb"
},
"method": "GET",
"url": "/"
},
"response": {
"statusCode": 200
}
},
"timestamp": 1595492269406
}
}
],
"parse_status": "full",
"report": {
"billed_duration_ms": 500,
"duration_ms": 469,
"init_duration_ms": 131,
"max_memory_used_mb": 87,
"memory_size_mb": 1024
},
"request_id": "4148955a-4bf6-4ae9-8736-95826ac8a414"
},
"path": "__NEXT_PAGE_LAMBDA_0",
"projectId": "QmRxhyrspZA1hKp4ft1yQCGeq6nVyyvyd2mv2fhyWEeEdw",
"proxy": {
"clientIp": "54.36.148.90",
"host": "pino-logflare-nextjs-vercel-example.now.sh",
"method": "GET",
"path": "/",
"region": "lhr1",
"scheme": "https",
"statusCode": 200,
"timestamp": 1595492267523,
"userAgent": "Mozilla/5.0 (compatible; AhrefsBot/6.1; +http://ahrefs.com/robot/)"
},
"requestId": "95xl7-1595492267523-aebd6fdc73fb",
"source": "lambda",
"statusCode": 200,
"timestamp": 1595492268532
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment