Documentation

Unity Gaming Services CLI


GitHub Repository

Unity Gaming Services CLI


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:
Yes
ugs observability logs list [options]

Options

Alias

Description

from--fromStart of the time range. An RFC3339 timestamp or a relative time (
now-3h
).
to--toEnd of the time range. An RFC3339 timestamp or a relative time (
now
).
query--queryFilter using the logging filter language (
severityText = "Error"
).
offset--offsetThe number of records to skip. Use with
--limit
for pagination.
limit--limitThe maximum number of records to return (0-100).
project-id-p, --project-idThe Unity cloud project ID.
environment-e, --environment-nameThe services environment name.
help-?, -h, --helpDisplay help and usage information.
quiet-q, --quietReduce logging to a minimum.
json-j, --jsonUse JSON as the output format.

Example

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