Skip to content

Instantly share code, notes, and snippets.

@andrew-smith
Created November 28, 2019 22:51
Show Gist options
  • Save andrew-smith/1ddf867f4b20dc0f7fee57a358f1afd8 to your computer and use it in GitHub Desktop.
Save andrew-smith/1ddf867f4b20dc0f7fee57a358f1afd8 to your computer and use it in GitHub Desktop.
Commands to extract billed duration and memory used from serverless log reporting
npx sls logs -f functionname --startTime 60m | awk '/REPORT/ {print $9","$18}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment