---
title: List logs
product: Unity Gaming Services CLI
version: 2.0.0
latest_version: 2.0.0
status: This page documents version 2.0.0. The latest version is 2.0.0.
canonical: https://docs.unity.com/en-us/services-cli/2.0.0/manual/observability/commands/list-logs
latest_url: https://docs.unity.com/en-us/services-cli/2.0.0/manual/observability/commands/list-logs.md
last_updated: 2026-10-01
generated_at: 2026-11-11T13:52:50.908Z
locale: en-us
---

# List logs

> List logs for a project and environment.

List logs for a project and environment.

## Command

Authentication Required: `Yes`

```text
ugs observability logs list [options]
```

## Options

|             | Alias                  | Description                                                                  |
| ----------- | ---------------------- | ---------------------------------------------------------------------------- |
| from        | --from                 | Start of the time range. An RFC3339 timestamp or a relative time (`now-3h`). |
| to          | --to                   | End of the time range. An RFC3339 timestamp or a relative time (`now`).      |
| query       | --query                | Filter using the logging filter language (`severityText = "Error"`).         |
| offset      | --offset               | The number of records to skip. Use with `--limit` for pagination.            |
| limit       | --limit                | The maximum number of records to return (0-100).                             |
| project-id  | -p, --project-id       | The Unity cloud project ID.                                                  |
| environment | -e, --environment-name | The services environment name.                                               |
| help        | -?, -h, --help         | Display help and usage information.                                          |
| quiet       | -q, --quiet            | Reduce logging to a minimum.                                                 |
| json        | -j, --json             | Use JSON as the output format.                                               |

## Example

```text
ugs obs logs list --from now-1h --query 'severityText = "Error"'
```
