LogsQueryFilter is a JSON Structure definition published by Datadog, describing 4 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.
{
"$schema": "https://json-structure.org/meta/core/v0/#",
"$id": "https://raw.githubusercontent.com/api-evangelist/datadog/refs/heads/main/json-structure/datadog-logs-logs-query-filter-structure.json",
"name": "LogsQueryFilter",
"description": "Filter criteria for log search queries",
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "A Datadog log search query string to filter log events (e.g., service:web status:error)",
"example": "avg:system.cpu.user{*}"
},
"indexes": {
"type": "array",
"description": "List of log index names to search; if empty, all indexes are searched",
"items": {
"type": "string"
}
},
"from": {
"type": "string",
"description": "The start of the time range for the search in ISO 8601 format or relative format (e.g., now-15m)",
"example": "example_value"
},
"to": {
"type": "string",
"description": "The end of the time range for the search in ISO 8601 format or relative format (e.g., now)",
"example": "example_value"
}
}
}
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. See our Privacy Policy and
Terms.