Lune

EuroSys2023Top-tier venue

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

Abstract

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

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

12 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • On the Feasibility of Parser-based Log Compression in Large-Scale Cloud Systems cites DeepLog: Anomaly Detection and Diagnosis from System Logs through Deep Learning
  • CLP: Efficient and Scalable Search on Compressed Text Logs cites 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 cites 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 cites CLP: Efficient and Scalable Search on Compressed Text Logs
  • μSlope: High Compression and Fast Search on Semi-Structured Logs cites CLP: Efficient and Scalable Search on Compressed Text Logs
  • CoLA: Model Collaboration for Log-based Anomaly Detection cites DeepLog: Anomaly Detection and Diagnosis from System Logs through Deep Learning
  • Unlocking the Power of Numbers: Log Compression via Numeric Token Parsing cites On the Feasibility of Parser-based Log Compression in Large-Scale Cloud Systems
  • Unlocking the Power of Numbers: Log Compression via Numeric Token Parsing cites CLP: Efficient and Scalable Search on Compressed Text Logs
  • Unlocking the Power of Numbers: Log Compression via Numeric Token Parsing cites DeepLog: Anomaly Detection and Diagnosis from System Logs through Deep Learning
  • Unlocking the Power of Numbers: Log Compression via Numeric Token Parsing cites LogShrink: Effective Log Compression by Leveraging Commonality and Variability of Log Data
  • LogShrink: Effective Log Compression by Leveraging Commonality and Variability of Log Data cites 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 cites CLP: Efficient and Scalable Search on Compressed Text Logs
  • LogShrink: Effective Log Compression by Leveraging Commonality and Variability of Log Data cites DeepLog: Anomaly Detection and Diagnosis from System Logs through Deep Learning
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers12

  1. LogShrink: Effective Log Compression by Leveraging Commonality and Variability of Log DataXiaoyun Li, Hongyu Zhang, Van-Hoang Le, Pengfei ChenICSE 2024 · 22 citations
  2. μSlope: High Compression and Fast Search on Semi-Structured LogsRui Wang, Devin Gibson, Kirk Rodrigues, Yu Luo et al.OSDI 2024 · 8 citations
  3. Mint: Cost-Efficient Tracing with All Requests Collection via Commonality and Variability AnalysisHaiyu Huang, Cheng Chen, Kunyi Chen, Pengfei Chen et al.ASPLOS 2025 · 6 citations
  4. Unlocking the Power of Numbers: Log Compression via Numeric Token ParsingSiyu Yu, Yifan Wu, Ying Li, Pinjia HeASE 2024 · 5 citations
  5. CoLA: Model Collaboration for Log-based Anomaly DetectionXuhang Zhu, Xiu Tang, Sai Wu, Jichen Li et al.VLDB 2025 · 2 citations

Builds on6

  1. DeepLog: Anomaly Detection and Diagnosis from System Logs through Deep LearningMin Du, Feifei Li, Guineng Zheng, Vivek SrikumarCCS 2017 · 1,823 citations
  2. On the Feasibility of Parser-based Log Compression in Large-Scale Cloud SystemsJunyu Wei, Guangyan Zhang, Yang Wang, Zhiwei Liu et al.FAST 2021 · 34 citations
  3. Combining Aggregation and Sampling (Nearly) Optimally for Approximate Query ProcessingXi Liang, Stavros Sintos, Zechao Shang, Sanjay KrishnanSIGMOD 2021 · 27 citations
  4. Building Fast and Compact Sketches for Approximately Multi-Set Multi-Membership QueryingRundong Li, Pinghui Wang, Jiongli Zhu, Junzhou Zhao et al.SIGMOD 2021 · 20 citations
  5. CLP: Efficient and Scalable Search on Compressed Text LogsKirk Rodrigues, Yu Luo, Ding YuanOSDI 2021

Related papers

  1. 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 citations
  2. LogNexus: Effective Log Compression via Unified Redundancy EncodingYang Liu, Kaiming Zhang, Zhuangbin Chen, Zibin ZhengISSTA 2026
  3. : Near-Storage Accelerator for High-Performance Log AnalyticsSeongyoung Kang, Jiyoung An, Jinpyo Kim, Sang-Woo JunMICRO 2021 · 9 citations
  4. LogDelta: Differential Encoding for Log DataSongze Li, Shaoxu Song, Zhitao ShenICDE 2026
  5. Regular Expression Indexing for Log AnalysisLing Zhang, Shaleen Deep, Jignesh M. Patel, Karthikeyan SankaralingamSIGMOD 2026
Dusk over the sea between two cliffs drawn in fine vertical lines