Logformer: Cascaded Transformer for System Log Anomaly Detection

被引:2
|
作者
Hang, Feilu [1 ]
Guo, Wei [1 ]
Chen, Hexiong [1 ]
Xie, Linjiang [1 ]
Zhou, Chenghao [2 ]
Liu, Yao [2 ]
机构
[1] Yunnan Power Grid Co Ltd, Informat Ctr, Kunming 650034, Peoples R China
[2] Univ Elect Sci & Technol China, Network & Data Secur Key Lab Sichuan Prov, Chengdu 610054, Peoples R China
来源
基金
中国国家自然科学基金;
关键词
Anomaly detection; system logs; semi -structured data; pre -trained embedding; cascaded transformer;
D O I
10.32604/cmes.2023.025774
中图分类号
T [工业技术];
学科分类号
08 ;
摘要
Modern large-scale enterprise systems produce large volumes of logs that record detailed system runtime status and key events at key points. These logs are valuable for analyzing performance issues and understanding the status of the system. Anomaly detection plays an important role in service management and system maintenance, and guarantees the reliability and security of online systems. Logs are universal semi-structured data, which causes difficulties for traditional manual detection and pattern-matching algorithms. While some deep learning algorithms utilize neural networks to detect anomalies, these approaches have an over-reliance on manually designed features, resulting in the effectiveness of anomaly detection depending on the quality of the features. At the same time, the aforementioned methods ignore the underlying contextual information present in adjacent log entries. We propose a novel model called Logformer with two cascaded transformer-based heads to capture latent contextual information from adjacent log entries, and leverage pre-trained embeddings based on logs to improve the representation of the embedding space. The proposed model achieves comparable results on HDFS and BGL datasets in terms of metric accuracy, recall and F1-score. Moreover, the consistent rise in F1-score proves that the representation of the embedding space with pre-trained embeddings is closer to the semantic information of the log.
引用
收藏
页码:517 / 529
页数:13
相关论文
共 50 条
  • [1] LogFormer: A Pre-train and Tuning Pipeline for Log Anomaly Detection
    Guo, Hongcheng
    Yang, Jian
    Liu, Jiaheng
    Bai, Jiaqi
    Wang, Boyang
    Li, Zhoujun
    Zheng, Tieqiao
    Zhang, Bo
    Peng, Junran
    Tian, Qi
    THIRTY-EIGHTH AAAI CONFERENCE ON ARTIFICIAL INTELLIGENCE, VOL 38 NO 1, 2024, : 135 - 143
  • [2] TAElog: A Novel Transformer AutoEncoder-Based Log Anomaly Detection Method
    Zhao, Changzhi
    Huang, Kezhen
    Wu, Di
    Han, Xueying
    Du, Dan
    Zhou, Yutian
    Lu, Zhigang
    Liu, Yuling
    INFORMATION SECURITY AND CRYPTOLOGY, INSCRYPT 2023, PT II, 2024, 14527 : 37 - 52
  • [3] Log Anomaly Detection Method based on Hybrid Transformer-BiLSTM Models
    Ou, Xuedong
    Liu, Jing
    2022 IEEE 22ND INTERNATIONAL CONFERENCE ON SOFTWARE QUALITY, RELIABILITY, AND SECURITY COMPANION, QRS-C, 2022, : 762 - 763
  • [4] LogSpy: System Log Anomaly Detection for Distributed Systems
    Li, Haoming
    Li, Yuguo
    2020 INTERNATIONAL CONFERENCE ON ARTIFICIAL INTELLIGENCE AND COMPUTER ENGINEERING (ICAICE 2020), 2020, : 347 - 352
  • [5] Experience Report: System Log Analysis for Anomaly Detection
    He, Shilin
    Zhu, Jieming
    He, Pinjia
    Lyu, Michael R.
    2016 IEEE 27TH INTERNATIONAL SYMPOSIUM ON SOFTWARE RELIABILITY ENGINEERING (ISSRE), 2016, : 207 - 218
  • [6] HitAnomaly: Hierarchical Transformers for Anomaly Detection in System Log
    Huang, Shaohan
    Liu, Yi
    Fung, Carol
    He, Rong
    Zhao, Yining
    Yang, Hailong
    Luan, Zhongzhi
    IEEE TRANSACTIONS ON NETWORK AND SERVICE MANAGEMENT, 2020, 17 (04): : 2064 - 2076
  • [7] Ensemble Methods for Anomaly Detection Based on System Log
    Xia, Xuze
    Zhang, Wei
    Jiang, Jianhui
    2019 IEEE 24TH PACIFIC RIM INTERNATIONAL SYMPOSIUM ON DEPENDABLE COMPUTING (PRDC 2019), 2019, : 93 - 94
  • [8] Loader: A Log Anomaly Detector Based on Transformer
    Xiao, Tong
    Quan, Zhe
    Wang, Zhi-Jie
    Le, Yuquan
    Du, Yunfei
    Liao, Xiangke
    Li, Kenli
    Li, Keqin
    IEEE TRANSACTIONS ON SERVICES COMPUTING, 2023, 16 (05) : 3479 - 3492
  • [9] TransSentLog: Interpretable Anomaly Detection Using Transformer and Sentiment Analysis on Individual Log Event
    Pham, Tuan-Anh
    Lee, Jong-Hoon
    IEEE ACCESS, 2023, 11 : 96272 - 96282
  • [10] Access Log Anomaly Detection
    Tharshini, Ma
    Ragavinodini, M.
    Senthilkumar, Radha
    2017 NINTH INTERNATIONAL CONFERENCE ON ADVANCED COMPUTING (ICOAC), 2017, : 375 - 381