search_errors
Search Elasticsearch logs for errors filtered by time range, service, and log level. Identify recurring error patterns for troubleshooting.
Instructions
Search for errors in Elasticsearch logs.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "search_errors"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| service | No | Service name to filter by (e.g., "checkout-api") | |
| log_level | No | Log level to filter by ("error", "warn", "info", "debug", "all") | error |
| time_range | No | Time range to search (e.g., "15m", "1h", "24h", "7d") | 1h |
| max_results | No | Maximum number of results to return (default: 100) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||