LogReasoner: Empowering LLMs with Expert-like Coarse-to-Fine Reasoning for Automated Log Analysis
On the map: LLM reasoning → Reasoning for agents, planning and code
Abstract (arXiv)
Log analysis is crucial for monitoring system health and diagnosing failures in complex systems. Recent advances in large language models (LLMs) offer new opportunities for automated log analysis, leveraging their reasoning capabilities to perform tasks such as anomaly detection and failure prediction. However, general-purpose LLMs struggle to formulate structured reasoning workflows that align with expert cognition and deliver precise details of reasoning steps. To address these challenges, we propose LogReasoner, a coarse-to-fine reasoning enhancement framework designed to enable LLMs to reason log analysis tasks like experts. LogReasoner consists of two stages: (1) coarse-grained enhancement of expert thinking, where high-level expert thoughts are constructed from collected troubleshooting flowcharts and existing tasks to enable LLMs to formulate structured reasoning workflows and (2) fine-grained enhancement of specific steps, where we first fine-tune the LLM with task-specific stepwise solutions to enhance the LLM for instantiated reasoning, then employ the preference learning to calibrate the LLM's reasoning details from its mistakes, further strengthen the LLM's analytical granularity and correctness. We evaluate LogReasoner on four distinct log analysis tasks using open-source LLMs such as Qwen-2.5 and Llama-3. Experimental results show that LogReasoner significantly outperforms existing LLMs, achieving state-of-the-art performance and demonstrating its effectiveness in enhancing the reasoning capabilities of LLMs for log analysis.
Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Placed in Reasoning for agents, planning and code, one of 17 directions in LLM reasoning. Builds on 10 of its 59 references that are in the map. First posted on arXiv 25 Sep 2025.
Builds on
10 of 59 references.
References · 10
- 2023GPT-4 Technical Reportcited by 18,396
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,330
- 2025s1: Simple test-time scalingcited by 1,341
- 2025Towards Reasoning Era: A Survey of Long Chain-of-Thought for Reasoning Large Language Modelscited by 384
- 2024LogLLM: Log-based Anomaly Detection Using Large Language Modelscited by 22
- 2024LogLM: From Task-based to Instruction-based Automated Log Analysiscited by 15
- 2024LogEval: A Comprehensive Benchmark Suite for Large Language Models In Log Analysiscited by 11
- 2025AdaptiveLog: An Adaptive Log Analysis Framework with the Collaboration of Large and Small Language Modelcited by 4
- 2024LUK: Empowering Log Understanding with Expert Knowledge from Large Language Modelscited by 2
Built on by
Citing papers per year: 2026: 2.
2 papers.
Similar, not cited
Close in wording, no citation either way
- 2025R-Log: Incentivizing Log Analysis Capability in LLMs via Reasoning-based Reinforcement Learning
- 2026Instruction-Tuned LLMs for Parsing and Mining Unstructured Logs on Leadership HPC Systems
- 2026ThinkLog: Leveraging Reasoning for Log Statement Generation
- 2026LogSemFuse: Semantic Evidence Fusion for Explainable Log Anomaly Detection ↗
- 2024LLM Reasoners: New Evaluation, Library, and Analysis of Step-by-Step Reasoning with Large Language Models
- 2025LLMSR@XLLM25: An Empirical Study of LLM for Structural Reasoning
- 2024Lemur: Log Parsing with Entropy Sampling and Chain-of-Thought Merging
- 2025Defects4Log: Benchmarking LLMs for Logging Code Defect Detection and Reasoning