airbyte_get_job_logs
Retrieve structured log entries for job sync attempts to debug failures. Limit output with attempt_number and tail_lines.
Instructions
Get the actual log output for a job's sync attempts.
Uses the internal Configuration API (POST /v1/jobs/get_debug_info) to fetch structured log entries for each attempt. Logs can be very large, so use tail_lines to limit output and attempt_number to focus on a specific attempt.
Always returns JSON — structured logs are best consumed as-is by LLMs and scripts. Each log entry contains timestamp, message, level, logSource, and caller metadata.
When to Use: - You need the raw log output to debug a sync failure. - You want to search for specific error messages or stack traces in the logs. - airbyte_get_job_details showed a failure but you need more context from the full logs.
When NOT to Use: - For structured failure info, use airbyte_get_job_details. - On Airbyte Cloud (internal API not available).
Returns: JSON with structured log entries per attempt, truncated to the last tail_lines entries.
Examples: Last 200 entries for all attempts: params = { "job_id": 12345 } Last 500 entries for attempt 0 only: params = { "job_id": 12345, "attempt_number": 0, "tail_lines": 500 }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |