search_logs
Search Datadog logs using custom queries within specified time ranges to retrieve relevant log entries for analysis and troubleshooting.
Instructions
Search Datadog logs with a query and time range
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": {
"query": "<query>",
"from": "<from>",
"to": "<to>"
},
"name": "search_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Log search query (e.g., 'env:prd AND service:pms-connectors') | |
| from | Yes | Start time for log search (e.g., 'now-10m', '2024-01-01T00:00:00Z') | |
| to | Yes | End time for log search (e.g., 'now', '2024-01-01T01:00:00Z') | |
| limit | No | Maximum number of logs to return (default: 10) |