Lemur
[ICLR 2025 SCI-FM Workshop] Lemur: Log Parsing with Entropy Sampling and Chain-of-Thought Merging
Install / Use
/learn @zwpride/LemurREADME
Abstract
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 (<img src="./assets/lemur.png" width="12px">LEMUR). 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, deftly distinguishing between parameters and invariant tokens. We have conducted experiments on large-scale public datasets. Extensive evaluation demonstrates that (<img src="./assets/lemur.png" width="12px">LEMUR) achieves the state-of-the-art performance and impressive efficiency.
Framework
CoT
Result

Running
Install the required enviornment:
pip install -r requirements.txt
Get the results of the first stage:
python benchmark.py
The parsed logs (parsing results) are saved in the result folder.
Get the results of Three-S-hop Chain-of-Thought Merging
export OPENAI_API_KEY="sk-xxx"
python cot/cot_chat.py.py
Archive
In the cot/archive folder, the parsed result and logs in the paper is archived.
@misc{zhang2025lemurlogparsingentropy,
title={Lemur: Log Parsing with Entropy Sampling and Chain-of-Thought Merging},
author={Wei Zhang and Xiangyuan Guan and Lu Yunhong and Jie Zhang and Shuangyong Song and Xianfu Cheng and Zhenhe Wu and Zhoujun Li},
year={2025},
eprint={2402.18205},
archivePrefix={arXiv},
primaryClass={cs.SE},
url={https://arxiv.org/abs/2402.18205},
}
Notice
If you encounter any issues when using Lemur or need technical support, please don't hesitate to contact me. I'll update the code when I have the time, and my responses to the issues you report will be more timely.
Related Skills
node-connect
352.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
111.1kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
352.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
352.0kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
