Triage
log10x_resolve_batchTemplatizes a batch of log events locally and returns per-pattern triage with frequency, severity, and slot distributions. Runs in-process without Kubernetes or a Log10x account.
Instructions
Templatize a batch of log events and return per-pattern triage. This is one of two tools that ACTUALLY RUN A LOCAL LOG10X PIPELINE on the user's machine (the other is log10x_extract_templates) — call this whenever the user asks 'can you run log10x locally', 'do a local pipeline run', 'templatize these events', or supplies any batch to analyze (Datadog/Splunk/Elastic query results, Slack incident attachments, kubectl logs, raw text). Does NOT need Kubernetes, a deployed Reporter, or a Log10x account — the pipeline runs in-process on the host. Output structures the batch by a paste-local templateHash with per-pattern frequency + severity + full template structure + per-slot variable distribution. Each top pattern carries actions[] chaining to log10x_investigate (historical correlation) and log10x_retriever_query (archive retrieval). Do NOT call for single-line resolution — use log10x_event_lookup for that. REQUIRES a local engine: the tenx binary on PATH, or Docker with LOG10X_TENX_MODE=docker.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Local file path when source=file. Required for file mode. | |
| text | No | Raw text blob when source=text — newline-separated log events. | |
| events | No | Inline log lines: an array of lines, or a single newline-separated string (both accepted). `source` need not be set. | |
| source | No | Optional — auto-inferred from whichever of `events` / `text` / `path` you actually provide, so you normally do not set it. Provide explicitly only to disambiguate when more than one is present. | |
| environment | No | Environment nickname — used to build next_actions that call log10x_investigate. | |
| top_n_patterns | No | How many patterns to return in the ranked triage. | |
| include_next_actions | No | Whether to generate next_action suggestions for each top pattern. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| tool | Yes | ||
| view | No | summary | |
| images | No | ||
| actions | No | ||
| summary | Yes | ||
| warnings | No | ||
| truncated | No | ||
| next_cursor | No | ||
| render_hint | No | ||
| generated_at | Yes | ||
| schema_epoch | Yes | ||
| schema_version | Yes |