read_logs
Read OpenSearch log files (JSON or CSV) and return a compact log table with ~98% token reduction. Strip Kubernetes metadata and duplicate fields, auto-detect log type, and filter by status, response time, or time range.
Instructions
Read an OpenSearch log file (JSON or CSV) and return compact log table. Strips kubernetes metadata, duplicate fields — ~98% token reduction. Supports both HTTP access logs and application logs (auto-detected).
Args: path: Path to the OpenSearch JSON or CSV export file. limit: Max entries to return (default 100). status_filter: Only show entries with this HTTP status (e.g. "500", "4xx"). Only applies to HTTP access logs. min_response_time: Only show entries slower than this (ms). Only applies to HTTP access logs. time_from: ISO timestamp lower bound filter (e.g. "2026-06-03T01:05:05Z"). time_to: ISO timestamp upper bound filter.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| limit | No | ||
| time_to | No | ||
| time_from | No | ||
| status_filter | No | ||
| min_response_time | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |