Advanced Log Queries
Overview
OR Conditions on a Single Field
curl 'https://app.groundcover.com/api/logs/v2/query' \
-H 'accept: application/json' \
-H 'authorization: Bearer <YOUR_API_KEY>' \
-H 'Content-Type: application/json' \
--data-raw '{
"start": "2025-12-24T13:36:49.143Z",
"end": "2025-12-24T19:36:49.143Z",
"group": {
"operator": "and",
"conditions": [
{
"filters": [{"op": "match", "value": "error"}],
"key": "level",
"origin": "root",
"type": "string"
},
{
"filters": [
{"op": "match", "value": "prod"},
{"op": "match", "value": "dev"}
],
"key": "env",
"origin": "root",
"type": "string"
}
]
},
"limit": 200,
"skip": 0,
"sortBy": "timestamp",
"sortOrder": "desc",
"selectors": [],
"optimizeSearch": true
}'NOT Conditions (Excluding Values)
Wildcard Matching
Free Text Search
Filter Operations
Operation
Description
Example
Combining Conditions
AND Operator
OR Within a Field
Complex Combinations
Best Practices
Last updated
