Cloud Native 14 min read

How LoongCollector Transforms Log Collection with High‑Performance Pipelines

LoongCollector, the 2025 evolution of iLogtail, introduces a fully redesigned pipeline architecture, hot‑reload isolation, significant CPU and memory reductions, and advanced monitoring, delivering up to 80% higher log‑collection throughput for cloud‑native environments while ensuring seamless upgrades and multi‑region fault tolerance.

Alibaba Cloud Observability
Alibaba Cloud Observability
Alibaba Cloud Observability
How LoongCollector Transforms Log Collection with High‑Performance Pipelines

Overview

LoongCollector is the next‑generation log‑collection agent that evolved from iLogtail. In 2025 it was renamed and rebuilt, delivering deep optimizations in functionality, performance, and stability for cloud‑native environments.

Historical Milestones

2013: iLogtail first released with basic file collection via inotify.

2015: Expanded to Alibaba Cloud, added high‑water‑mark queues, checkpoint, multi‑tenant support.

2017: With SLS commercialisation and ACK, added Go plugin system, container log collection, and support for metrics and traces.

2022: Open‑sourced as 1.0.0, supporting all major container runtimes and profiling data.

2024: 2.0.0 released with further improvements in usability, performance and reliability.

Architecture and Pipeline

Each collection task is represented by a pipeline consisting of an input plugin, a processor plugin and a flusher plugin. LoongCollector supports multiple pipeline combinations, e.g.

C++ Input + C++ native processor

C++ Input + SPL processor

C++ Input + Golang processor

Golang Input + Golang processor

The agent runs three dedicated runner threads (Input, Processor, Flusher) that communicate via buffered queues, providing fair scheduling and isolation.

Pipeline architecture diagram
Pipeline architecture diagram

Hot‑Reload and Isolation

Unlike the previous “Stop‑the‑World” reload, LoongCollector replaces only the pipelines that changed, keeping the rest running and minimizing impact on other teams sharing the same instance.

Performance Gains

Benchmarks show average CPU reduction of 35 % and memory reduction of 10 % compared with iLogtail. In file‑collection scenarios LoongCollector achieves up to 80 % higher throughput, and in container‑standard‑output cases performance improves 2× (containerd) to 1× (docker).

Performance comparison chart
Performance comparison chart

Monitoring and Fault Isolation

LoongCollector provides a built‑in dashboard for CPU, memory, network and pipeline latency. It isolates network‑level failures by applying adaptive AIMD throttling per AZ, project and logstore, ensuring a single region outage does not affect other destinations.

Tag Processing

Tag handling has been unified across C++ and Golang pipelines. Users can add, delete or rename tags via processor plugins, and input‑level tags are managed by each input plugin.

Seamless Upgrade Path

Existing iLogtail configurations, checkpoints and offsets are fully compatible; upgrading to LoongCollector requires no data loss and behaves like a simple restart. In Kubernetes, DaemonSet replacement is performed with affinity control to avoid downtime.

Future Directions

LoongCollector will integrate Prometheus metrics, eBPF collection and other observability sources to become a one‑agent solution for the full observability stack.

observabilityPipelinelog collection
Alibaba Cloud Observability
Written by

Alibaba Cloud Observability

Driving continuous progress in observability technology!

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.