search_logs
Search Datadog logs by filter query and time range, returning matching entries to debug issues and analyze application behavior.
Instructions
Search Datadog logs with filters and a time range. Returns log entries matching the query, useful for debugging and log analysis.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"filter": "<filter>",
"from": "<from>",
"to": "<to>"
},
"name": "search_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | End time as Unix timestamp (seconds/ms) or ISO 8601 string (must be after 'from') | |
| from | Yes | Start time as Unix timestamp (seconds/ms) or ISO 8601 string | |
| limit | No | Maximum number of logs to return (default: 100, max: 100) | |
| filter | Yes | Log filter query (e.g., "service:api status:error", "host:prod-*"). Use Datadog query syntax. |