Search Guide
Find logs and traces quickly with powerful search syntax
Overview
Qorrelate uses a Lucene-style query language for searching logs and traces. This syntax is intuitive and powerful, letting you quickly find the data you need.
Powered by ClickHouse
Under the hood, queries are translated to optimized ClickHouse SQL. This means blazing-fast searches even across billions of log lines.
Simple Text Search
Just type what you're looking for:
Find all logs containing "error"
Find exact phrase (use quotes)
Find logs containing both "timeout" AND "connection"
Field-Specific Search
Search specific fields using field:value syntax:
Logs from api-gateway service
Only ERROR level logs
Find all logs for a specific trace
Search custom attributes with attr. prefix
Boolean Operators
Combine conditions with AND, OR:
Errors in checkout service
Logs containing either "error" or "warning"
Errors from api or web services (use parentheses for grouping)
Note: AND is implicit between terms. error timeout is the same as error AND timeout
Regex Patterns
Enable regex mode for pattern matching:
Match any of these words (with regex enabled)
Match user IDs like user-123, user-4567
Logs starting with "Failed to"
To enable regex in the UI, check the Regex checkbox. In API calls, add use_regex=true.
Numeric Filters
Filter by numeric values:
Exact match
All 4xx and 5xx errors
Slow requests (over 1 second)
Time Ranges
Use the time picker in the UI, or specify time ranges in API calls:
# Last hour
start_time=now-1h&end_time=now
# Specific range
start_time=2024-01-15T10:00:00Z&end_time=2024-01-15T12:00:00Z
# Last 7 days
start_time=now-7d&end_time=now
Available Fields
Log Fields
| Field | Aliases | Description |
|---|---|---|
service.name |
service_name | Service name from resource attributes |
severity |
level, severity_text | Log level (DEBUG, INFO, WARN, ERROR) |
body |
message, msg | Log message body |
trace_id |
trace.id | OpenTelemetry trace ID |
span_id |
span.id | OpenTelemetry span ID |
attr.{key} |
attribute.{key} | Custom log attributes |
resource.{key} |
res.{key} | Resource attributes |
Trace Fields
| Field | Description |
|---|---|
service |
Service name |
operation |
Span/operation name |
duration |
Span duration |
status |
Span status (OK, ERROR) |
Example Queries
API Usage
Search Logs
curl -G "https://qorrelate.io/v1/logs/search" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "query=service.name:api-gateway AND severity:ERROR" \
--data-urlencode "start_time=2024-01-15T00:00:00Z" \
--data-urlencode "end_time=2024-01-15T23:59:59Z" \
--data-urlencode "limit=100"
Search with Regex
curl -G "https://qorrelate.io/v1/logs/search" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "query=user-[0-9]+" \
--data-urlencode "use_regex=true"
Search Traces
curl -G "https://qorrelate.io/v1/traces/search" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "service=checkout" \
--data-urlencode "min_duration=100ms" \
--data-urlencode "limit=50"