Leveraging Large Language Models and BERT for Log Parsing and Anomaly Detection

Computer systems and applications generate large amounts of logs to measure and record information, which is vital to protect the systems from malicious attacks and useful for repairing faults, especially with the rapid development of distributed computing. Among various logs, the anomaly log is beneficial for operations and maintenance (O&M) personnel to locate faults and improve efficiency. In this paper, we utilize a large language model, ChatGPT, for the log parser task. We choose the BERT model, a self-supervised framework for log anomaly detection. BERT, an embedded transformer encoder, with a self-attention mechanism can better handle context-dependent tasks such as anomaly log detection. Meanwhile, it is based on the masked language model task and next sentence prediction task in the pretraining period to capture the normal log sequence pattern. The experimental results on two log datasets show that the BERT model combined with an LLM performed better than other classical models such as Deelog and Loganomaly.

Authors

Institutions

Publication Details

Journal
Mathematics
Published
2024-09-05
DOI
https://doi.org/10.3390/math12172758
Citations
8
Primary Topic
Software System Performance and Reliability
Type
article
Field-Weighted Citation Impact
2.79

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Leveraging Large Language Models and BERT for Log Parsing and Anomaly Detection

Yihan Zhou, Yuxin Li, Yan Chen, Yukang Zhou et al.
8 citations
Mathematics
Software System Performance and Reliability
2.79
article

Leveraging Large Language Models and BERT for Log Parsing and Anomaly Detection

Yihan Zhou, Yuxin Li, Yan Chen, Yukang Zhou, Chao Hu, X. L. Rao
article en
8 citations

Abstract

Computer systems and applications generate large amounts of logs to measure and record information, which is vital to protect the systems from malicious attacks and useful for repairing faults, especially with the rapid development of distributed computing. Among various logs, the anomaly log is beneficial for operations and maintenance (O&M) personnel to locate faults and improve efficiency. In this paper, we utilize a large language model, ChatGPT, for the log parser task. We choose the BERT model, a self-supervised framework for log anomaly detection. BERT, an embedded transformer encoder, with a self-attention mechanism can better handle context-dependent tasks such as anomaly log detection. Meanwhile, it is based on the masked language model task and next sentence prediction task in the pretraining period to capture the normal log sequence pattern. The experimental results on two log datasets show that the BERT model combined with an LLM performed better than other classical models such as Deelog and Loganomaly.

MathematicsVol. 12(17)
Central South University (CN), Hong Kong Polytechnic University (HK), Nanyang Technological University (SG)
National Natural Science Foundation of China, Central South University
Openalex Percentile: Top 9%
Software System Performance and Reliability
2.79
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.