Log anomaly detection in AIOps: A real-world implementation using Large Language Models

Read full text
Authors: Miguel De la Cruz Cabello, Tiago Prince Sales, Marcos Machado
Cited by: 2
References: 8

Abstract

This study investigates the application of Large Language Models (LLMs) for log anomaly detection within the emerging field of AIOps, where large-scale operational logs are increasingly used to support reliability engineering and automated incident response. However, deploying LLM-based anomaly detection in military environments raises practical constraints, including strict data confidentiality, limited data sharing, and frequent shifts in operational conditions and log formats. To address these challenges, we design and implement a self-supervised anomaly detection framework based on LogBERT, trained only on normal Linux syslog sequences, and deploy it locally to avoid external dependencies. We explore critical parameters, including the minimum number of tokens per log sequence, sliding window intervals, and mask ratios while attempting to detect log anomaly. In controlled experiments, a 15-second sliding window with a 10-second overlap provided the best trade-off between detection effectiveness and inference latency, supporting real-time monitoring requirements. Quantitative evaluation demonstrates that shorter sliding windows, despite capturing less context, resulted in slightly higher detection performance of anomalous logs. The model achieved high accuracy in distinguishing normal from abnormal log sequences, where sequences were classified as anomalous if more than 10% of masked tokens were incorrectly predicted. A qualitative assessment with domain experts further validated the operational usefulness of the approach, indicating reduced manual monitoring effort and suitability for integration into AIOps pipelines under confidentiality constraints.

Fields of Study & Subjects

Anomaly Detection Techniques and Applications Software System Performance and Reliability Network Security and Intrusion Detection

Publication details

Journal / source
Systems and Soft Computing
Publisher
Elsevier BV
Volume
8
Pages
200475–200475
Publication date
5 March 2026
Language
EN