K4: Online Log Anomaly Detection Via Unsupervised Typicality Learning
K⁴ is an unsupervised, parser-independent framework for online log anomaly detection. It maps arbitrary log embeddings into compact four-dimensional descriptors—Precision, Recall, Density, Coverage—based on efficient k-nearest-neighbor statistics. These descriptors allow a lightweight classifier to score anomalies without retraining. Under a realistic online evaluation protocol, K⁴ achieves state-of-the-art AUROC scores of 0.995–0.999, surpassing baselines by large margins while being orders of magnitude faster, with training under 4 seconds and inference as low as 4 μs.