ForestZip: An Effective Parallel Parser for Log Compression

ForestZip: эффективный параллельный парсер для сжатия журналов
Yuezhou Zhou, Yuxin Su
2023-09-22

Prefix-Forestcompression ratiolog compressionparallel log parsingtemplate matching
Nowadays, cloud services generate a significant amount of log streams. Storing these log streams consumes a large amount of disk space and leads to high costs. Traditional compression tools and algorithms work well for small-scale text processing but are not applicable to large-scale log data generated by production systems. Existing log-oriented compression algorithms achieve data compression by extracting invariant log structures, relying on log templates obtained from log parsing. However, existing log parsing methods are not sufficiently adaptive and versatile to ensure high accuracy on all types of datasets. Manual design of regular expressions or fine-tuning of hyperparameters is required to achieve optimal performance. We propose a log parsing and compression method that is applicable to versatile log streams, where each log entry can be independently extracted and subsequently compressed without domain knowledge or parameter tuning. Specifically, we construct a Prefix-Forest to represent the structure of log messages and minimize the impact of noise in log files. Prefix-Forest divides the logs into multiple partitions, parses each partition independently, and generates a prefix tree for each partition. The templates can be used in the ForestZip. ForestZip separates logs into templates and parameters a prefix forest based on template matching to achieve more efficient compression. We have implemented Prefix-Forest and ForestZip on both representative and widely used log datasets as well as log datasets that have not been explored in other papers. ForestZip's compression ratio is 1.23 to 2.14 times higher than Logzip's compression ratio, and it is 1.89 to 8.58 times higher than gzip's compression ratio. The compression speed is 1.51 to 8.4 times faster than Logzip's compression speed. Furthermore, both Prefix-Forest and ForestZip are designed for high parallelization and only incur negligible overhead.
1
ForestZip achieves compression ratios 1.23–2.14 times higher than Logzip and 1.89–8.58 times higher than gzip across evaluated datasets.
2
ForestZip compresses logs 1.51–8.4 times faster than Logzip, while Prefix-Forest and ForestZip support high parallelization with negligible overhead.
3
ForestZip provides domain-independent log parsing and compression without manual regular expressions or hyperparameter tuning.
4
ForestZip separates log entries into templates and parameters through prefix-forest template matching for efficient compression.
5
Prefix-Forest partitions log streams, parses partitions independently, and uses prefix trees to reduce noise effects while enabling parallel processing.

large-scale log streams generated by cloud-service production systems

adaptive log parsing and parallel compression performance, including compression ratio, speed, scalability, and robustness to log noise without domain knowledge or parameter tuning

Publication Details
Publication Date
2023-09-22
Journal
Publisher
ISSN
Cited by
0
Access Type
Author Information
Authors
Yuezhou Zhou
Yuxin Su
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%