sked logs function
Fetch CloudWatch/Lambda logs for a serverless function.
Overview
Fetch CloudWatch/Lambda logs for a serverless function. Output is colorized to highlight lifecycle events, log levels, and error lines. Each line’s embedded timestamp is converted to the display time zone unless --raw is set; colorizing still applies with --raw.
Note
Requires CLI version 5.1.2 or later.Usage
$ sked logs function --name <value> [--range <value> | --from <value> [--to <value>]] [--output <value>] [--force] [--timezone <value>] [--raw] [--alias <value>]
Examples
$ sked logs function --name my-function --range today
$ sked logs function --name my-function --from 24h --output ./logs
Flags
| Flag | Description | Required |
|---|---|---|
| --name= |
The name of the function | Yes |
| --range= |
Shorthand time range | No |
| --from= |
Start of the time range | No |
| --to= |
End of the time range | No |
| -o, --output= |
Directory to write the logs to instead of printing them | No |
| --force | Overwrite an existing output file | No |
| --timezone= |
IANA time zone to display times in, and to interpret --range and date-only --from/--to in; defaults to your system time zone |
No |
| --raw | Skip timestamp conversion; lines are still colorized | No |
| -a, --alias= |
The alias of the Skedulo tenant to fetch logs from | No |
See also
Skedulo CLI Studio’s log viewer opens the same logs in an interactive, scrollable session.
Feedback
Was this page helpful?