[Paper Review] DeLog: An Efficient Log Compression Framework with Pattern Signature Synthesis
DeLog challenges the assumed link between parsing accuracy and compression; it introduces a single-pass pattern signature synthesis to form homogeneous, compressible token groups, achieving state-of-the-art results on public and production logs.
Parser-based log compression, which separates static templates from dynamic variables, is a promising approach to exploit the unique structure of log data. However, its performance on complex production logs is often unsatisfactory. This performance gap coincides with a known degradation in the accuracy of its core log parsing component on such data, motivating our investigation into a foundational yet unverified question: does higher parsing accuracy necessarily lead to better compression ratio? To answer this, we conduct the first empirical study quantifying this relationship and find that a higher parsing accuracy does not guarantee a better compression ratio. Instead, our findings reveal that compression ratio is dictated by achieving effective pattern-based grouping and encoding, i.e., the partitioning of tokens into low entropy, highly compressible groups. Guided by this insight, we design DeLog, a novel log compressor that implements a Pattern Signature Synthesis mechanism to achieve efficient pattern-based grouping. On 16 public and 10 production datasets, DeLog achieves state-of-the-art compression ratio and speed.
Motivation & Objective
- Questioning whether higher log parsing accuracy improves compression ratio.
- Developing a compression framework that prioritizes pattern-based grouping over parsing accuracy.
- Designing a single-pass token feature synthesis and pattern signature mechanism.
- Delivering a fast decompression-focused variant (DeLog-L) for practical use.
- Evaluating DeLog on public and production datasets to benchmark compression ratio and speed.
Proposed method
- Perform a one-pass scan to build a Dynamic Feature Pool capturing intrinsic token structure and external semantic context.
- Synthesize Pattern Signatures from selected features to classify tokens into pattern-based groups.
- Encode groups with tailored techniques to maximize compression (e.g., delta/elastic for numeric streams, dictionary for alphanumeric).
- Merge similarly encoded token groups into blocks and archive with a pluggable general-purpose compressor.
- Provide DeLog-L by omitting regex matching for IPs and timestamps to boost decompression speed.
- Describe a decompression process that reverses compression in parallel on data chunks.
Experimental results
Research questions
- RQ1Does higher log parsing accuracy guarantee a higher compression ratio?
- RQ2What token properties and grouping strategies yield the best compression performance?
- RQ3Can pattern-based grouping outperform traditional parsing-centric approaches on modern production logs?
- RQ4How effective is DeLog at achieving high compression while maintaining acceptable speed on public and production data?
- RQ5What is the impact of a fast decompression variant (DeLog-L) on overall usability?
Key findings
- Higher parsing accuracy does not reliably correlate with better compression ratios across datasets.
- Compression gains arise from creating homogeneous, pattern-based streams rather than parsing accuracy alone.
- Dynamic Feature Pool and Pattern Signature Synthesis enable effective grouping based on intrinsic structure and external context.
- On 16 public and 10 production datasets, DeLog achieves state-of-the-art compression ratios and faster compression speeds than baselines.
- DeLog-L achieves decompression throughput significantly faster than baselines, with comparable compression ratios to the standard DeLog.
- DeLog/open-sourced implementation provides practical tooling for researchers and practitioners.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.