Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

Self-Attentive Classification-Based Anomaly Detection in Unstructured Logs

About

The detection of anomalies is essential mining task for the security and reliability in computer systems. Logs are a common and major data source for anomaly detection methods in almost every computer system. They collect a range of significant events describing the runtime system status. Recent studies have focused predominantly on one-class deep learning methods on predefined non-learnable numerical log representations. The main limitation is that these models are not able to learn log representations describing the semantic differences between normal and anomaly logs, leading to a poor generalization of unseen logs. We propose Logsy, a classification-based method to learn log representations in a way to distinguish between normal data from the system of interest and anomaly samples from auxiliary log datasets, easily accessible via the internet. The idea behind such an approach to anomaly detection is that the auxiliary dataset is sufficiently informative to enhance the representation of the normal data, yet diverse to regularize against overfitting and improve generalization. We propose an attention-based encoder model with a new hyperspherical loss function. This enables learning compact log representations capturing the intrinsic differences between normal and anomaly logs. Empirically, we show an average improvement of 0.25 in the F1 score, compared to the previous methods. To investigate the properties of Logsy, we perform additional experiments including evaluation of the effect of the auxiliary data size, the influence of expert knowledge, and the quality of the learned log representations. The results show that the learned representation boost the performance of the previous methods such as PCA with a relative improvement of 28.2%.

Sasho Nedelkoski, Jasmin Bogatinovski, Alexander Acker, Jorge Cardoso, Odej Kao• 2020

Related benchmarks

TaskDatasetResultRank
Log Anomaly DetectionZookeeper
Precision99.89
11
Log Anomaly DetectionLog Anomaly Detection Datasets Summary (test)
Mean F1 Score97.845
11
Log Anomaly DetectionNssal
Precision96.304
11
Log Anomaly DetectionJhuisi (test)
Precision96.879
11
Log Anomaly DetectionHoney7
Precision0.9692
11
Log Anomaly DetectionBlueGene/L
Precision97.64
11
Log Anomaly DetectionCasper (test)
Precision98.409
11
Log Anomaly DetectionHadoop
Precision97.28
11
Log Anomaly DetectionHadoop Dataset
Training Time (Overall, s)9.05
6
Showing 9 of 9 rows

Other info

Follow for update