Self-hostable · LLM runs on your own hardware, never a third-party API


Tracewise learns how your system's sessions normally unfold, then turns millions of log lines into a short, ranked queue of incidents, each one explained in terms of the events that broke the pattern.

See the evaluation

No sign-up. Opens a real workspace with a sample log already analysed.

hdfs-datanode.log scoring live
081111 041733 19583 INFO dfs.DataNode$DataXceiver: Receiving block blk_-7462909869427179659 src: /10.251.26.177:45782 dest: /10.251.26.177:50010
081111 041733 19725 INFO dfs.DataNode$DataXceiver: Receiving block blk_-7462909869427179659 src: /10.251.26.177:41359 dest: /10.251.26.177:50010
081111 041756 19759 INFO dfs.DataNode$DataXceiver: Receiving block blk_2422748205260825217 src: /10.251.66.192:43190 dest: /10.251.66.192:50010
081111 041757 19824 INFO dfs.DataNode$DataXceiver: Receiving block blk_2422748205260825217 src: /10.251.66.192:39740 dest: /10.251.66.192:50010
081111 054021 21394 INFO dfs.DataNode$DataXceiver: writeBlock blk_5192727208459865543 received exception java.io.IOException: Could not read from stre
081111 041759 19443 INFO dfs.DataNode$DataXceiver: Receiving block blk_280148210749231476 src: /10.251.109.236:36793 dest: /10.251.109.236:50010
081111 041759 19695 INFO dfs.DataNode$DataXceiver: Receiving block blk_280148210749231476 src: /10.251.109.236:59749 dest: /10.251.109.236:50010
081111 041805 19842 INFO dfs.DataNode$DataXceiver: Receiving block blk_2530985018009316559 src: /10.251.199.245:47484 dest: /10.251.199.245:50010
081111 041806 1511 INFO dfs.DataNode$DataXceiver: Receiving block blk_2530985018009316559 src: /10.251.199.245:32787 dest: /10.251.199.245:50010
081111 054212 21137 INFO dfs.DataNode$DataXceiver: writeBlock blk_939651044845095632 received exception java.io.IOException: Could not read from strea
081111 041807 19584 INFO dfs.DataNode$PacketResponder: PacketResponder 1 for block blk_-7462909869427179659 terminating
081111 041807 19661 INFO dfs.DataNode$PacketResponder: PacketResponder 0 for block blk_-7462909869427179659 terminating
081111 041808 19726 INFO dfs.DataNode$PacketResponder: PacketResponder 2 for block blk_-7462909869427179659 terminating
flagged lines 2LSTM + PCA · conformal fusion
11,175,629real HDFS log lines parsed◆43event templates mined◆230,025held-out test sessions◆0.9218AUC-PR without labels◆0bytes sent to a cloud LLM◆11,175,629real HDFS log lines parsed◆43event templates mined◆230,025held-out test sessions◆0.9218AUC-PR without labels◆0bytes sent to a cloud LLM◆

How it works

Four stages, each one testable on its own.

01

Mine templates

parser.py

A hand-written Drain parser masks IPs, block ids and numbers, then routes each message through a fixed-depth tree to a template. 11.2M lines become 43 event types.

02

Learn normal order

model.py · DeepLog + END

An LSTM trained only on healthy sessions predicts the next event, including an explicit END token, so a session that stops early is as surprising as one that does something odd.

03

Fuse with conformal p-values

Fusion · −ln(min p)

Sequence surprise and PCA count residuals live on different scales. Both are turned into p-values against held-out normal sessions, and the rarer one wins.

04

Triage incidents

brief.py · grounded

Anomalous sessions that break the same way are grouped into one incident. A local LLM drafts a brief, and the brief is rejected if it cites a template it was never shown.

Evaluation

Ranks incidents almost as well as a model that cheats with labels.

Chronological split of Loghub HDFS_v1: train on the first half of sessions, tune on the next 10%, report on the last 230,025. AUC-PR measures how well the incident queue is ordered. F1 uses a threshold frozen on validation, and there the plain PCA baseline still edges ahead. We report that as measured.

Supervised reference
needs labels; not used
AUC 0.929F1 0.880
Tracewise (fused)
no labels
AUC 0.922F1 0.816
LSTM alone (+END)
no labels
AUC 0.889F1 0.812
PCA residual (Xu et al.)
no labels
AUC 0.764F1 0.844
Isolation Forest
no labels
AUC 0.036F1 0.112

Source data: Loghub HDFS_v1 (Zhu et al., ISSRE 2023), used under CC BY 4.0.

Triage

Every alert shows what it expected instead.

  • Sessions that break the same way collapse into one incident with a stable fingerprint.
  • The flagged step shows the model's top expectations and their probabilities.
  • LLM briefs come from a local model and are rejected unless every cited template was in its context.
  • Mark incidents true or false positive. Your measured precision is computed from those verdicts.
highExample incident · 2 sessions
NameSystem.addStoredBlock: Redundant addStoredBlock request…
E1E1E2E1E3E4E3E4E3E4E5E5E21E5E32
step 13 saw E21; model expected E5 p=0.993, E3 p=0.005, E32 p=0.001