Affiliation:
1. College of Intelligence and Computing, Tianjin University, Tianjin, China
2. Tianjin International Engineering Institute, the School of Future Technology, Tianjin University, Tianjin, China
3. Chongqing University, Chongqing, China
Abstract
With the rapid development of deep learning (DL), the recent trend of log-based anomaly detection focuses on extracting semantic information from log events (i.e., templates of log messages) and designing more advanced DL models for anomaly detection. Indeed, the effectiveness of log-based anomaly detection can be improved, but these DL-based techniques further suffer from the limitations of more heavy dependency on training data (such as data quality or data labels) and higher costs in time and resources due to the complexity and scale of DL models, which hinder their practical use. On the contrary, the techniques based on traditional machine learning or data mining algorithms are less dependent on training data and more efficient but produce worse effectiveness than DL-based techniques, which is mainly caused by the problem of unseen log events (some log events in incoming log messages are unseen in training data) confirmed by our motivating study. Intuitively, if we can improve the effectiveness of traditional techniques to be comparable with advanced DL-based techniques, then log-based anomaly detection can be more practical. Indeed, an existing study in the other area (i.e., linking questions posted on Stack Overflow) has pointed out that traditional techniques with some optimizations can indeed achieve comparable effectiveness with the state-of-the-art DL-based technique, indicating the feasibility of enhancing traditional log-based anomaly detection techniques to some degree.
Inspired by the idea of “try-with-simpler,” we conducted the first empirical study to explore the potential of improving traditional techniques for more practical log-based anomaly detection. In this work, we optimized the traditional unsupervised PCA (Principal Component Analysis) technique by incorporating a lightweight semantic-based log representation in it, called
SemPCA
, and conducted an extensive study to investigate the potential of
SemPCA
for more practical log-based anomaly detection. By comparing seven log-based anomaly detection techniques (including four DL-based techniques, two traditional techniques, and
SemPCA
) on both public and industrial datasets, our results show that
SemPCA
achieves comparable effectiveness as advanced supervised/semi-supervised DL-based techniques while being much more stable under insufficient training data and more efficient, demonstrating that the traditional technique can still excel after small but useful adaptation.
Funder
National Natural Science Foundation of China
CCF Young Elite Scientists Sponsorship Program
Publisher
Association for Computing Machinery (ACM)
Reference90 articles.
1. Fabian Pedregosa Gael Varoquaux Alexandre Gramfort and Vincent Michel. 2013. ECML PKDD Workshop: Languages for Data Mining and Machine Learning 108–122. Retrieved from https://scikit-learn.org/stable/index.html
2. Principal component analysis
3. The bones of the system
4. A systematic review on overfitting control in shallow and deep neural networks
5. Enriching Word Vectors with Subword Information