Log-based Anomaly Detection Without Log Parsing

Van-Hoang Le, Hongyu Zhang
8/4/2021
cs.SEcs.AI

Official code: LogIntelligence/NeuralLog (145 stars, Python, MIT, last commit 2023-06-20).

Abstract

Software systems often record important runtime information in system logs for troubleshooting purposes. There have been many studies that use log data to construct machine learning models for detecting system anomalies.

Show full abstract

Through our empirical study, we find that existing log-based anomaly detection approaches are significantly affected by log parsing errors that are introduced by 1) OOV (out-of-vocabulary) words, and 2) semantic misunderstandings. The log parsing errors could cause the loss of important information for anomaly detection. To address the limitations of existing methods, we propose NeuralLog, a novel log-based anomaly detection approach that does not require log parsing. NeuralLog extracts the semantic meaning of raw log messages and represents them as semantic vectors. These representation vectors are then used to detect anomalies through a Transformer-based classification model, which can capture the contextual information from log sequences. Our experimental results show that the proposed approach can effectively understand the semantic meaning of log messages and achieve accurate anomaly detection results. Overall, NeuralLog achieves F1-scores greater than 0.95 on four public datasets, outperforming the existing approaches.

View on arXivView PDF

Code Implementations(1)

MIT

Log-based Anomaly Detection Without Log Parsing (ASE 2021, Research Track)

14543PythonApr 13, 20213 years agoMIT
deep-learninglog-based-anomaly-detectiontransformer

Similar Papers

Cite this paper

@article{le2021logbased,
  title  = {Log-based Anomaly Detection Without Log Parsing},
  author = {Van-Hoang Le and Hongyu Zhang},
  year   = {2021},
  eprint = {2108.01955},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2108.01955}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2108.01955.svg)](https://codeofpaper.com/paper/2108.01955)

Discussion