Searches and analyzes Estuary task logs with jq filtering. Helps investigate task failures, debug connector errors, and stream live logs.
Ships in estuary-operations. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Concepts: Logs contain structured JSON with fields: ts (timestamp), level, message, and optional fields (extra context). Tasks are captures, materializations, or derivations running in Estuary.
flowctl must already be authenticated, as per estuary-flowctl-setup skill.
Finding your task name: If you don't already know the task name, use flowctl catalog list --prefix <tenant/prefix> to narrow it down, or copy it from the Captures or Materializations page in the Estuary web app. It looks like org/prefix/connector-name, for example:
acmeCo/ops/source-postgres
Quick check — pipe directly to the terminal:
flowctl logs --task <task> --since 1h | tail | jq -c
For investigations, save to a file first (see Effective Log Analysis Workflow).
If a task is currently running and you want logs as they appear:
flowctl logs --task <task> --follow
Combine with --since to get recent history plus live tailing:
flowctl logs --task <task> --since 1h --follow
| Situation | Recommended | Why |
|---|---|---|
| Recent issue (today/yesterday) | --since 24h or --since 48h | Focused on recent events |
| Issue shown in 48h dashboard graph | --since 72h | Graph period + buffer |
| Pattern analysis or issue from ~a week ago | --since 7d | Broader context |
| Finding DDL (CREATE/ALTER TABLE) | omit --since | DDL may be weeks/months old |
Note on --since accuracy: The actual start time snaps back to the previous log fragment boundary, so you may get somewhat more history than requested (e.g. --since 1h may return up to several hours). This is expected, so filter downstream to find specific time ranges
Always use --since unless you need logs since task creation (e.g. for initial DDL statements). Log history can span 1+ years for long-running tasks and will be very slow to fetch without a time bound.
Recommended approach for investigating issues:
# 1. Save relevant logs to file (allows re-processing without re-fetching)
flowctl logs --task <task> --since 2d > task.logs
# 2. Extract useful fields, removing noise (.shard, ._meta clutter the output)
jq -c 'del(.shard, ._meta) | {ts, message} + .' task.logs
# 3. Filter out repeated irrelevant messages
jq -c 'del(.shard, ._meta) | {ts, message} + .' task.logs | grep -v "materialization progress"
Why this pattern:
del(.shard, ._meta) removes verbose internal metadata that rarely helps debugging{ts, message} + . puts timestamp and message first while preserving other fieldsgrep -v removes noisy repeated messages (e.g., periodic progress lines)When you just need timestamps and messages:
flowctl logs --task <task> --since 1d | jq -c '{ts, message}'
Filter for errors and warnings only:
flowctl logs --task <task> --since 1d | jq 'select(.level == "error" or .level == "warn")'
Get timeline with error detail:
flowctl logs --task <task> --since 1d | jq -c '{ts, message, level, error: .fields.error}'
# Errors and failures
flowctl logs --task <task> --since 72h | jq -c 'del(.shard, ._meta) | {ts, message} + .' | grep -iE "shard failed|error|fail|warning"
# Task restarts (each new connector run)
flowctl logs --task <task> --since 72h | jq -c 'del(.shard, ._meta) | {ts, message} + .' | grep -iE "initialized catalog task term|started connector container"
# Transaction timing (Snowflake sync schedule)
flowctl logs --task <task> --since 72h | jq -c 'del(.shard, ._meta) | {ts, message} + .' | grep -E "nextScheduledAck|delaying|finished waiting"
# Retry storms (BigQuery DML quota issues)
flowctl logs --task <task> --since 72h | jq -c 'del(.shard, ._meta) | {ts, message} + .' | grep "previously submitted job failed, will retry"
1. Count failure frequency by day:
flowctl logs --task <task> --since 7d | \
jq -r 'select(.message == "shard failed") | .ts' | \
awk -F'T' '{print $1}' | sort | uniq -c
2. Get root cause from shard failures:
flowctl logs --task <task> --since 1d | \
jq -r 'select(.message == "shard failed") | {ts, error: .fields.error} | @json'
3. Find surrounding log entries around failures:
flowctl logs --task <task> --since 1d | \
jq -c '{ts, message, level}' | grep -B2 "shard failed" | head -20
These messages are frequently misread as problems — here's what they actually mean:
| Message | What it means | Action needed? |
|---|---|---|
initialized catalog task term + started connector container | Normal connector startup or restart | No — expected at start and after any spec change |
applying updated task specification | Connector restarting due to a spec or schema update | No — expected after publishing changes |
connector exited with unconsumed input stream remainder | Normal for batch connectors; check nearby logs if unexpected | No |
runTransactions: readMessage: drained | Data reading intentionally stopped; task will restart | No — not a failure; task should recover on its own |
document failed validation against its collection JSON Schema | A document didn't match the collection schema, often during schema evolution | Wait 5–10 min first — often auto-resolves when the task restarts and picks up the new schema; if it persists, the schema needs manual update |
S3 Chunk Fetch Timeouts:
transactor.Load: querying Loads: chunk fetch: copying chunk stream:
decoding row: read tcp [IP]:[PORT]: read: connection timed out
Snowflake PUT Operation Timeouts:
transactor.StartCommit: flush putFile: putWorker PUT to stage:
Post "https://[snowflake-host]:443/...": dial tcp: i/o timeout
putWorker retrying PUT to stage messagesIf default (info) logs don't show enough detail, you can increase the log level to debug. Add a shards stanza to your existing task spec alongside endpoint, then re-publish:
# Add this at the same level as your existing 'endpoint' block:
shards:
logLevel: debug
Available levels (least → most verbose): error → warn → info (default) → debug
Remember to remove the logLevel override when done — debug produces a lot of output.
flowctl logs --help lists all available flagsjq -c for compact, line-by-line output (easier to grep)shard failed messages — they include .fields.error with the root causeWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
/estuary-operations:estuary-logsfrom estuary-operations
npx claudepluginhub estuary/agent-skills --plugin estuary-operations8 skills in this plugin
/estuary-catalog-historyView publication history for catalog resources — who changed what and when. Use when investigating timeline of changes, finding who modified a connector, or correlating changes across capture/collection/materialization chains. Use when user says "what changed", "who changed", "publication history", "catalog history", "when was it published", "timeline of changes", or "what happened to my connector"./estuary-catalog-statusRun flowctl catalog status to check the control-plane state of an Estuary resource, or list catalog specs to see which connectors exist and which are active. Use when checking whether a task is running, disabled, or failing, interpreting status output, or enumerating connectors. Use when user says "check task status", "is my capture running", "catalog status", "flowctl catalog status", "what's wrong with my capture", "task failing", "check catalog status", "collection status", "derivation status", "why is my task disabled", "list my connectors", "show me my connectors", "list captures", "list materializations", "what connectors do I have", or "show me all my active connectors"./estuary-connector-restartPause and restart Estuary connectors by disabling and re-enabling shards via flowctl. Use when temporarily stopping a connector, performing source/destination maintenance, or forcing a fresh restart to clear transient errors or load updated configs immediately. Use when user says "pause connector", "stop connector", "restart connector", "disable connector", "enable connector", "re-enable task", "disable shards", "stop my capture", "stop my materialization", "disable my materialization", "force restart connector", "connector maintenance", "temporarily stop processing", "shards disable true", "enable shards", "resume connector", or "unpause connector".