o2_search
Execute read-only SQL SELECT/WITH queries on OpenObserve for logs, metrics, and traces. Retrieve recent data with default time filters and row limits, or specify custom start/end times.
Instructions
Run one read-only SQL SELECT/WITH query against OpenObserve. Quote the stream name: SELECT * FROM "stream" ORDER BY _timestamp DESC. Defaults to the last 15 minutes and returns at most 200 rows. No semicolons or SQL comments outside string literals.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | ISO-8601 end time (default now). | |
| sql | Yes | One SELECT or WITH statement. | |
| size | No | Rows to return (default 50). | |
| type | No | Stream type (default logs). | |
| start | No | ISO-8601 start time (overrides minutes). | |
| minutes | No | Look back this many minutes from end (default 15). |