← Latest papers
💻 computer science

CelerLog: Fast Log Parsing via Dynamic Routing

CelerLog is a fast and effective log parser that employs a dynamic routing mechanism to classify logs into statistical and semantic groups, processing the majority of repetitive patterns with efficient statistical methods while reserving LLM inference for complex cases, thereby achieving superior performance with significantly reduced latency and costs compared to existing state-of-the-art approaches.

Original authors: Shiwen Shan, Yintong Huo, Minxing Wang, Zhiying Wu, Yuxin Su, Zibin Zheng

Published 2026-05-26
📖 4 min read☕ Coffee break read

Original authors: Shiwen Shan, Yintong Huo, Minxing Wang, Zhiying Wu, Yuxin Su, Zibin Zheng

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are the manager of a massive, chaotic library where millions of books (log messages) are being written every second by different authors. Your job is to sort these books into neat categories so you can find specific information later. This process is called log parsing.

The paper introduces a new system called CelerLog that solves a major problem: how to sort these books quickly and cheaply without losing accuracy.

Here is how it works, using simple analogies:

The Problem: The "One-Size-Fits-All" Mistake

Previously, there were two ways to sort these books:

  1. The Fast Robot (Syntax-based): This robot is incredibly fast. It looks at the shape of the words and sorts them based on patterns. However, it's a bit dumb. If a book has a weird, complex sentence, the robot gets confused and makes mistakes.
  2. The Wise Professor (LLM-based): This is a super-smart AI professor. It can understand the meaning of any sentence, no matter how complex. It never makes a mistake. But there's a catch: The professor is slow, expensive to hire, and gets tired easily. If you ask the professor to read every single book in the library, it takes forever and costs a fortune.

The Insight: Not Every Book Needs a Professor

The authors of the paper noticed something interesting while looking at the library.

  • 98% of the books are very repetitive. They all say the same thing, just with different numbers or names (e.g., "User John logged in," "User Mary logged in," "User Bob logged in"). These are Dense Groups.
  • Only 2% of the books are unique, weird, or one-off events that don't follow a pattern. These are Sparse Groups.

The authors realized: Why hire the expensive, slow professor to read the 98% of books that are just repetitive? A fast robot could handle those easily. The professor should only be called in for the rare, confusing 2%.

The Solution: CelerLog (The Smart Traffic Cop)

CelerLog acts like a dynamic traffic cop at the entrance of the library. It uses a "Dynamic Routing" system to decide where each book goes:

  1. The Check-In (Routing): As books arrive, the traffic cop quickly scans them.

    • If the book looks like it belongs to a big, repetitive crowd (a Dense Group), the cop waves it through the "Fast Track."
    • If the book looks unique, lonely, or weird (a Sparse Group), the cop sends it to the "Slow Track" to see the Wise Professor.
  2. The Fast Track (Statistical Processor):

    • Here, a simple, super-fast statistical tool does the work. It looks at the crowd of repetitive books and says, "Okay, everyone here says 'Logged in' except for the name at the end. Let's just replace the names with a blank space."
    • Result: It's instant and free.
  3. The Slow Track (LLM Processor):

    • Here, the Wise Professor (the AI) finally gets to work. But because the traffic cop filtered out the boring stuff, the Professor only has to read a tiny fraction of the total books.
    • Result: The Professor stays happy, the cost stays low, and the complex books get sorted perfectly.

The Results: A Win-Win

The paper tested this system on 14 different "libraries" (datasets) and found that CelerLog is a game-changer:

  • Speed: It is 8 to 18 times faster than using the Professor for everything. In some cases, it's even 1.5 times faster than the old Fast Robot, because the old robot was trying to be too clever and failing.
  • Cost: It saves a massive amount of money. It uses 80% to 94% fewer "tokens" (the currency used to pay the AI) and calls the Professor 86% to 90% fewer times.
  • Accuracy: Despite being faster, it is actually more accurate than the old methods. It doesn't miss the complex details that the Fast Robot used to miss, and it doesn't make the mistakes the Professor sometimes makes when it gets overwhelmed.

Summary

CelerLog is like a smart filter. It realizes that most of your data is boring and repetitive, so it handles that part with a cheap, fast tool. It only saves the expensive, smart AI for the rare, difficult cases. This way, you get the best of both worlds: the speed of a robot and the brainpower of a professor, without paying the price for both.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →