mlsanityData to 14 Oct 2026

Interpretable Online Log Analysis Using Large Language Models with Prompt Strategies

arXiv 2308.07610 ↗First posted 15 Aug 2023cs.SE cs.CLcited by 38

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

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  2. 2020Language Models are Few-Shot Learnerscited by 32,419
  3. 2022Training language models to follow instructions with human feedbackcited by 15,971
  4. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
  5. 2021Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processingcited by 2,234
  6. 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,434
  7. 2022Large Language Models Are Human-Level Prompt Engineerscited by 1,045
  8. 2023A Prompt Pattern Catalog to Enhance Prompt Engineering with ChatGPTcited by 619
  9. 2023Large Language Models Are State-of-the-Art Evaluators of Translation Qualitycited by 420
  10. 2022A Systematic Evaluation of Large Language Models of Codecited by 363
  11. 2021Log-based Anomaly Detection Without Log Parsingcited by 59
  12. 2022Log-based Anomaly Detection with Deep Learning: How Far Are We?cited by 57
4 more
  1. 2021Experience Report: Deep Learning-based System Log Analysis for Anomaly Detectioncited by 37
  2. 2023Did We Miss Something Important? Studying and Exploring Variable-Aware Log Abstractioncited by 19
  3. 2021SemParser: A Semantic Parser for Log Analysiscited by 17
  4. 2022LogStamp: Automatic Online Log Parsing Based on Sequence Labellingcited by 6

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2023: 2; 2024: 7; 2025: 18; 2026: 11.

38 papers.

Sort:

By area:

  1. 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 399
  2. 2024When LLMs Meet Cybersecurity: A Systematic Literature Reviewcited by 71
  3. 2023Unifying the Perspectives of NLP and Software Engineering: A Survey on Language Models for Codecited by 62
  4. 2024AD-LLM: Benchmarking Large Language Models for Anomaly Detectioncited by 26
  5. 2025A Survey of AIOps in the Era of Large Language Modelscited by 19
  6. 2024LogLM: From Task-based to Instruction-based Automated Log Analysiscited by 15
  7. 2025Large Language Models for Security Operations Centers: A Comprehensive Surveycited by 9
  8. 2024Adapting Large Language Models to Log Analysis with Interpretable Domain Knowledgecited by 8
  9. 2025Log Anomaly Detection with Large Language Models via Knowledge-Enriched Fusioncited by 8
  10. 2025RedChronos: A Large Language Model-Based Log Analysis System for Insider Threat Detection in Enterprisescited by 6
  11. 2026A Survey on Evaluating Quality and Trustworthiness in LLM-Generated Datacited by 6
  12. 2024A Comparative Study on Large Language Models for Log Parsingcited by 5
26 more
  1. 2025Generative AI for Self-Adaptive Systems: State of the Art and Research Roadmapcited by 5
  2. 2024Taming Text-to-Image Synthesis for Novices: User-centric Prompt Generation via Multi-turn Guidancecited by 4
  3. 2025AdaptiveLog: An Adaptive Log Analysis Framework with the Collaboration of Large and Small Language Modelcited by 4
  4. 2025RulePilot: An LLM-Powered Agent for Security Rule Generationcited by 4
  5. 2026E2E-REME: Towards End-to-End Microservices Auto-Remediation via Experience-Simulation Reinforcement Fine-Tuningcited by 4
  6. 2025System Log Parsing with Large Language Models: A Reviewcited by 3
  7. 2025LLMLogAnalyzer: A Clustering-Based Log Analysis Chatbot using Large Language Modelscited by 3
  8. 2026Tracing the Data Trail: A Survey of Data Provenance, Transparency and Traceability in LLMscited by 3
  9. 2024Team UTSA-NLP at SemEval 2024 Task 5: Prompt Ensembling for Argument Reasoning in Civil Procedures with GPT4cited by 2
  10. 2025RuleGenie: SIEM Detection Rule Set Optimizationcited by 2
  11. 2026CAM-LDS: Cyber Attack Manifestations for Automatic Interpretation of System Logs and Security Alertscited by 2
  12. 2025DMFI: A Dual-Modality Log Analysis Framework for Insider Threat Detection with LoRA-Tuned Language Modelscited by 1
  13. 2025An Ethically Grounded LLM-Based Approach to Insider Threat Synthesis and Detectioncited by 1
  14. 2025From Flows to Words: Can Zero-/Few-Shot LLMs Detect Network Intrusions? A Grammar-Constrained, Calibrated Evaluation on UNSW-NB15cited by 1
  15. 2025Log2Sig: Frequency-Aware Insider Threat Detection via Multivariate Behavioral Signal Decompositioncited by 0
  16. 2025RationAnomaly: Log Anomaly Detection with Rationality via Chain-of-Thought and Reinforcement Learningcited by 0
  17. 2025EPIC: Generative AI Platform for Accelerating HPC Operational Data Analyticscited by 0
  18. 2025Scalable and Efficient Large-Scale Log Analysis with LLMs: An IT Software Support Case Studycited by 0
  19. 2025A unified framework for detecting point and collective anomalies in operating system logs via collaborative transformerscited by 0
  20. 2026Wavelet-Aware Anomaly Detection in Multi-Channel User Logs via Deviation Modulation and Resolution-Adaptive Attentioncited by 0
  21. 2026KRONE: Scalable LLM-Augmented Log Anomaly Detection via Hierarchical Abstractioncited by 0
  22. 2026MV-Gate: Insider Threat Detection via Multi-View Behavioral Statistics and Semantic Modelingcited by 0
  23. 2026Just Testing, Move Along: Evasion of LLM-based System Log Interpretation by Prompt Injectioncited by 0
  24. 2026X-WAD: eXplainable Web Anomaly Detectioncited by 0
  25. 2026When Log Parsing Removes What Matters: Detecting Failures in Distributed GPU Workloadscited by 0
  26. 2026SLS-Bench: A Benchmark for Incident Log Summarization with Synthetic Observability Datacited by 0