Tool

Get job logs

Get Job Logs is a powerful GitHub tool designed to download logs for specific workflow jobs or to retrieve all failed job logs from a workflow run efficiently. It streamlines the debugging process by providing easy access to detailed workflow job logs.

GitHub

Features

  • Download logs for a specific GitHub workflow job using its unique job ID.
  • Option to retrieve logs for all failed jobs in a particular workflow run by specifying run ID and failed_only flag.
  • Ability to return actual log content directly, rather than just URLs to the logs.
  • Customizable log retrieval with options to specify the number of tail lines to capture the most relevant log output.
  • Supports repository owner and repository name inputs to target logs across different GitHub repositories.

Benefits

  • Speeds up troubleshooting by providing quick access to failed job logs in continuous integration workflows.
  • Improves developer productivity by automating log retrieval, reducing manual search effort.
  • Offers flexible log output options to suit various debugging needs, including partial log views.
  • Enhances visibility into workflow job execution, facilitating better issue diagnosis and resolution.
  • Supports integration into automated workflows to enable continuous monitoring and alerting based on job log data.

Description

Download logs for a specific workflow job or efficiently get all failed job logs for a workflow run

Parameters

7 parameters

NameTypeDescription
failed_onlyboolean

When true, gets logs for all failed jobs in run_id

job_idnumber

The unique identifier of the workflow job (required for single job logs)

ownerrequiredstring

Repository owner

reporequiredstring

Repository name

return_contentboolean

Returns actual log content instead of URLs

run_idnumber

Workflow run ID (required when using failed_only)

tail_linesnumber

Number of lines to return from the end of the log

Ready to vibe automate?

Join thousands of people who have transformed their workflows.

Workflows

Automations with AI agents

Collections

All your data, searchable

Chat Widget

Drop-in widget for your website

Developer API

Build AI-powered apps with ease

    We use cookies to enhance your experience on Needle and keep your data secure. Privacy Policy