Find log lines and where they come from
es_findFind where, when, and how often a log phrase occurs in one request. Returns match count, affected namespaces/containers, time distribution, and sample lines.
Instructions
One-shot log search: given a phrase, returns the match count, which namespaces and containers produce it, how it is distributed over time, and a sample of lines — in a single Elasticsearch request. Prefer this as the FIRST call for "where/when/how often is X happening", instead of a discovery call followed by a search: it answers all three questions at once and costs one round trip.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | Sample lines to return | |
| text | Yes | Phrase to look for in the log line, e.g. "connection refused" or an order id | |
| index | No | Index or pattern to search; defaults to the configured allowlist | |
| window | No | How far back to look, as date math without "now-": 15m, 1h, 6h, 24h. Keep it as narrow as the question allows — window width dominates query time on this cluster. | 1h |