LogShrink: Effective Log Compression by Leveraging Commonality and Variability of Log Data
Xiaoyun Li, Hongyu Zhang, Van-Hoang Le, Pengfei Chen
摘要
Log data is a crucial resource for recording system events and states during system execution. However, as systems grow in scale, log data generation has become increasingly explosive, leading to an expensive overhead on log storage, such as several petabytes per day in production. To address this issue, log compression has become a crucial task in reducing disk storage while allowing for further log analysis. Unfortunately, existing general-purpose and log-specific compression methods have been limited in their ability to utilize log data characteristics. To overcome these limitations, we conduct an empirical study and obtain three major observations on the characteristics of log data that can facilitate the log compression task. Based on these observations, we propose LogShrink, a novel and effective log compression method by leveraging commonality and variability of log data. An analyzer based on longest common subsequence and entropy techniques is proposed to identify the latent commonality and variability in log messages. The key idea behind this is that the commonality and variability can be exploited to shrink log data with a shorter representation. Besides, a clustering-based sequence sampler is introduced to accelerate the commonality and variability analyzer. The extensive experimental results demonstrate that LogShrink can exceed baselines in compression ratio by 16% to 356% on average while preserving a reasonable compression speed.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 10 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- On the Feasibility of Parser-based Log Compression in Large-Scale Cloud Systems 引用了 DeepLog: Anomaly Detection and Diagnosis from System Logs through Deep Learning
- Demonstration-Free: Towards More Practical Log Parsing with Large Language Models 引用了 Log-based Anomaly Detection with Deep Learning: How Far Are We?
- Demonstration-Free: Towards More Practical Log Parsing with Large Language Models 引用了 LILAC: Log Parsing using LLMs with Adaptive Parsing Cache
- Demonstration-Free: Towards More Practical Log Parsing with Large Language Models 引用了 Log Parsing with Prompt-based Few-shot Learning
- No More Labelled Examples? An Unsupervised Log Parser with LLMs 引用了 DeepTraLog: Trace-Log Combined Microservice Anomaly Detection through Graph-based Deep Learning
- No More Labelled Examples? An Unsupervised Log Parser with LLMs 引用了 LILAC: Log Parsing using LLMs with Adaptive Parsing Cache
- No More Labelled Examples? An Unsupervised Log Parser with LLMs 引用了 Log Parsing with Prompt-based Few-shot Learning
- DeepTraLog: Trace-Log Combined Microservice Anomaly Detection through Graph-based Deep Learning 引用了 DeepLog: Anomaly Detection and Diagnosis from System Logs through Deep Learning
- LILAC: Log Parsing using LLMs with Adaptive Parsing Cache 引用了 Log-based Anomaly Detection with Deep Learning: How Far Are We?
- LILAC: Log Parsing using LLMs with Adaptive Parsing Cache 引用了 DeepTraLog: Trace-Log Combined Microservice Anomaly Detection through Graph-based Deep Learning
- LILAC: Log Parsing using LLMs with Adaptive Parsing Cache 引用了 Log Parsing with Prompt-based Few-shot Learning
- Log Parsing with Prompt-based Few-shot Learning 引用了 On the Feasibility of Parser-based Log Compression in Large-Scale Cloud Systems
- Log Parsing with Prompt-based Few-shot Learning 引用了 Log-based Anomaly Detection with Deep Learning: How Far Are We?
- Log Parsing with Prompt-based Few-shot Learning 引用了 DeepLog: Anomaly Detection and Diagnosis from System Logs through Deep Learning
- Unlocking the Power of Numbers: Log Compression via Numeric Token Parsing 引用了 On the Feasibility of Parser-based Log Compression in Large-Scale Cloud Systems
- Unlocking the Power of Numbers: Log Compression via Numeric Token Parsing 引用了 DeepLog: Anomaly Detection and Diagnosis from System Logs through Deep Learning
- Unlocking the Power of Numbers: Log Compression via Numeric Token Parsing 引用了 Log Parsing with Prompt-based Few-shot Learning
引用它的顶会 Paper10
- LILAC: Log Parsing using LLMs with Adaptive Parsing CacheZhihan Jiang, Jinyang Liu, Zhuangbin Chen, Yichen Li 等FSE 2024 · 85 次引用
- No More Labelled Examples? An Unsupervised Log Parser with LLMsJunjie Huang, Zhihan Jiang, Zhuangbin Chen, Michael R. LyuFSE 2025 · 13 次引用
- Chimera: Harnessing Multi-Agent LLMs for Automatic Insider Threat SimulationJiongchi Yu, Xiaofei Xie, Qiang Hu, Yuhan Ma 等NDSS 2026 · 11 次引用
- Demonstration-Free: Towards More Practical Log Parsing with Large Language ModelsYi Xiao, Van-Hoang Le, Hongyu ZhangASE 2024 · 9 次引用
- Unlocking the Power of Numbers: Log Compression via Numeric Token ParsingSiyu Yu, Yifan Wu, Ying Li, Pinjia HeASE 2024 · 5 次引用
它引用的 Paper9
- DeepLog: Anomaly Detection and Diagnosis from System Logs through Deep LearningMin Du, Feifei Li, Guineng Zheng, Vivek SrikumarCCS 2017 · 1,823 次引用
- Log-based Anomaly Detection with Deep Learning: How Far Are We?Van-Hoang Le, Hongyu ZhangICSE 2022 · 212 次引用
- DeepTraLog: Trace-Log Combined Microservice Anomaly Detection through Graph-based Deep LearningChenxi Zhang, Xin Peng, Chaofeng Sha, Ke Zhang 等ICSE 2022 · 163 次引用
- Log Parsing with Prompt-based Few-shot LearningVan-Hoang Le, Hongyu ZhangICSE 2023 · 98 次引用
- On the Feasibility of Parser-based Log Compression in Large-Scale Cloud SystemsJunyu Wei, Guangyan Zhang, Yang Wang, Zhiwei Liu 等FAST 2021 · 34 次引用
相关 Paper
- LogFold: Compressing Logs with Structured Tokens and Hybrid EncodingShiwen Shan, Yintong Huo, Hongzhan Zhong, Zhining Wang 等ICSE 2026
- LogNexus: Effective Log Compression via Unified Redundancy EncodingYang Liu, Kaiming Zhang, Zhuangbin Chen, Zibin ZhengISSTA 2026
- LogDelta: Differential Encoding for Log DataSongze Li, Shaoxu Song, Zhitao ShenICDE 2026
- LogLite: Lightweight Plug-and-Play Streaming Log CompressionBenzhao Tang, Shiyu Yang, Zhitao Shen, Wenjie Zhang 等VLDB 2025
- CLP: Efficient and Scalable Search on Compressed Text LogsKirk Rodrigues, Yu Luo, Ding YuanOSDI 2021
