LogFold: Compressing Logs with Structured Tokens and Hybrid Encoding

LogFold: сжатие журналов с использованием структурированных токенов и гибридного кодирования
Shiwen Shan, Yintong Huo, Hongzhan Zhong, Zhining Wang, Yuxin Su, Zibin Zheng
2026-04-12

compression ratiodelimiter skeletonshybrid encodinglog compressionstructured tokens
Logs are essential for diagnosing failures and conducting retrospective studies, leading many software organizations to retain log messages for a long time. Nevertheless, the volume of generated log data grows rapidly as software systems grow, necessitating an effective compression method. Apart from general-purpose compressors (e.g., Gzip, Bzip2), many recent studies developed log-specific compression algorithms, but they offer suboptimal performance because of (1) overlooking redundancies within certain complex tokens, and (2) lacking a fine-grained encoding strategy for diverse token types. This work uncovers a new redundancy pattern in structured tokens and proposes a new type-aware encoding strategy to improve log compression. Building on this insight, we introduce LogFold, a novel log compression method consisting of four components: a token analyzer to classifies tokens as structured, unstructured, or static types; a processor that mines recurring patterns within structured tokens based on their delimiter skeletons; a hybrid encoder that tailors data representation according to token types; and a packer that compresses the output into an archive file. Extensive experiments on 16 public log datasets demonstrate that LogFold surpasses state-of-the-art baselines, achieving average compression ratio improvements by 11.11%, with a compression speed of 9.842 MB/s. Ablation studies further indicate the importance of each component. We also conduct sensitivity analyses to verify LogFold's robustness and stability across various internal settings.
1
Experiments on 16 public log datasets show that LogFold improves average compression ratios by 11.11% over state-of-the-art baselines.
2
LogFold achieves a compression speed of 9.842 MB/s; ablation and sensitivity studies support the importance, robustness, and stability of its components.
3
LogFold combines token analysis, structured-pattern mining, hybrid encoding, and archive packing into a dedicated log-compression pipeline.
4
LogFold identifies previously overlooked redundancy patterns within structured log tokens using their delimiter skeletons.
5
The method introduces a type-aware hybrid encoding strategy tailored to structured, unstructured, and static tokens.

software system log data, including structured, unstructured, and static log tokens

redundancy patterns and type-aware hybrid encoding for improving log compression ratio, speed, robustness, and stability

Publication Details
Publication Date
2026-04-12
Journal
Publisher
ISSN
Cited by
0
Access Type
Author Information
Authors
Shiwen Shan
Yintong Huo
Hongzhan Zhong
Zhining Wang
Yuxin Su
Zibin Zheng
Explore further
Open the scid.ai AI chat with a ready-made request: it will find papers on a similar topic and help build a literature review.
Find similar papers in the chat
Make a presentation
100%