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,14 @@
|
||||
# The packaged jar answering curl
|
||||
$ java -jar target/log-anomaly.jar --server.port=18080 &
|
||||
$ curl -s "localhost:18080/api/incidents?baseline=target/sample-logs/baseline.log&target=target/sample-logs/target.log"
|
||||
{
|
||||
"baselineLines": 3947,
|
||||
"targetLines": 2196,
|
||||
"baselineTemplates": 10,
|
||||
"targetTemplates": 14,
|
||||
"clusters": 4
|
||||
}
|
||||
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).
|
||||
|
||||
$ curl -s -o /dev/null -w "%{http_code}" "localhost:18080/api/incidents?baseline=missing.log&target=missing.log"
|
||||
500
|
||||
Reference in New Issue
Block a user