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 about this paper
Ask your agent about it.
Lune has read the top-tier papers around this one, so every answer names the papers it rests on.
Your agent calls
Lunesearch_papers
Free to start. No credit card required.
Terminal
Install the CLIlune papers get 067b3d6c-a417-46ab-87fb-8a780b037fdcRelated 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
- ELISE: A Storage Efficient Logging System Powered by Redundancy Reduction and Representation LearningHailun Ding, Shenao Yan, Juan Zhai, Shiqing MaUSENIX Security 2021 · 30 citations
