Matchmaker logs
Learn how Matchmaker logs provide insights into matchmaking activity and help diagnose issues.
Read time 2 minutesLast updated 2 days ago
Logging is a feature of Matchmaker to detect and debug live issues.
Logs are available in the Unity Dashboard. You can filter logs by time range, and by content using a query language.
The log schema is OpenTelemetry compliant.
Logging has the following key features:
- Structured log schema
- Seven days of retention
- Time range filter
- Log fields filter
- Pagination
Access logs
The following instructions explain how to access the Matchmaker logging feature from the Unity Dashboard.- In the Unity Dashboard, open Matchmaker.
- Select Logs.
Filter logs
The logging service supports a custom query language that allows you to filter the structured logs. This section walks you through the syntax and usage of the query language, and provides some examples to help you get started.Basic syntax and operators
A filter query consists of one or more conditions. The basic syntax of a condition consists of the following components:Component | Condition |
|---|---|
| Field | The field you want to filter on, such as |
| Operator | One of the supported operators. Refer to the table of operators below. |
| Value | The value you want to compare the field against. |
Operator | Meaning |
|---|---|
| equals |
| not equals |
| contains (only available on |
| does not contain (only available on |
| greater than |
| less than |
| less than or equal to |
| greater than or equal to |
Boolean expressions and grouping
You can create complex filter queries using boolean expressions and grouping with parentheses. This allows you to combine multiple conditions to create precise filters.Boolean expression | Meaning |
|---|---|
| Require both conditions on either side to be true. |
| Require at least one of the conditions on either side to be true. |
| Grouping | Use parentheses ( and ) to group expressions and control the order of evaluation. |
ANDExamples of filter queries
Consult the following example filter queries to search through your logs:Description | Filter query |
|---|---|
| Search logs for a pool by name | |
| Search logs for a queue by name | |
| Search logs for an environment ID | |
| Search logs for a project ID | |
| Search logs for a match ID | |
| Search logs for a ticket ID | |
| Search logs for a backfill ticket ID | |
| Search logs for an allocation ID | |
| Search logs for a region ID | |
| Select all logs with a certain severity level | |
| Select all logs that are above a certain severity level (newlines are treated as AND) | |
| Exclude logs with a particular word in the message | |
| Combine multiple conditions and groupings (using severity alias) | |
- The field is also aliased as
severityTextfor convenience.severity - Fuzzy match operators (~= and !~=) are only supported for the field.
body - The keys are case-sensitive.
LogAttributes - The values are automatically converted to string.
LogAttributes