summarize_logs
Analyze log files or OpenSearch indices to extract key metrics like top endpoints, error rates, slowest requests, and unique IPs.
Instructions
Aggregate log summary: top endpoints, error rates, slowest requests, unique IPs. Provide either path (file) or index (API).
Args: path: Path to local OpenSearch JSON file. index: OpenSearch index to query (requires OPENSEARCH_URL env). query: Lucene query string for API mode. time_from: ISO timestamp lower bound for API mode. time_to: ISO timestamp upper bound for API mode. limit: Max entries to analyze (default 200).
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": "summarize_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| index | No | ||
| limit | No | ||
| query | No | ||
| time_to | No | ||
| time_from | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |