Skip to content

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.

Terminal window
pakyas check tail <SLUG> [FLAGS]
ArgumentDescription
SLUGCheck slug or ID (required)
FlagDescription
--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, --followFollow mode - continuously poll for new events
--limit <N>Events per request (default: 50)
--format <FORMAT>Output format: human (default), json, ndjson
TypeEventsDescription
signalrun_started, run_finishedPing events from your jobs
statestatus_changedCheck status transitions (healthy, late, down)
alertalert_decisionAlert notifications sent to channels

The --since flag accepts two formats:

Duration strings:

  • 30m - 30 minutes
  • 1h - 1 hour
  • 2d - 2 days
  • 1w - 1 week

ISO timestamps:

  • 2024-01-01T00:00:00Z - Specific UTC time
  • 2024-01-15T10:30:00-05:00 - With timezone offset
Terminal window
pakyas check tail my-backup-job

View events from the last hour:

Terminal window
pakyas check tail my-backup-job --since 1h

View events from the last 2 days:

Terminal window
pakyas check tail my-backup-job --since 2d

View events since a specific time:

Terminal window
pakyas check tail my-backup-job --since 2024-01-15T00:00:00Z

Monitor events in real-time (similar to tail -f):

Terminal window
pakyas check tail my-backup-job --follow

Show only ping signals:

Terminal window
pakyas check tail my-backup-job --types signal

Show state changes and alerts:

Terminal window
pakyas check tail my-backup-job --types state,alert

Follow new signals from the last hour:

Terminal window
pakyas check tail my-backup-job --since 1h --types signal --follow

Get all events as a JSON array:

Terminal window
pakyas check tail my-backup-job --format json
Terminal window
# Stream events to jq for filtering
pakyas check tail my-backup-job --follow --format ndjson | jq 'select(.type == "alert_decision")'
# Log to a file
pakyas check tail my-backup-job --follow --format ndjson >> /var/log/pakyas-events.log
# Send to a webhook
pakyas check tail my-backup-job --follow --format ndjson | while read event; do
curl -X POST -d "$event" https://webhook.example.com/events
done