
Quick Start
Get started with these simple queries:Available Fields
You can query the following fields in your logs:| Field | Description | Example |
|---|---|---|
severity | Log level (error, warning, info, debug, trace) | severity=error |
hostname | Application host | hostname=production-1 |
group | Namespace defined for your application | group="background jobs" |
message | Log message content | message:timeout |
| Custom attributes | Any custom attribute defined in your logs | duration>10.1 |
Query Operators
Search Operators
| Operator | Syntax | Description | Example |
|---|---|---|---|
: | field:value | Contains value | message:error |
!: | field!:value | Does not contain value | hostname!:test |
= | field=value | Exact match | severity=error |
!= | field!=value | Not equal to | source!=mongodb |
group:"background jobs"
Comparison Operators
For numeric values:| Operator | Syntax | Description | Example |
|---|---|---|---|
> | attribute>value | Greater than | duration>100 |
< | attribute<value | Less than | user_id<1000 |
>= | attribute>=value | Greater than or equal to | duration>=100 |
<= | attribute<=value | Less than or equal to | user_id<=1000 |
Nested Attributes
We’ll use the following example JSON structure:Combining Queries
AND Logic (Default)
Space-separated queries are combined with AND:OR Logic
UseOR to match any condition: