LLM4Log: A Systematic Review of Large Language Model-based Log Analysis
Open Access
- 24 August 2026
- journal article
- review article
- Published by Association for Computing Machinery (ACM) in ACM Transactions on Software Engineering and Methodology
Abstract
Software systems generate massive, evolving, semi-structured logs that are central to reliability engineering and AIOps, yet difficult to analyze at scale under drift and limited labels. Recent advances in pretrained Transformer models and instructiontuned large language models (LLMs) have reshaped log analysis by enabling semantic generalization and cross-source evidence integration, but also introducing deployment risks such as context limits, latency and cost, privacy constraints, and hallucinations. This paper presents LLM4Log , a systematic review of LLM-based log analysis across the end-to-end pipeline, from upstream logging-statement generation and maintenance to log parsing/structuring and downstream tasks including anomaly detection, failure prediction, root cause analysis, and log summarization. Following a structured search and manual screening protocol, we completed literature collection in November 2025 and identified 145 unique papers across seven logging tasks. We organize the research area through a unified, task-driven taxonomy, summarize common design patterns (prompting/ICL, retrieval grounding, fine-tuning, tool/agent augmentation, and verification), and analyze evaluation practices, datasets, metrics, and reproducibility. Based on these cross-paper analyses, we summarize key lessons and open challenges for reliable real-world adoption. We emphasize robustness under drift and long-tail events, grounding and faithfulness for operator-facing outputs, and deployment-oriented designs with verifiable behavior.Keywords
All Related Versions
This publication has 36 references indexed in Scilit:
- LogEval: A comprehensive benchmark suite for LLMs in log analysisEmpirical Software Engineering, 2025
- Improving anomaly detection in software logs through hybrid language modeling and reduced reliance on parserAutomated Software Engineering, 2025
- SemiSMAC: A semi-supervised framework for log anomaly detection with automated hyperparameter tuningInformation and Software Technology, 2025
- SemiRALD: A semi-supervised hybrid language model for robust Anomalous Log DetectionInformation and Software Technology, 2025
- Using large language models for template detection from security event logsInternational Journal of Information Security, 2025
- Benchmarking Large Language Models for Log Analysis, Security, and InterpretationJournal of Network and Systems Management, 2024
- Training-free retrieval-based log anomaly detection with pre-trained language model considering token-level informationEngineering Applications of Artificial Intelligence, 2024
- Log statements generation via deep learning: Widening the support provided to developersJournal of Systems and Software, 2023
- An interview study about the use of logs in embedded software engineeringEmpirical Software Engineering, 2023
- Pre-trained models for natural language processing: A surveyScience China Technological Sciences, 2020