AI ShortsOpen the app
AI for SRE / Ops ยท

Six steps from 137,306 log lines to one bad server

Elastic published a worked example of tracking an error spike to its cause. A walk through pattern grouping, change detection and field comparison cut 137,306 log lines down to one test server running a new version with a 1.5-second timeout. It needs Elastic 9.5 or later and a paid or trial licence.

The incident comes from a checkout service on Elastic's demo data. It wrote 137,306 log lines in three hours, of which 857 were errors. The Discover Patterns tab grouped those into three patterns, and one of them, 676 payment gateway timeouts, had not existed before.

An ES|QL query counted errors per minute and ran CHANGE_POINT, which reported a step change at 13:12. Log rate analysis then showed the errors sat on a single pod running version 2.14.1 while the other replicas ran 2.14.0. The pod's startup log showed a timeout setting of 1,500 ms loaded about 14 seconds before the first failure. A final grouped query confirmed that all 676 timeouts were on that one canary.

The post lists limits: counts are estimates above 50,000 documents, CHANGE_POINT needs at least 22 values, pattern analysis struggles with raw JSON, and the method depends on pod name and version being on every log line. The incident happened on September 11.

New to this? The key idea

Finding a cause in logs is mostly elimination. First you group similar messages, then you find when the change started, then you find which machine it comes from. Each step shrinks the pile until one explanation is left.

Use it at work

Use it for: on-call engineers who need a repeatable routine for log-driven root cause hunting, and anyone teaching it to juniors or to an agent.

Try it: follow the order in the post: filter to errors, check patterns, run CHANGE_POINT on errors per minute, compare field values, read surrounding documents, then confirm with a grouped query.

Before you roll it out: needs Elasticsearch and Kibana 9.5 or later and a Platinum or Enterprise licence (or a trial). The sample setup uses Docker and the Elastic OpenTelemetry Collector. Make sure pod name and service version are on every log line, or the 'where' step fails.

Copy this: the same five questions (what is new, when, where, why, confirm) work as a prompt outline for an AI assistant on any log tool.

Summaries are written by AI from the linked source. Always check the original.

Get AI Shorts by email

Every morning, the day's stories in one short email. Unsubscribe in one tap.