Skip to content

Feature: Add REST API Endpoint to Retrieve Build/Pipeline Logs #6746

@Jonathan-Jo-me

Description

@Jonathan-Jo-me

🔖 Feature description

Please provide an official, documented REST API endpoint that allows users (with proper authentication/authorization) to fetch the raw CI/CD pipeline log contents for a specific build or deployment run. The API should support querying by application, pipeline, and build/run identifiers, and return the log data either as plain text or a file download (similar to what is shown in the dashboard log viewer).

🎤 Pitch / Usecases

Currently, logs are only accessible via the dashboard UI, or by manually retrieving from object storage (where file naming is complex and undocumented). For external automation—such as incident management, log analysis, or integrating Devtron with observability tools—it is crucial to have a direct, secure API for fetching build logs.

Use cases:

Automated triage/bot can fetch failed pipeline logs for analysis after receiving a webhook.

🔄️ Alternative

No response

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

Metadata

Metadata

Labels

enhancementNew feature or requestneeds-triageIssue is not approved or ready-to-work on

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions