List logs
List logs for a project and environment.
Read time 1 minuteLast updated 10 days ago
List logs for a project and environment.
Command
Authentication Required:
Yesugs observability logs list [options]
Options
Alias | Description | |
|---|---|---|
| from | --from | Start of the time range. An RFC3339 timestamp or a relative time ( |
| to | --to | End of the time range. An RFC3339 timestamp or a relative time ( |
| query | --query | Filter using the logging filter language ( |
| offset | --offset | The number of records to skip. Use with |
| 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
ugs obs logs list --from now-1h --query 'severityText = "Error"'