Query Syntax
Use our logs UI to quickly search through your log data in seconds.
Query structure
Using logs, you can search through your log data by entering either simple keywords, such as ctrlb , or phrases such as "ctrlb agent", directly into the search field.
Example :
Type a simple text like monotonic in the search query bar, then press enter


You can also combine keywords or phrases with operators to form more complex queries.
To query with other attributes , prefix the attributes with your terms , such as kubernetes_container_name = "celery-adapter"

The user can add attributes in the search query bar in three ways
- Type in the attributes
- Select the attributes from the 'Attributes section'
- With the '+' or '-' buttons in the logs sidebar
General Query rules
Log query rules | Comments |
---|---|
Case sensitive | Simple text search, attributes and their values are all case sensitive |
Whitespace character | Simple text search added in quotes so whitespace character is clearly visible and considered |
Search with attributes
Use attribute searches to narrow the query results to a specific attribute or field.
General operators
The following operators can be used by all types of attributes:
Condition | General operator example |
---|---|
Equal = | Search for log results where the attribute equals the keyword specified. Its case sensitive . Example: The field
|
Not Equal != | Search for log results where the attribute is not equals the keyword specified. Its case sensitive. Example: The field
|
CONTAINS | Search for log results where the attribute contains the specified keyword. Its case sensitive. Example: The field
|
NOT CONTAINS | Search for log results where the attribute excludes the specified keyword. Its case sensitive. Example: The field
|
CONTAINS IGNORE CASE | Is used to find substrings in a case-insensitive manner. |
REGEX | Is used to match complex string patterns based on regular expressions. Example: The field |
NREGEX | Is used to exclude complex strings based on regular expressions. Example: The field |
LIKE | Is used to match simple strings based on regular expressions. Example: The field |
NOT LIKE | Is used to exclude simple strings based on regular expressions. Example: The field |