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).
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 |