mlsanityData to 7 Oct 2026

Lemur: Log Parsing with Entropy Sampling and Chain-of-Thought Merging

arXiv 2402.18205 ↗First posted 28 Feb 2024cs.SE cs.AIcited by 16

On the map: LLM reasoning → Reasoning for agents, planning and code

Abstract (arXiv)

Logs produced by extensive software systems are integral to monitoring system behaviors. Advanced log analysis facilitates the detection, alerting, and diagnosis of system faults. Log parsing, which entails transforming raw log messages into structured templates, constitutes a critical phase in the automation of log analytics. Existing log parsers fail to identify the correct templates due to reliance on human-made rules. Besides, these methods focus on statistical features while ignoring semantic information in log messages. To address these challenges, we introduce a cutting-edge Log parsing framework with Entropy sampling and chain-of-thought Merging (model). Specifically, to discard the tedious manual rules, we propose a novel sampling method inspired by information entropy, which efficiently clusters typical logs. Furthermore, to enhance the merging of log templates, we design a chain-of-thought method for large language models (LLMs). LLMs exhibit exceptional semantic comprehension and deftly distinguish between parameters and invariant tokens. We have conducted experiments on large-scale public datasets. Extensive evaluation demonstrates that model achieves state-of-the-art performance and impressive efficiency. The Code is available at https://github.com/zwpride/lemur.

Key facts. Cited by 16 papers in the map (data through 7 Oct 2026). Placed in Reasoning for agents, planning and code, one of 17 directions in LLM reasoning. Builds on 17 of its 58 references that are in the map. First posted on arXiv 28 Feb 2024.

Builds on

17 of 58 references.

References · 17

  1. 2017Attention Is All You Needcited by 59,932
  2. 2022Training language models to follow instructions with human feedbackcited by 15,712
  3. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
  4. 2022Scaling Instruction-Finetuned Language Modelscited by 2,997
  5. 2023PaLM 2 Technical Reportcited by 1,154
  6. 2023FinGPT: Open-Source Financial Large Language Modelscited by 244
  7. 2023Scaling Laws for Generative Mixed-Modal Language Modelscited by 131
  8. 2019Cross-Lingual Natural Language Generation via Pre-Trainingcited by 63
  9. 2020A Survey on Automated Log Analysis for Reliability Engineeringcited by 50
  10. 2023A Brief Report on LawGPT 1.0: A Virtual Legal Assistant Based on GPT-3cited by 46
  11. 2023OWL: A Large Language Model for IT Operationscited by 43
  12. 2021Multilingual Machine Translation Systems from Microsoft for WMT21 Shared Taskcited by 34
5 more
  1. 2023Log Parsing with Prompt-based Few-shot Learningcited by 28
  2. 2022UniParser: A Unified Log Parser for Heterogeneous Log Datacited by 25
  3. 2020Self-Supervised Log Parsingcited by 23
  4. 2022UM4: Unified Multilingual Multiple Teacher-Student Model for Zero-Resource Neural Machine Translationcited by 10
  5. 2021On Automatic Parsing of Log Recordscited by 3

Built on by

Cited by year

Citing papers per year: 2024: 9; 2025: 7.

16 papers.

Sort:

By area:

Similar, not cited

Close in wording, no citation either way

  1. 2026CelerLog: Fast Log Parsing via Dynamic Routing ↗
  2. 2024LibreLog: Accurate and Efficient Unsupervised Log Parsing Using Open-Source Large Language Models
  3. 2026Instruction-Tuned LLMs for Parsing and Mining Unstructured Logs on Leadership HPC Systems
  4. 2025Log Anomaly Detection with Large Language Models via Knowledge-Enriched Fusion
  5. 2024LogEval: A Comprehensive Benchmark Suite for Large Language Models In Log Analysis
  6. 2024Log Parsing using LLMs with Self-Generated In-Context Learning and Self-Correction
  7. 2026On Sequence-to-Sequence Models for Automated Log Parsing
  8. 2025AdaptiveLog: An Adaptive Log Analysis Framework with the Collaboration of Large and Small Language Model