mlsanityData to 7 Oct 2026

LLMParser: An Exploratory Study on Using Large Language Models for Log Parsing

arXiv 2404.18001 ↗First posted 27 Apr 2024cs.SE cs.AIcited by 32

Not on the map. Why?

Abstract (arXiv)

Logs are important in modern software development with runtime information. Log parsing is the first step in many log-based analyses, that involve extracting structured information from unstructured log data. Traditional log parsers face challenges in accurately parsing logs due to the diversity of log formats, which directly impacts the performance of downstream log-analysis tasks. In this paper, we explore the potential of using Large Language Models (LLMs) for log parsing and propose LLMParser, an LLM-based log parser based on generative LLMs and few-shot tuning. We leverage four LLMs, Flan-T5-small, Flan-T5-base, LLaMA-7B, and ChatGLM-6B in LLMParsers. Our evaluation of 16 open-source systems shows that LLMParser achieves statistically significantly higher parsing accuracy than state-of-the-art parsers (a 96% average parsing accuracy). We further conduct a comprehensive empirical analysis on the effect of training size, model size, and pre-training LLM on log parsing accuracy. We find that smaller LLMs may be more effective than more complex LLMs; for instance where Flan-T5-base achieves comparable results as LLaMA-7B with a shorter inference time. We also find that using LLMs pre-trained using logs from other systems does not always improve parsing accuracy. While using pre-trained Flan-T5-base shows an improvement in accuracy, pre-trained LLaMA results in a decrease (decrease by almost 55% in group accuracy). In short, our study provides empirical evidence for using LLMs for log parsing and highlights the limitations and future research direction of LLM-based log parsers.

Key facts. Cited by 32 papers in the map (data through 7 Oct 2026). Builds on 23 of its 75 references that are in the map. First posted on arXiv 27 Apr 2024.

Builds on

23 of 75 references.

References · 23

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  3. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
  4. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  5. 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,413
  6. 2020Making Pre-trained Language Models Better Few-shot Learnerscited by 1,255
  7. 2021Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivitycited by 1,122
  8. 2022Large Language Models Are Human-Level Prompt Engineerscited by 1,020
  9. 2022Few-Shot Parameter-Efficient Fine-Tuning is Better and Cheaper than In-Context Learningcited by 886
  10. 2022GLM-130B: An Open Bilingual Pre-trained Modelcited by 837
  11. 2023LLaMA-Adapter: Efficient Fine-tuning of Language Models with Zero-init Attentioncited by 776
  12. 2019Deep Double Descent: Where Bigger Models and More Data Hurtcited by 667
11 more
  1. 2023TinyStories: How Small Can Language Models Be and Still Speak Coherent English?cited by 425
  2. 2023Hard Prompts Made Easy: Gradient-Based Discrete Optimization for Prompt Tuning and Discoverycited by 329
  3. 2023Few-shot Fine-tuning vs. In-context Learning: A Fair Comparison and Evaluationcited by 134
  4. 2020A Survey on Automated Log Analysis for Reliability Engineeringcited by 50
  5. 2018Diversity in Machine Learningcited by 48
  6. 2023Cost-Effective Hyperparameter Optimization for Large Language Model Generation Inferencecited by 40
  7. 2022UniParser: A Unified Log Parser for Heterogeneous Log Datacited by 25
  8. 2020Self-Supervised Log Parsingcited by 23
  9. 2023Did We Miss Something Important? Studying and Exploring Variable-Aware Log Abstractioncited by 19
  10. 2017Stability of Topic Modeling via Matrix Factorizationcited by 13
  11. 2021Do Language Models Perform Generalizable Commonsense Inference?cited by 10

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 8; 2025: 15; 2026: 9.

32 papers.

Sort:

By area:

  1. 2025TRAIL: Trace Reasoning and Agentic Issue Localizationcited by 98
  2. 2025A Survey of AIOps in the Era of Large Language Modelscited by 18
  3. 2026FIRE-Bench: Evaluating AI Agents on the Rediscovery of Scientific Insightscited by 13
  4. 2025Large Language Models for Security Operations Centers: A Comprehensive Surveycited by 9
  5. 2024VulScribeR: Exploring RAG-based Vulnerability Augmentation with LLMscited by 7
  6. 2024Retrieval-Augmented Test Generation: How Far Are We?cited by 7
  7. 2025On the Effectiveness of Large Language Models in Writing Alloy Formulascited by 7
  8. 2024Adapting Large Language Models to Log Analysis with Interpretable Domain Knowledgecited by 6
  9. 2025The Multi-Agent Fault Localization System Based on Monte Carlo Tree Search Approachcited by 6
  10. 2024A Comparative Study on Large Language Models for Log Parsingcited by 5
  11. 2025Generative AI for Self-Adaptive Systems: State of the Art and Research Roadmapcited by 5
  12. 2025AdaptiveLog: An Adaptive Log Analysis Framework with the Collaboration of Large and Small Language Modelcited by 4
20 more
  1. 2025Evaluating the Effectiveness of LLMs in Fixing Maintainability Issues in Real-World Projectscited by 4
  2. 2024Log Parsing using LLMs with Self-Generated In-Context Learning and Self-Correctioncited by 3
  3. 2024LibreLog: Accurate and Efficient Unsupervised Log Parsing Using Open-Source Large Language Modelscited by 3
  4. 2025Inducing Personality in LLM-Based Honeypot Agents: Measuring the Effect on Human-Like Agenda Generationcited by 3
  5. 2025Towards Practical Defect-Focused Automated Code Reviewcited by 3
  6. 2025LLMLogAnalyzer: A Clustering-Based Log Analysis Chatbot using Large Language Modelscited by 3
  7. 2024LUK: Empowering Log Understanding with Expert Knowledge from Large Language Modelscited by 2
  8. 2025System Log Parsing with Large Language Models: A Reviewcited by 2
  9. 2025OBsmith: LLM-Powered JavaScript Obfuscator Testingcited by 2
  10. 2026Benchmarking and Exploring the Capabilities of LLMs for Attack Investigationscited by 2
  11. 2024Chatting with Logs: An exploratory study on Finetuning LLMs for LogQLcited by 1
  12. 2025A Feature Engineering Approach for Business Impact-Oriented Failure Detection in Distributed Instant Payment Systemscited by 1
  13. 2025Intent-Driven Storage Systems: From Low-Level Tuning to High-Level Understandingcited by 0
  14. 2026KRONE: Scalable LLM-Augmented Log Anomaly Detection via Hierarchical Abstractioncited by 0
  15. 2026On Sequence-to-Sequence Models for Automated Log Parsingcited by 0
  16. 2026An End-to-End Framework for Functionality-Embedded Provenance Graph Construction and Threat Interpretationcited by 0
  17. 2026Tabular PDF Information Extraction with Local LLMs and Layout-Aware Parsing: A Reliability Evaluationcited by 0
  18. 2026Instruction-Tuned LLMs for Parsing and Mining Unstructured Logs on Leadership HPC Systemscited by 0
  19. 2026OpsLLM: Construction of Large Language Model for Software Operations with Multi-stage Learningcited by 0
  20. 2026BLAgent: Agentic RAG for File-Level Bug Localizationcited by 0