---
title: "ezgh build logs"
description: "Show a pipeline's failed tasks: exit code and the end of each log."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.ezghcloud.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ezgh build logs

{/* Generated by ezgh-cli's internal/tools/clidocs from the ezgh command tree. Don't edit: change the command's help in ezgh-cli and regenerate. */}

```sh
ezgh build logs [pipeline] --failed [flags]
```

Show a pipeline's failed tasks: each one's name, exit code and the last 40 lines of its log; with `--json`, &#123;"pipeline", "failed": \[&#123;"task", "exitCode", "logTail"&#125;\]&#125;.

Without a pipeline it is the connection's newest pipeline of your checkout's HEAD commit.

Part of [`ezgh build`](/cli/reference/build).

## Examples

```sh
ezgh build logs --failed
ezgh build logs bld_4k2m9x0a7qpe --failed --json
```

## Flags

| Flag | Type | Default | Description |
| --- | --- | --- | --- |
| `--connection` | string |  | the connection, when the project has more than one and no pipeline is named |
| `--failed` | boolean |  | the failed tasks (the only form for now) |

Inherited from parent commands:

| Flag | Type | Default | Description |
| --- | --- | --- | --- |
| `--dir` | string | `.` | the repository's checkout (any directory inside it) |
| `--json` | boolean |  | print JSON, as -o json does |

This command also takes the [global flags](/cli/reference#global-flags).

Source: https://docs.ezghcloud.com/cli/reference/build-logs/index.mdx
