• 首页
  • 期刊简介
  • 编委会
  • 投稿指南
  • 收录情况
  • 杂志订阅
  • 联系我们
引用本文:郭庆伟,陈 伟,范 渊,苗春雨.基于 B-i LSTM-CNN 的异常日志检测方法[J].软件工程,2026,29(2):66-72.【点击复制】
【打印本页】   【下载PDF全文】   【查看/发表评论】  【下载PDF阅读器】  
←前一篇|后一篇→ 过刊浏览
分享到: 微信 更多
基于 B-i LSTM-CNN 的异常日志检测方法
郭庆伟1,陈 伟1,范 渊2,苗春雨2
(1.南京邮电大学计算机学院、软件学院、网络空间安全学院,江苏 南京 210023;
2.杭州安恒信息技术股份有限公司,浙江 杭州 362261)
1440631534@qq.com; chenwei@njupt.edu.cn; frank.fan@dbappsecurity.com.cn; crain.miao@dbappsecurity.com.cn
摘 要: 为解决现有日志解析方法中有效词丢失和异常检测忽略关键信息以及无法充分利用日志中隐藏的依赖关系问题,提出了一种基于Bi-LSTM-CNN 的异常日志检测方法 BCNLog。该方法通过分词长度限制保留有效词,利用双向编码器表示来自变压器(BERT)(BidirectionalEncoderRepresentationsfromTransformers)提取模板语义,并通过词频-逆文档频率(TF-IDF)加权生成特征向量和权重矩阵,最后拼接后输入双向长短期记忆(Bi-LSTM-卷积神经网络-CNN)混合模型,结合双向 LSTM 和 CNN的优势提升检测性能。实验结果显示,BCNLog在16个数据集上平均解析准确率为97.57%,在3个数据集上异常检测的F1值分别为98.75%、99.23%和99.83%。
关键词: 日志解析  参数异常  TF-IDF  卷积神经网络  异常检测
中图分类号: TP391.1    文献标识码: A
Bi-LSTM-CNN-Based Anomaly Log Detection Method
GUO Qingwei1, CHEN Wei1, FAN Yuan2, MIAO Chunyu2
(1.School of Computer Science, Nanjing University of Posts and Telecommunications, Nanjing 210023, China;
2.DBAPPSecurity Co., Ltd., Hangzhou 362261, China)
1440631534@qq.com; chenwei@njupt.edu.cn; frank.fan@dbappsecurity.com.cn; crain.miao@dbappsecurity.com.cn
Abstract: To address the issues of effective word loss in existing log parsing methods, the neglect of key information in anomaly detection, and the inability to fully utilize hidden dependencies in logs, an anomaly log detection method named BCNLog based on B-i LSTM-CNN is proposed. This method retains effective words by restricting word length, utilizes BERT (Bidirectional Encoder Representations from Transformers) to extract template semantics, and generates feature vectors and weight matrices through TF-IDF weighting. Finally, the concatenated results are fed into a B-i LSTM-CNN hybrid model, which combines the advantages of bidirectional LSTM and CNN(Convolutional Neural Network) to improve detection performance. Experimental results show that BCNLog achieves an average parsing accuracy of 97.57% on 16 datasets, and F1 scores for anomaly detection on three datasets are 98.75% , 99.23% , and 99.83% , respectively.
Keywords: log parsing  parameter anomaly  TF-IDF  convolutional neural network  anomaly detection


版权所有:软件工程杂志社
地址:辽宁省沈阳市浑南区新秀街2号 邮政编码:110179
电话:0411-84767887 传真:0411-84835089 Email:semagazine@neusoft.edu.cn
备案号:辽ICP备17007376号-1
技术支持:北京勤云科技发展有限公司

用微信扫一扫

用微信扫一扫