Tagged articles
2 articles
Page 1 of 1
Alibaba Cloud Observability
Alibaba Cloud Observability
Dec 16, 2024 · Cloud Native

Why Enabling Line‑Start Regex Slows Logtail and How to Speed It Up

This article examines why Logtail’s performance drops when line‑start regular expressions are used for multi‑line logs, explains the underlying boost::regex_match behavior, and demonstrates how switching to a prefix‑only regex or boost::regex_search can boost collection speed by up to seven times.

Performance Testingboost::regexlogtail
0 likes · 9 min read
Why Enabling Line‑Start Regex Slows Logtail and How to Speed It Up
Alibaba Cloud Developer
Alibaba Cloud Developer
Dec 3, 2024 · Operations

How to Boost Logtail Multiline Log Collection Speed by Up to 7×

This article investigates why enabling line‑prefix regex for multiline logs slows Logtail down, explains the underlying regex matching mechanism, and demonstrates how switching from boost::regex_match to boost::regex_search with proper flags can dramatically improve collection throughput, achieving a seven‑fold speed increase.

boost::regexlog collectionlogtail
0 likes · 10 min read
How to Boost Logtail Multiline Log Collection Speed by Up to 7×