• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

Computer Engineering & Science ›› 2023, Vol. 45 ›› Issue (08): 1405-1415.

• Computer Network and Znformation Security • Previous Articles     Next Articles

A semi-supervised log anomaly detection method based on attention mechanism

YIN Chun-yong,FENG Meng-xue   

  1. ( School of Computer Science,Nanjing University of Information Science and Technology,Nanjing 210044,China)
  • Received:2023-01-30 Revised:2023-03-23 Accepted:2023-08-25 Online:2023-08-25 Published:2023-08-18

Abstract: Logs record important information about system operation, and log anomaly detection can quickly and accurately identify the cause of system failures. However, log sequences have problems such as data instability and interdependence between data. Therefore, a new semi-supervised log sequence anomaly detection method  is proposed. This method uses the Bidirectional Encoder Representations from Transformers (BERT) model and multi-layer convolutional network to extract log information, obtain the contextual relevance between log sequences and the local relevance of log sequences. Finally, the attention-based Bi-GRU network is used for log sequence anomaly detection. The performance of this model was verified on three datasets. Compared with six benchmark models, this model has the best F1 value and the highest AUC value (0.981 3), and the experimental results show that it can effectively handle the problems of data instability and interdependence between data in log sequences.

Key words: log anomaly detection, bidirectional gate recurrent unit, multilayer convolution, bidirectional encoder representation from transformers, attention mechanism

CLC Number: