LogDelta: Differential Encoding for Log Data
Songze Li, Shaoxu Song, Zhitao Shen
Abstract
System logs are critical for understanding the performance of various software systems. Compression is essential to efficient storage or transmission of system log data. Generalpurpose compressors like LZMA treat logs as binary data, ignoring their structure, and thus fail to achieve the best compression. The semi-structured nature of log data leads to parser-based methods, which however require extra space for storing templates. We observe that although log data exhibit high similarity, the repetitions are extremely scattered. Rather than storing the vast positions or complicated templates for short repetitions, we propose to merge them as one large difference between log records. Inspired by the differential encoding for numerical data, we propose LogDelta, a novel differential encoding method for log data. The compression task is formulated as an optimization problem to minimize the cost of differential operations from one log record to another. By replaying such differential operations, each log record can be reconstructed in decompression. While a dynamic programming algorithm is developed, we further propose a linear time approximation, delivering comparable compression ratio as the optimal solution. Experimental results on real world system logs demonstrate that LogDelta achieves superior compression ratios while maintaining comparable compression speeds.
Ask Lune
Know where this paper stands in minutes, not an afternoon.
Lune can read the top-tier papers that cite it and the ones closest to it, and tells you what it claims, what came after and where it falls short, each point cited to the paper it comes from. No skimming, no AI slop.
Related papers
- 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
- Unlocking the Power of Numbers: Log Compression via Numeric Token ParsingSiyu Yu, Yifan Wu, Ying Li, Pinjia HeASE 2024 · 5 citations
- LogNexus: Effective Log Compression via Unified Redundancy EncodingYang Liu, Kaiming Zhang, Zhuangbin Chen, Zibin ZhengISSTA 2026
- LogFold: Compressing Logs with Structured Tokens and Hybrid EncodingShiwen Shan, Yintong Huo, Hongzhan Zhong, Zhining Wang et al.ICSE 2026
- LogShrink: Effective Log Compression by Leveraging Commonality and Variability of Log DataXiaoyun Li, Hongyu Zhang, Van-Hoang Le, Pengfei ChenICSE 2024 · 22 citations
