Add log-anomaly module: Spring Boot log parser, template mining, swappable embedder, k-means baseline, novel-template and rate-spike detectors with measured blind spots, incidents and a template-only summary prompt on Spring Boot 4.2.0
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b69H5rTewUKPyhGS8r
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
# From findings to one incident and one summary
|
||||
5 findings -> 1 incident(s)
|
||||
window 2026-11-30 11:05:13 +05:30 to 2026-11-30 11:29:46 +05:30, 5 findings, 542 events
|
||||
|
||||
## Summary without a model
|
||||
ERROR incident from 2026-11-30 11:05:13 +05:30 to 2026-11-30 11:29:46 +05:30: 4 new message kinds and 1 known messages surging, 542 events in all. Top: "HikariPool-<*> - Connection is not available, request timed out after <*>ms." (HikariPool, 144x); "Payment gateway timeout after <*> ms for order <*>, retry <*> of <*>" (PaymentService, 90x); "Failed to process order <*>: Unable to acquire JDBC Connection" (OrderController, 108x).
|
||||
|
||||
## The prompt a model would receive
|
||||
You are helping an on-call engineer. Below are the anomalous log templates from one incident.
|
||||
Write 3 sentences: what changed, the likely cause, and what to check first.
|
||||
Only use facts from the list; do not invent hosts, versions or numbers.
|
||||
|
||||
Window: 2026-11-30 11:05:13 +05:30 to 2026-11-30 11:29:46 +05:30
|
||||
1. [ERROR] HikariPool: HikariPool-<*> - Connection is not available, request timed out after <*>ms. (NOVEL_TEMPLATE, 144 events, new template, distance 0.678 > 0.393)
|
||||
2. [WARN] PaymentService: Payment gateway timeout after <*> ms for order <*>, retry <*> of <*> (NOVEL_TEMPLATE, 90 events, new template, distance 0.459 > 0.393)
|
||||
3. [ERROR] OrderController: Failed to process order <*>: Unable to acquire JDBC Connection (NOVEL_TEMPLATE, 108 events, new template, distance 0.434 > 0.393)
|
||||
4. [INFO] OrderController: Order <*> placed by customer c-<*> total=<*> currency=INR (NOVEL_TEMPLATE, 156 events, new template, distance 0.394 > 0.393)
|
||||
5. [WARN] PaymentService: Payment declined for order <*>: insufficient funds (RATE_SPIKE, 44 events, peak 44 per 5 min vs baseline mean 2.6 (std 0.9), z = 45.6)
|
||||
|
||||
## Size
|
||||
raw target window: 2196 physical lines, 310589 characters
|
||||
prompt: 1112 characters (0.4% of the raw window)
|
||||
Reference in New Issue
Block a user