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:
2026-12-01 23:57:00 +05:30
co-authored by Claude Sonnet 5.5
parent 943351bccb
commit dc94d7fece
46 changed files with 2048 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
# Findings for the 30-minute target window (incident starts at minute 12)
threshold 0.393 (worst baseline distance 0.343 + margin 0.05), k = 4
## Flagged
NOVEL_TEMPLATE ERROR HikariPool HikariPool-<*> - Connection is not available, request timed out after <*>ms. x144 new template, distance 0.678 > 0.393
NOVEL_TEMPLATE WARN PaymentService Payment gateway timeout after <*> ms for order <*>, retry <*> of <*> x90 new template, distance 0.459 > 0.393
NOVEL_TEMPLATE ERROR OrderController Failed to process order <*>: Unable to acquire JDBC Connection x108 new template, distance 0.434 > 0.393
NOVEL_TEMPLATE INFO OrderController Order <*> placed by customer c-<*> total=<*> currency=INR x156 new template, distance 0.394 > 0.393
RATE_SPIKE WARN PaymentService Payment declined for order <*>: insufficient funds x44 peak 44 per 5 min vs baseline mean 2.6 (std 0.9), z = 45.6
## Not flagged, although something is wrong
pool stats template known to the baseline: true
during the incident: HikariPool-1 - Pool stats (total=10, active=10, idle=0, waiting=32)
during normal times: HikariPool-1 - Pool stats (total=10, active=2, idle=8, waiting=0)
'but ledger write failed' has distance 0.256, threshold 0.393, so it is NOT flagged
## Flagged, although nothing is wrong
the deployment's reworded order line has distance 0.394 against threshold 0.393