Synopsis
cluck scratch [service] [--follow]
Description
Tails logs for a service. Named for what chickens do to find interesting things in the dirt.
Options
| Flag | Description |
|---|---|
--follow | Stream new log lines |
--since T | Show logs since a time (e.g. 15m) |
--level L | Filter by level (info, warn, error) |
All commands also accept the global flags --coop, --json, --quiet, and --no-color, plus --help, which prints this page in a smaller font.
Example
$ cluck scratch web --since 5m --level error
12:03:41 ERROR timeout contacting db (HEN-4101)
12:03:44 ERROR timeout contacting db (HEN-4101)
Exit codes
| 0 | Success. A quiet cluck. |
|---|---|
| 1 | The command ran but reported a problem, such as a failing check. |
| 2 | Bad usage: a flag was missing or invalid. |
| 3 | Authentication or permission error. See HEN-2001. |