ForestZip: An Effective Parallel Parser for Log Compression
ForestZip: эффективный параллельный парсер для сжатия журналов
2023-09-22
SCID: 54.1/rwrpgrbk
Discuss with AI
Prefix-Forestcompression ratiolog compressionparallel log parsingtemplate matching
Figures from the paper
Abstract (AI)
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.
Key Findings
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.
Research Object
large-scale log streams generated by cloud-service production systems
Research Subject
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
Open access PDF
Access Type
Author Information
Download PDF
Subscribe to digest