# 5050 logs

> Print deploy, build or HTTP logs, following them on a terminal.

Print deploy, build or HTTP logs, following them on a terminal.

## Usage

```sh
5050 logs [DEPLOYMENT] [flags]
```

## Flags

| Flag | Meaning |
|---|---|
| `-b, --build` | Build logs |
| `--http` | HTTP logs from the ingress |
| `--method, --status, --path, --request-id` | Filter HTTP logs |
| `--latest` | The newest deployment, even if it is not active |
| `-n, --lines N` | Number of lines |
| `-f, --filter EXPR` | A [log filter](https://5050cloud.com/docs/reference/log-filters) expression |
| `-S, --since, -U, --until` | Time window (`10m`, `2h`, or a timestamp) |
| `--no-follow` | Print and exit |

## Details

- Deploy logs of the active deployment are the default.

## Examples

```sh
5050 logs -f '@level:error -healthcheck'
5050 logs --http --status 500
5050 logs -b --latest
```

## Railway equivalent

`railway logs` works the same way through the [railway alias](https://5050cloud.com/docs/cli/railway-alias).

Every command also accepts the [global options](https://5050cloud.com/docs/cli/global-options).
