LogShrink: Effective Log Compression by Leveraging Commonality and Variability of Log Data
Xiaoyun Li, Hongyu Zhang, Van-Hoang Le, Pengfei Chen
Abstract
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.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
10 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- On the Feasibility of Parser-based Log Compression in Large-Scale Cloud Systems cites DeepLog: Anomaly Detection and Diagnosis from System Logs through Deep Learning
- Demonstration-Free: Towards More Practical Log Parsing with Large Language Models cites Log-based Anomaly Detection with Deep Learning: How Far Are We?
- Demonstration-Free: Towards More Practical Log Parsing with Large Language Models cites LILAC: Log Parsing using LLMs with Adaptive Parsing Cache
- Demonstration-Free: Towards More Practical Log Parsing with Large Language Models cites Log Parsing with Prompt-based Few-shot Learning
- No More Labelled Examples? An Unsupervised Log Parser with LLMs cites DeepTraLog: Trace-Log Combined Microservice Anomaly Detection through Graph-based Deep Learning
- No More Labelled Examples? An Unsupervised Log Parser with LLMs cites LILAC: Log Parsing using LLMs with Adaptive Parsing Cache
- No More Labelled Examples? An Unsupervised Log Parser with LLMs cites Log Parsing with Prompt-based Few-shot Learning
- DeepTraLog: Trace-Log Combined Microservice Anomaly Detection through Graph-based Deep Learning cites DeepLog: Anomaly Detection and Diagnosis from System Logs through Deep Learning
- LILAC: Log Parsing using LLMs with Adaptive Parsing Cache cites Log-based Anomaly Detection with Deep Learning: How Far Are We?
- LILAC: Log Parsing using LLMs with Adaptive Parsing Cache cites DeepTraLog: Trace-Log Combined Microservice Anomaly Detection through Graph-based Deep Learning
- LILAC: Log Parsing using LLMs with Adaptive Parsing Cache cites Log Parsing with Prompt-based Few-shot Learning
- Log Parsing with Prompt-based Few-shot Learning cites On the Feasibility of Parser-based Log Compression in Large-Scale Cloud Systems
- Log Parsing with Prompt-based Few-shot Learning cites Log-based Anomaly Detection with Deep Learning: How Far Are We?
- Log Parsing with Prompt-based Few-shot Learning cites DeepLog: Anomaly Detection and Diagnosis from System Logs through Deep Learning
- Unlocking the Power of Numbers: Log Compression via Numeric Token Parsing cites On the Feasibility of Parser-based Log Compression in Large-Scale Cloud Systems
- Unlocking the Power of Numbers: Log Compression via Numeric Token Parsing cites DeepLog: Anomaly Detection and Diagnosis from System Logs through Deep Learning
- Unlocking the Power of Numbers: Log Compression via Numeric Token Parsing cites Log Parsing with Prompt-based Few-shot Learning
Cited by top-tier papers10
- LILAC: Log Parsing using LLMs with Adaptive Parsing CacheZhihan Jiang, Jinyang Liu, Zhuangbin Chen, Yichen Li et al.FSE 2024 · 85 citations
- No More Labelled Examples? An Unsupervised Log Parser with LLMsJunjie Huang, Zhihan Jiang, Zhuangbin Chen, Michael R. LyuFSE 2025 · 13 citations
- Chimera: Harnessing Multi-Agent LLMs for Automatic Insider Threat SimulationJiongchi Yu, Xiaofei Xie, Qiang Hu, Yuhan Ma et al.NDSS 2026 · 11 citations
- Demonstration-Free: Towards More Practical Log Parsing with Large Language ModelsYi Xiao, Van-Hoang Le, Hongyu ZhangASE 2024 · 9 citations
- Unlocking the Power of Numbers: Log Compression via Numeric Token ParsingSiyu Yu, Yifan Wu, Ying Li, Pinjia HeASE 2024 · 5 citations
Builds on9
- DeepLog: Anomaly Detection and Diagnosis from System Logs through Deep LearningMin Du, Feifei Li, Guineng Zheng, Vivek SrikumarCCS 2017 · 1,823 citations
- Log-based Anomaly Detection with Deep Learning: How Far Are We?Van-Hoang Le, Hongyu ZhangICSE 2022 · 212 citations
- DeepTraLog: Trace-Log Combined Microservice Anomaly Detection through Graph-based Deep LearningChenxi Zhang, Xin Peng, Chaofeng Sha, Ke Zhang et al.ICSE 2022 · 163 citations
- Log Parsing with Prompt-based Few-shot LearningVan-Hoang Le, Hongyu ZhangICSE 2023 · 98 citations
- On the Feasibility of Parser-based Log Compression in Large-Scale Cloud SystemsJunyu Wei, Guangyan Zhang, Yang Wang, Zhiwei Liu et al.FAST 2021 · 34 citations
Related papers
- LogFold: Compressing Logs with Structured Tokens and Hybrid EncodingShiwen Shan, Yintong Huo, Hongzhan Zhong, Zhining Wang et al.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 et al.VLDB 2025
- CLP: Efficient and Scalable Search on Compressed Text LogsKirk Rodrigues, Yu Luo, Ding YuanOSDI 2021
