A lightweight, ultra-fast tool for building observability pipelines
open sourceMPL-2.0self-hostablefree
Vector is an observability data pipeline written in Rust that runs as an agent on each host, a sidecar or a central aggregator, collecting logs and metrics from sources, transforming them and routing them to sinks. Transforms are written in Vector Remap Language (VRL), an expression language checked for types and unhandled errors when the configuration loads, and pipelines can be validated with vector validate, unit tested with vector test and inspected live with vector top and vector tap. It ships as a single binary with no runtime dependencies, has sinks for backends such as Grafana Loki, Elasticsearch, ClickHouse and S3, and can receive OpenTelemetry data. Vector is MPL-2.0 open source and maintained by Datadog's Community Open Source Engineering team.
Ways to install
On Kubernetes
Package managers
Problems it solves
- our log vendor bill keeps growing and I want to drop and sample noisy logs before they are shipped
- switch observability vendors without re-instrumenting every server
- send the same logs to two backends at once while we migrate between them
- replace the separate log shipper and metrics agent on every host with one small binary
- parse, enrich and redact sensitive fields from log lines before they leave our network
- turn error log lines into counters I can graph as metrics
- collect Kubernetes pod logs and journald logs and route them by team to different destinations
- unit test my log transformation rules in CI before deploying them
- see live throughput and sample events flowing through my log shipping pipeline
- a central aggregator that buffers logs to disk when the backend is down
- archive raw logs to S3 cheaply while sending a filtered subset to our search cluster
- a log forwarder that uses less memory than our Ruby or JVM based shippers
Features
- runs as a daemon agent, a sidecar or a central aggregator
- sources, transforms and sinks for logs and metrics in one pipeline
- trace support in selected components, including the OpenTelemetry source
- Vector Remap Language (VRL) for parsing, enriching and routing events, checked when the config loads
- OpenTelemetry source receiving OTLP over gRPC and HTTP
- at-least-once delivery with disk buffers and end-to-end acknowledgements
- vector validate and vector test for checking configs and unit testing transforms
- vector top and vector tap for live inspection of a running pipeline
- gRPC observability API with health endpoints
- single binary with no runtime dependencies
View 4 more
- YAML, TOML and JSON configuration
- sinks for Loki, Elasticsearch, ClickHouse, S3, Google Cloud Storage, CloudWatch Logs, Datadog and more
- Kubernetes logs, journald, Docker logs, file, Kafka, HTTP and socket sources
- Helm chart and Kubernetes manifests
Limitations
- Doesn't support exactly-once delivery: at best it delivers at least once, using disk buffers and end-to-end acknowledgements3
- Doesn't fully support traces yet: logs and metrics are stable, traces work only in selected components such as the OpenTelemetry source4
Capabilities
| Has an API | plan not known |
|---|---|
| Has a command line tool | plan not known |
Alternatives
The same job
These do what Vector does.
- OpenTelemetry Collector Vendor-agnostic way to receive, process and export telemetry data
- Cribl Stream Get the data you need, in the format you want, wherever it needs to go
- Fluentd Open source data collector for unified logging layer
- Fluent Bit Fast and lightweight telemetry agent for logs, metrics and traces
- Grafana Alloy OpenTelemetry Collector distribution with programmable pipelines
- Telegraf Open source agent for collecting metrics from infrastructure, applications, and devices