LibreLog: Accurate and Efficient Unsupervised Log Parsing Using Open-Source Large Language Models
Not on the map. Why?
Abstract (arXiv)
Log parsing is a critical step that transforms unstructured log data into structured formats, facilitating subsequent log-based analysis. Traditional syntax-based log parsers are efficient and effective, but they often experience decreased accuracy when processing logs that deviate from the predefined rules. Recently, large language models (LLM) based log parsers have shown superior parsing accuracy. However, existing LLM-based parsers face three main challenges: 1)time-consuming and labor-intensive manual labeling for fine-tuning or in-context learning, 2)increased parsing costs due to the vast volume of log data and limited context size of LLMs, and 3)privacy risks from using commercial models like ChatGPT with sensitive log information. To overcome these limitations, this paper introduces LibreLog, an unsupervised log parsing approach that leverages open-source LLMs (i.e., Llama3-8B) to enhance privacy and reduce operational costs while achieving state-of-the-art parsing accuracy. LibreLog first groups logs with similar static text but varying dynamic variables using a fixed-depth grouping tree. It then parses logs within these groups using three components: i)similarity scoring-based retrieval augmented generation: selects diverse logs within each group based on Jaccard similarity, helping the LLM distinguish between static text and dynamic variables; ii)self-reflection: iteratively query LLMs to refine log templates to improve parsing accuracy; and iii) log template memory: stores parsed templates to reduce LLM queries for improved parsing efficiency. Our evaluation on LogHub-2.0 shows that LibreLog achieves 25% higher parsing accuracy and processes logs 2.7 times faster compared to state-of-the-art LLM-based parsers. In short, LibreLog addresses privacy and cost concerns of using commercial LLMs while achieving state-of-the-arts parsing efficiency and accuracy.
Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Builds on 17 of its 48 references that are in the map. First posted on arXiv 2 Aug 2024.
Builds on
17 of 48 references.
References · 17
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,064
- 2023Code Llama: Open Foundation Models for Codecited by 2,105
- 2023A Survey on Large Language Model (LLM) Security and Privacy: The Good, the Bad, and the Uglycited by 380
- 2024Exploring LLM-based Agents for Root Cause Analysiscited by 60
- 2018Tools and Benchmarks for Automated Log Parsingcited by 56
- 2024Large Language Models for Forecasting and Anomaly Detection: A Systematic Literature Reviewcited by 50
- 2023How Trustworthy are Open-Source LLMs? An Assessment under Malicious Demonstrations Shows their Vulnerabilitiescited by 33
- 2024LLMParser: An Exploratory Study on Using Large Language Models for Log Parsingcited by 32
- 2021LAnoBERT: System Log Anomaly Detection based on BERT Masked Language Modelcited by 30
- 2023LILAC: Log Parsing using LLMs with Adaptive Parsing Cachecited by 30
5 more
- 2023Log Parsing with Prompt-based Few-shot Learningcited by 28
- 2022UniParser: A Unified Log Parser for Heterogeneous Log Datacited by 25
- 2023Did We Miss Something Important? Studying and Exploring Variable-Aware Log Abstractioncited by 19
- 2023Your Code Secret Belongs to Me: Neural Code Completion Tools Can Memorize Hard-Coded Credentialscited by 17
- 2023Log Parsing: How Far Can ChatGPT Go?cited by 16
Built on by
Citing papers per year: 2025: 1; 2026: 2.
3 papers.
Similar, not cited
Close in wording, no citation either way
- 2024Log Parsing using LLMs with Self-Generated In-Context Learning and Self-Correction
- 2026CelerLog: Fast Log Parsing via Dynamic Routing ↗
- 2024Lemur: Log Parsing with Entropy Sampling and Chain-of-Thought Merging
- 2026On Sequence-to-Sequence Models for Automated Log Parsing
- 2025AdaptiveLog: An Adaptive Log Analysis Framework with the Collaboration of Large and Small Language Model
- 2024LogEval: A Comprehensive Benchmark Suite for Large Language Models In Log Analysis
- 2026Instruction-Tuned LLMs for Parsing and Mining Unstructured Logs on Leadership HPC Systems
- 2025Larger Is Not Always Better: Exploring Small Open-source Language Models in Logging Statement Generation