Search query language
The search language allows you to:
- Filter the list of event log entries by one or more parameters;
- Apply logical and comparison operations in filter expressions.
Filtering is available by the following parameters:
Parameter | Description |
|---|---|
| The unique event identifier |
| The event occurrence time, RFC3339. Example: 2006-01-02T15:04:05Z07:00 |
| The event type |
| The request ID used to communicate with Cloud Logging |
| The event severity. Available values: |
| The human-readable description of the event |
| The event source identifier |
| The IP address of the event source |
| The identifier of the user whose actions are associated with the event |
| The IP address of the user |
| The project ID in OpenStack |
| Additional metadata identifying the user. Example: the |
| The OpenStack resource ID or similar |
| The resource type |
| Additional metadata that defines the resource. For example:
|
| The status code of operation execution. |
| The status description of operation execution |
| The tags to search for events |
To filter the list of log entries, use the <PARAMETER_NAME>/<PARAMETER_VALUE> pairs in the search string. To filter entries by multiple values of one parameter, list the values one after another.
-
",', and\characters in the search string are escaped with\. -
The value does not need to be quoted if it:
- Starts with a Latin letter and contains only Latin letters, numbers, and underscores.
- Is an unsigned integer.
-
Time value format: RFC3339.
-
All values in nested objects are treated as strings and compared in lexicographic order.
-
Search by array parameters is supported using the
:,=,<>operators.
Operator | Description | Example |
|---|---|---|
| Equal |
|
| Not equal |
|
| More |
|
| Less |
|
| More or less |
|
| Less or more |
|
| Include |
|
You can combine multiple conditions in one filter expression using logical operators:
Operator | Description | Example |
|---|---|---|
| Meets all conditions |
|
| Meets at least one condition |
|
| Does not meet this condition |
|
| This parameter is exist |
|
Use parentheses to specify a specific order of evaluation, for example:
parameter1: "value1" AND (parameter2 = "value2" OR parameter3 < "value3")
This example will find records where parameter1 contains the substring "value1" and at least one of the following conditions is met:
- The value of
parameter2is equal to"value2". - The value of
parameter3is less than"value3"in the lexicographic order.
Expression | Search result |
|---|---|
| All IAM service events that occurred to a user at the |
| All critical events that occurred for users with the |
| All events that occurred on the |