Interpretable Online Log Analysis Using Large Language Models with Prompt Strategies
Not on the map. Why?
Abstract (arXiv)
Automated log analysis is crucial in modern software-intensive systems for facilitating program comprehension throughout software maintenance and engineering life cycles. Existing methods perform tasks such as log parsing and log anomaly detection by providing a single prediction value without interpretation. However, given the increasing volume of system events, the limited interpretability of analysis results hinders analysts' comprehension of program status and their ability to take appropriate actions. Moreover, these methods require substantial in-domain training data, and their performance declines sharply (by up to 62.5%) in online scenarios involving unseen logs from new domains, a common occurrence due to rapid software updates. In this paper, we propose LogPrompt, a novel interpretable log analysis approach for online scenarios. LogPrompt employs large language models (LLMs) to perform online log analysis tasks via a suite of advanced prompt strategies tailored for log tasks, which enhances LLMs' performance by up to 380.7% compared with simple prompts. Experiments on nine publicly available evaluation datasets across two tasks demonstrate that LogPrompt, despite requiring no in-domain training, outperforms existing approaches trained on thousands of logs by up to 55.9%. We also conduct a human evaluation of LogPrompt's interpretability, with six practitioners possessing over 10 years of experience, who highly rated the generated content in terms of usefulness and readability (averagely 4.42/5). LogPrompt also exhibits remarkable compatibility with open-source and smaller-scale LLMs, making it flexible for practical deployment. Code of LogPrompt is available at https://github.com/lunyiliu/LogPrompt.
Key facts. Cited by 38 papers in the map (data through 14 Oct 2026). Builds on 16 of its 46 references that are in the map. First posted on arXiv 15 Aug 2023.
Builds on
16 of 46 references.
References · 16
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2022Training language models to follow instructions with human feedbackcited by 15,971
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2021Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processingcited by 2,234
- 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,434
- 2022Large Language Models Are Human-Level Prompt Engineerscited by 1,045
- 2023A Prompt Pattern Catalog to Enhance Prompt Engineering with ChatGPTcited by 619
- 2023Large Language Models Are State-of-the-Art Evaluators of Translation Qualitycited by 420
- 2022A Systematic Evaluation of Large Language Models of Codecited by 363
- 2021Log-based Anomaly Detection Without Log Parsingcited by 59
- 2022Log-based Anomaly Detection with Deep Learning: How Far Are We?cited by 57
4 more
- 2021Experience Report: Deep Learning-based System Log Analysis for Anomaly Detectioncited by 37
- 2023Did We Miss Something Important? Studying and Exploring Variable-Aware Log Abstractioncited by 19
- 2021SemParser: A Semantic Parser for Log Analysiscited by 17
- 2022LogStamp: Automatic Online Log Parsing Based on Sequence Labellingcited by 6
Built on by
Citing papers per year: 2023: 2; 2024: 7; 2025: 18; 2026: 11.
38 papers.
Sort:
By area:
- 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 399
- 2024When LLMs Meet Cybersecurity: A Systematic Literature Reviewcited by 71
- 2023Unifying the Perspectives of NLP and Software Engineering: A Survey on Language Models for Codecited by 62
- 2024AD-LLM: Benchmarking Large Language Models for Anomaly Detectioncited by 26
- 2025A Survey of AIOps in the Era of Large Language Modelscited by 19
- 2024LogLM: From Task-based to Instruction-based Automated Log Analysiscited by 15
- 2025Large Language Models for Security Operations Centers: A Comprehensive Surveycited by 9
- 2024Adapting Large Language Models to Log Analysis with Interpretable Domain Knowledgecited by 8
- 2025Log Anomaly Detection with Large Language Models via Knowledge-Enriched Fusioncited by 8
- 2025RedChronos: A Large Language Model-Based Log Analysis System for Insider Threat Detection in Enterprisescited by 6
- 2026A Survey on Evaluating Quality and Trustworthiness in LLM-Generated Datacited by 6
- 2024A Comparative Study on Large Language Models for Log Parsingcited by 5
26 more
- 2025Generative AI for Self-Adaptive Systems: State of the Art and Research Roadmapcited by 5
- 2024Taming Text-to-Image Synthesis for Novices: User-centric Prompt Generation via Multi-turn Guidancecited by 4
- 2025AdaptiveLog: An Adaptive Log Analysis Framework with the Collaboration of Large and Small Language Modelcited by 4
- 2025RulePilot: An LLM-Powered Agent for Security Rule Generationcited by 4
- 2026E2E-REME: Towards End-to-End Microservices Auto-Remediation via Experience-Simulation Reinforcement Fine-Tuningcited by 4
- 2025System Log Parsing with Large Language Models: A Reviewcited by 3
- 2025LLMLogAnalyzer: A Clustering-Based Log Analysis Chatbot using Large Language Modelscited by 3
- 2026Tracing the Data Trail: A Survey of Data Provenance, Transparency and Traceability in LLMscited by 3
- 2024Team UTSA-NLP at SemEval 2024 Task 5: Prompt Ensembling for Argument Reasoning in Civil Procedures with GPT4cited by 2
- 2025RuleGenie: SIEM Detection Rule Set Optimizationcited by 2
- 2026CAM-LDS: Cyber Attack Manifestations for Automatic Interpretation of System Logs and Security Alertscited by 2
- 2025DMFI: A Dual-Modality Log Analysis Framework for Insider Threat Detection with LoRA-Tuned Language Modelscited by 1
- 2025An Ethically Grounded LLM-Based Approach to Insider Threat Synthesis and Detectioncited by 1
- 2025From Flows to Words: Can Zero-/Few-Shot LLMs Detect Network Intrusions? A Grammar-Constrained, Calibrated Evaluation on UNSW-NB15cited by 1
- 2025Log2Sig: Frequency-Aware Insider Threat Detection via Multivariate Behavioral Signal Decompositioncited by 0
- 2025RationAnomaly: Log Anomaly Detection with Rationality via Chain-of-Thought and Reinforcement Learningcited by 0
- 2025EPIC: Generative AI Platform for Accelerating HPC Operational Data Analyticscited by 0
- 2025Scalable and Efficient Large-Scale Log Analysis with LLMs: An IT Software Support Case Studycited by 0
- 2025A unified framework for detecting point and collective anomalies in operating system logs via collaborative transformerscited by 0
- 2026Wavelet-Aware Anomaly Detection in Multi-Channel User Logs via Deviation Modulation and Resolution-Adaptive Attentioncited by 0
- 2026KRONE: Scalable LLM-Augmented Log Anomaly Detection via Hierarchical Abstractioncited by 0
- 2026MV-Gate: Insider Threat Detection via Multi-View Behavioral Statistics and Semantic Modelingcited by 0
- 2026Just Testing, Move Along: Evasion of LLM-based System Log Interpretation by Prompt Injectioncited by 0
- 2026X-WAD: eXplainable Web Anomaly Detectioncited by 0
- 2026When Log Parsing Removes What Matters: Detecting Failures in Distributed GPU Workloadscited by 0
- 2026SLS-Bench: A Benchmark for Incident Log Summarization with Synthetic Observability Datacited by 0
- 2026SLS-Bench: A Benchmark for Incident Log Summarization with Synthetic Observability Data12 Oct 2026
- 2026When Log Parsing Removes What Matters: Detecting Failures in Distributed GPU Workloads29 Sep 2026
- 2026X-WAD: eXplainable Web Anomaly Detection27 Aug 2026
- 2026Just Testing, Move Along: Evasion of LLM-based System Log Interpretation by Prompt Injection27 Jul 2026
- 2026MV-Gate: Insider Threat Detection via Multi-View Behavioral Statistics and Semantic Modeling18 May 2026
- 2026E2E-REME: Towards End-to-End Microservices Auto-Remediation via Experience-Simulation Reinforcement Fine-Tuning13 Apr 2026
- 2026CAM-LDS: Cyber Attack Manifestations for Automatic Interpretation of System Logs and Security Alerts4 Mar 2026
- 2026KRONE: Scalable LLM-Augmented Log Anomaly Detection via Hierarchical Abstraction7 Feb 2026
- 2026A Survey on Evaluating Quality and Trustworthiness in LLM-Generated Data25 Jan 2026
- 2026Tracing the Data Trail: A Survey of Data Provenance, Transparency and Traceability in LLMs19 Jan 2026
- 2026Wavelet-Aware Anomaly Detection in Multi-Channel User Logs via Deviation Modulation and Resolution-Adaptive Attention18 Jan 2026
- 2025A unified framework for detecting point and collective anomalies in operating system logs via collaborative transformers29 Dec 2025
26 more
- 2025Log Anomaly Detection with Large Language Models via Knowledge-Enriched Fusion12 Dec 2025
- 2025Generative AI for Self-Adaptive Systems: State of the Art and Research Roadmap4 Dec 2025
- 2025Scalable and Efficient Large-Scale Log Analysis with LLMs: An IT Software Support Case Study17 Nov 2025
- 2025RulePilot: An LLM-Powered Agent for Security Rule Generation15 Nov 2025
- 2025LLMLogAnalyzer: A Clustering-Based Log Analysis Chatbot using Large Language Models28 Oct 2025
- 2025From Flows to Words: Can Zero-/Few-Shot LLMs Detect Network Intrusions? A Grammar-Constrained, Calibrated Evaluation on UNSW-NB1518 Oct 2025
- 2025RationAnomaly: Log Anomaly Detection with Rationality via Chain-of-Thought and Reinforcement Learning18 Sep 2025
- 2025Large Language Models for Security Operations Centers: A Comprehensive Survey13 Sep 2025
- 2025An Ethically Grounded LLM-Based Approach to Insider Threat Synthesis and Detection8 Sep 2025
- 2025EPIC: Generative AI Platform for Accelerating HPC Operational Data Analytics29 Aug 2025
- 2025Log2Sig: Frequency-Aware Insider Threat Detection via Multivariate Behavioral Signal Decomposition6 Aug 2025
- 2025DMFI: A Dual-Modality Log Analysis Framework for Insider Threat Detection with LoRA-Tuned Language Models6 Aug 2025
- 2025A Survey of AIOps in the Era of Large Language Models23 Jun 2025
- 2025RuleGenie: SIEM Detection Rule Set Optimization10 May 2025
- 2025System Log Parsing with Large Language Models: A Review7 Apr 2025
- 2025RedChronos: A Large Language Model-Based Log Analysis System for Insider Threat Detection in Enterprises4 Mar 2025
- 2025AdaptiveLog: An Adaptive Log Analysis Framework with the Collaboration of Large and Small Language Model19 Jan 2025
- 2024AD-LLM: Benchmarking Large Language Models for Anomaly Detection15 Dec 2024
- 2024Adapting Large Language Models to Log Analysis with Interpretable Domain Knowledge2 Dec 2024
- 2024LogLM: From Task-based to Instruction-based Automated Log Analysis12 Oct 2024
- 2024A Comparative Study on Large Language Models for Log Parsing4 Sep 2024
- 2024Taming Text-to-Image Synthesis for Novices: User-centric Prompt Generation via Multi-turn Guidance23 Aug 2024
- 2024When LLMs Meet Cybersecurity: A Systematic Literature Review6 May 2024
- 2024Team UTSA-NLP at SemEval 2024 Task 5: Prompt Ensembling for Argument Reasoning in Civil Procedures with GPT42 Apr 2024
- 2023Unifying the Perspectives of NLP and Software Engineering: A Survey on Language Models for Code14 Nov 2023
- 2023Large Language Models for Software Engineering: A Systematic Literature Review21 Aug 2023
- 2025RulePilot: An LLM-Powered Agent for Security Rule Generation15 Nov 2025
- 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 399
- 2024When LLMs Meet Cybersecurity: A Systematic Literature Reviewcited by 71
- 2023Unifying the Perspectives of NLP and Software Engineering: A Survey on Language Models for Codecited by 62
- 2024AD-LLM: Benchmarking Large Language Models for Anomaly Detectioncited by 26
- 2025A Survey of AIOps in the Era of Large Language Modelscited by 19
- 2024LogLM: From Task-based to Instruction-based Automated Log Analysiscited by 15
- 2025Large Language Models for Security Operations Centers: A Comprehensive Surveycited by 9
- 2024Adapting Large Language Models to Log Analysis with Interpretable Domain Knowledgecited by 8
- 2025Log Anomaly Detection with Large Language Models via Knowledge-Enriched Fusioncited by 8
- 2025RedChronos: A Large Language Model-Based Log Analysis System for Insider Threat Detection in Enterprisescited by 6
- 2024A Comparative Study on Large Language Models for Log Parsingcited by 5
- 2025Generative AI for Self-Adaptive Systems: State of the Art and Research Roadmapcited by 5
12 most cited of 33 All 33 (JSON)
- 2026SLS-Bench: A Benchmark for Incident Log Summarization with Synthetic Observability Data12 Oct 2026
- 2026When Log Parsing Removes What Matters: Detecting Failures in Distributed GPU Workloads29 Sep 2026
- 2026MV-Gate: Insider Threat Detection via Multi-View Behavioral Statistics and Semantic Modeling18 May 2026
- 2026E2E-REME: Towards End-to-End Microservices Auto-Remediation via Experience-Simulation Reinforcement Fine-Tuning13 Apr 2026
- 2026CAM-LDS: Cyber Attack Manifestations for Automatic Interpretation of System Logs and Security Alerts4 Mar 2026
- 2026KRONE: Scalable LLM-Augmented Log Anomaly Detection via Hierarchical Abstraction7 Feb 2026
- 2026Tracing the Data Trail: A Survey of Data Provenance, Transparency and Traceability in LLMs19 Jan 2026
- 2026Wavelet-Aware Anomaly Detection in Multi-Channel User Logs via Deviation Modulation and Resolution-Adaptive Attention18 Jan 2026
- 2025A unified framework for detecting point and collective anomalies in operating system logs via collaborative transformers29 Dec 2025
- 2025Log Anomaly Detection with Large Language Models via Knowledge-Enriched Fusion12 Dec 2025
- 2025Generative AI for Self-Adaptive Systems: State of the Art and Research Roadmap4 Dec 2025
- 2025Scalable and Efficient Large-Scale Log Analysis with LLMs: An IT Software Support Case Study17 Nov 2025
12 newest of 33 All 33 (JSON)