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

Try Needle today

Streamline AI productivity at your company today

Join thousands of people who have transformed their workflows.

Agentic workflowsAutomations, meet AI agents
AI SearchAll your data, searchable
Chat widgetsDrop-in widget for your website
Developer APIMake your app talk to Needle
    Needle LogoNeedle
    Like many websites, we use cookies to enhance your experience, analyze site traffic and deliver personalized content while you are here. By clicking "Accept", you are giving us your consent to use cookies in this way. Read our more on our cookie policy .