LogGrep: Fast and Cheap Cloud Log Storage by Exploiting both Static and Runtime Patterns
Junyu Wei, Guangyan Zhang, Junchao Chen, Yang Wang, Weimin Zheng, Tingtao Sun, Jiesheng Wu, Jiangwei Jiang
摘要
In cloud systems, near-line logs are mainly used for debugging, which means they prefer a low query latency for a better user experience, and like any other logs, they also prefer a low overall cost including storage cost to store compressed logs and computation cost to compress logs and execute queries.
This paper proposes LogGrep, the first log compression and query tool that structurizes and organizes log data properly in fine-grained units by exploiting both static and runtime patterns. It first parses logs into variable vectors by exploiting static patterns and then extracts runtime pattern(s) automatically within each variable vector with a novel extraction method. Based on these runtime patterns, LogGrep further decomposes the variable vectors into fine-grained units called "Capsules" and stamps each Capsule with a summary of its values. During the query process, LogGrep can avoid decompressing and scanning Capsules that cannot possibly match the keywords, with the help of the extracted runtime patterns and the Capsule stamps.
We evaluate LogGrep on 21 types of logs from the production environment of Alibaba Cloud, and 16 types of logs from the public datasets. The results show that LogGrep can reduce query latency and overall cost by an order of magnitude compared to state-of-the-art works. Such results have
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 12 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- On the Feasibility of Parser-based Log Compression in Large-Scale Cloud Systems 引用了 DeepLog: Anomaly Detection and Diagnosis from System Logs through Deep Learning
- CLP: Efficient and Scalable Search on Compressed Text Logs 引用了 On the Feasibility of Parser-based Log Compression in Large-Scale Cloud Systems
- Mint: Cost-Efficient Tracing with All Requests Collection via Commonality and Variability Analysis 引用了 On the Feasibility of Parser-based Log Compression in Large-Scale Cloud Systems
- Mint: Cost-Efficient Tracing with All Requests Collection via Commonality and Variability Analysis 引用了 CLP: Efficient and Scalable Search on Compressed Text Logs
- μSlope: High Compression and Fast Search on Semi-Structured Logs 引用了 CLP: Efficient and Scalable Search on Compressed Text Logs
- CoLA: Model Collaboration for Log-based Anomaly Detection 引用了 DeepLog: Anomaly Detection and Diagnosis from System Logs through Deep Learning
- Unlocking the Power of Numbers: Log Compression via Numeric Token Parsing 引用了 On the Feasibility of Parser-based Log Compression in Large-Scale Cloud Systems
- Unlocking the Power of Numbers: Log Compression via Numeric Token Parsing 引用了 CLP: Efficient and Scalable Search on Compressed Text Logs
- Unlocking the Power of Numbers: Log Compression via Numeric Token Parsing 引用了 DeepLog: Anomaly Detection and Diagnosis from System Logs through Deep Learning
- Unlocking the Power of Numbers: Log Compression via Numeric Token Parsing 引用了 LogShrink: Effective Log Compression by Leveraging Commonality and Variability of Log Data
- LogShrink: Effective Log Compression by Leveraging Commonality and Variability of Log Data 引用了 On the Feasibility of Parser-based Log Compression in Large-Scale Cloud Systems
- LogShrink: Effective Log Compression by Leveraging Commonality and Variability of Log Data 引用了 CLP: Efficient and Scalable Search on Compressed Text Logs
- LogShrink: Effective Log Compression by Leveraging Commonality and Variability of Log Data 引用了 DeepLog: Anomaly Detection and Diagnosis from System Logs through Deep Learning
引用它的顶会 Paper12
- LogShrink: Effective Log Compression by Leveraging Commonality and Variability of Log DataXiaoyun Li, Hongyu Zhang, Van-Hoang Le, Pengfei ChenICSE 2024 · 22 次引用
- μSlope: High Compression and Fast Search on Semi-Structured LogsRui Wang, Devin Gibson, Kirk Rodrigues, Yu Luo 等OSDI 2024 · 8 次引用
- Mint: Cost-Efficient Tracing with All Requests Collection via Commonality and Variability AnalysisHaiyu Huang, Cheng Chen, Kunyi Chen, Pengfei Chen 等ASPLOS 2025 · 6 次引用
- Unlocking the Power of Numbers: Log Compression via Numeric Token ParsingSiyu Yu, Yifan Wu, Ying Li, Pinjia HeASE 2024 · 5 次引用
- CoLA: Model Collaboration for Log-based Anomaly DetectionXuhang Zhu, Xiu Tang, Sai Wu, Jichen Li 等VLDB 2025 · 2 次引用
它引用的 Paper6
- DeepLog: Anomaly Detection and Diagnosis from System Logs through Deep LearningMin Du, Feifei Li, Guineng Zheng, Vivek SrikumarCCS 2017 · 1,823 次引用
- On the Feasibility of Parser-based Log Compression in Large-Scale Cloud SystemsJunyu Wei, Guangyan Zhang, Yang Wang, Zhiwei Liu 等FAST 2021 · 34 次引用
- Combining Aggregation and Sampling (Nearly) Optimally for Approximate Query ProcessingXi Liang, Stavros Sintos, Zechao Shang, Sanjay KrishnanSIGMOD 2021 · 27 次引用
- Building Fast and Compact Sketches for Approximately Multi-Set Multi-Membership QueryingRundong Li, Pinghui Wang, Jiongli Zhu, Junzhou Zhao 等SIGMOD 2021 · 20 次引用
- CLP: Efficient and Scalable Search on Compressed Text LogsKirk Rodrigues, Yu Luo, Ding YuanOSDI 2021
相关 Paper
- LogCrisp: Fast Aggregated Analysis on Large-scale Compressed Logs by Enabling Two-Phase Pattern Extraction and Vectorized QueriesJunyu Wei, Guangyan Zhang, Junchao Chen, Qi ZhouUSENIX ATC 2025 · 2 次引用
- LogNexus: Effective Log Compression via Unified Redundancy EncodingYang Liu, Kaiming Zhang, Zhuangbin Chen, Zibin ZhengISSTA 2026
- : Near-Storage Accelerator for High-Performance Log AnalyticsSeongyoung Kang, Jiyoung An, Jinpyo Kim, Sang-Woo JunMICRO 2021 · 9 次引用
- LogDelta: Differential Encoding for Log DataSongze Li, Shaoxu Song, Zhitao ShenICDE 2026
- Regular Expression Indexing for Log AnalysisLing Zhang, Shaleen Deep, Jignesh M. Patel, Karthikeyan SankaralingamSIGMOD 2026
