check tail Command
The check tail command displays recent events for a check and optionally follows new events in real-time. Use it to monitor check activity, debug timing issues, or stream events to other tools for processing.
pakyas check tail <SLUG> [FLAGS]Arguments
Section titled “Arguments”| Argument | Description |
|---|---|
SLUG | Check slug or ID (required) |
| Flag | Description |
|---|---|
--since <TIME> | Show events since time (default: 30m). Accepts durations or ISO timestamps |
--types <TYPES> | Filter by event types (comma-separated): signal, state, alert |
-f, --follow | Follow mode - continuously poll for new events |
--limit <N> | Events per request (default: 50) |
--format <FORMAT> | Output format: human (default), json, ndjson |
Event Types
Section titled “Event Types”| Type | Events | Description |
|---|---|---|
signal | run_started, run_finished | Ping events from your jobs |
state | status_changed | Check status transitions (healthy, late, down) |
alert | alert_decision | Alert notifications sent to channels |
Duration Format
Section titled “Duration Format”The --since flag accepts two formats:
Duration strings:
30m- 30 minutes1h- 1 hour2d- 2 days1w- 1 week
ISO timestamps:
2024-01-01T00:00:00Z- Specific UTC time2024-01-15T10:30:00-05:00- With timezone offset
Examples
Section titled “Examples”Default: Last 30 Minutes
Section titled “Default: Last 30 Minutes”pakyas check tail my-backup-jobCustom Time Range with Duration
Section titled “Custom Time Range with Duration”View events from the last hour:
pakyas check tail my-backup-job --since 1hView events from the last 2 days:
pakyas check tail my-backup-job --since 2dCustom Time Range with Timestamp
Section titled “Custom Time Range with Timestamp”View events since a specific time:
pakyas check tail my-backup-job --since 2024-01-15T00:00:00ZFollow Mode
Section titled “Follow Mode”Monitor events in real-time (similar to tail -f):
pakyas check tail my-backup-job --followFilter by Event Type
Section titled “Filter by Event Type”Show only ping signals:
pakyas check tail my-backup-job --types signalShow state changes and alerts:
pakyas check tail my-backup-job --types state,alertCombined Options
Section titled “Combined Options”Follow new signals from the last hour:
pakyas check tail my-backup-job --since 1h --types signal --followJSON Output
Section titled “JSON Output”Get all events as a JSON array:
pakyas check tail my-backup-job --format jsonNDJSON for Streaming Pipelines
Section titled “NDJSON for Streaming Pipelines”# Stream events to jq for filteringpakyas check tail my-backup-job --follow --format ndjson | jq 'select(.type == "alert_decision")'
# Log to a filepakyas check tail my-backup-job --follow --format ndjson >> /var/log/pakyas-events.log
# Send to a webhookpakyas check tail my-backup-job --follow --format ndjson | while read event; do curl -X POST -d "$event" https://webhook.example.com/eventsdoneSee Also
Section titled “See Also”- check inspect Command - View check configuration and current state
- check doctor Command - Diagnose check configuration and health issues