Skip to content

check tail Command

pakyas check tail prints a check’s recent timeline events (runs, status changes, alert decisions) and can keep polling for new ones, like tail -f.

Terminal window
pakyas check tail <CHECK> [FLAGS]
ArgumentDescription
CHECKCheck slug, check ID, or public ID
FlagDescription
--since <TIME>Only events since this time (default 30m). A duration (45s, 30m, 1h, 2d, 1w) or an RFC 3339 timestamp (2026-11-01T00:00:00Z).
--types <TYPES>Comma-separated event types: signal, state, alert
-f, --followKeep polling for new events (every 2 seconds)
--limit <N>Number of events fetched per request (default 50, server maximum 200)

The global --format and --display-tz flags also apply (see below).

TypeEventsDescription
signalrun_started, run_finishedPings from your job
statestatus_changedStatus transitions (for example up to down)
alertalert_decisionWhether an alert was sent or suppressed

Events are printed oldest first. Each line shows the time as HH:MM:SS in the --display-tz timezone (local by default; UTC times end in Z), a symbol, the event type, and a summary:

TAIL "Nightly Backup" since=1h
02:00:01 > signal Run started
02:04:37 V signal Run success (276012ms)
Symbol--plainMeaning
>[START]Run started
V[OK]Run succeeded
X[FAIL]Run failed
! / V / *[STATE]Status changed (to a bad state, back to up, other)
W / o[ALERT]Alert sent / alert suppressed

In follow mode the header line is omitted, and if there are no events yet, (no events in time range, waiting...) is printed to stderr.

Mode--format json--format ndjson
Without -fOne JSON arrayOne object per line
With -fOne object per line (an array can’t be closed while following)One object per line

Each event has these fields:

{
"id": 48213,
"event_type": "run_finished",
"occurred_at": "2026-11-07T10:04:37Z",
"effective_at": null,
"source": "queueproc",
"payload": {},
"from_status": null,
"to_status": null,
"summary": "Run success (276012ms)"
}

from_status and to_status are set for status_changed events. The payload contents depend on the event type.

Terminal window
# Last 30 minutes
pakyas check tail backup-nightly
# Last 2 days, signals only
pakyas check tail backup-nightly --since 2d --types signal
# Since a specific time
pakyas check tail backup-nightly --since 2026-11-01T00:00:00Z
# Follow state changes and alerts, with UTC times
pakyas check tail backup-nightly -f --types state,alert --display-tz utc
# All events in the window as one JSON array
pakyas check tail backup-nightly --format json | jq '.[].event_type'
# Stream alert decisions as they happen
pakyas check tail backup-nightly -f --format json \
| jq -c 'select(.event_type == "alert_decision")'
# Append events to a log file
pakyas check tail backup-nightly -f --format ndjson >> /var/log/pakyas-events.log