CtrlK
BlogDocsLog inGet started
Tessl Logo

kopai/root-cause-analysis

Analyze telemetry data for root cause analysis using Kopai CLI. Use when debugging errors, investigating latency issues, tracing request flows across services, or correlating logs with traces. Also use when users report production issues like "why is my API slow", "getting 500 errors", "service is down", "requests are timing out", or any symptom that needs telemetry-based investigation — even if they don't mention traces or observability explicitly.

100

Quality

100%

Does it follow best practices?

Impact

Pending

No eval scenarios have been run

SecuritybySnyk

Passed

No known issues

Overview
Quality
Evals
Security
Files

log-filters.mdreferences/

Log Filters Reference

Available Filters

FilterFlagExample
Service--service--service payment-api
Severity text--severity-text--severity-text ERROR
Severity min--severity-min--severity-min 17
Severity max--severity-max--severity-max 20
Body search--body--body "connection refused"
Trace correlation--trace-id--trace-id abc123
Log attribute--log-attr--log-attr "error.type=timeout"

Severity Levels

Prefer --severity-min over --severity-text for error detection. SeverityText is a free-form string that varies by language (e.g. ERROR, error, Error, or empty). SeverityNumber is standardized per the OTel Log Data Model.

LevelNumber RangeDescription
TRACE1-4Fine-grained debugging
DEBUG5-8Debugging information
INFO9-12Informational messages
WARN13-16Warning conditions
ERROR17-20Error conditions
FATAL21-24Critical failures

Key Log Fields

FieldDescription
TraceIdCorrelation with traces
SpanIdSpecific span context
SeverityTextLog level
BodyLog message content
ServiceNameSource service
TimestampEvent time

Output Options

FlagDescription
--jsonJSON output
--tableTable output
--fieldsSelect specific fields
--limitMax results

references

log-filters.md

metric-filters.md

trace-filters.md

SKILL.md

tile.json