Vector

Vector

Vector is a lightweight and ultra-fast tool for building observability pipelines. It has built-in support for shipping logs to Axiom through the axiom sink.

Installation

Vector can be installed on Linux, Windows, and MacOS. Vist the Vector documentation to install Vector.

Configuration

Sending data to Axiom with Vector is very straightforward using the axiom sink. you only need your dataset name and Ingest Token.

In the example below we configure Vector to read and collect metrics from StatsD aggregator and send StatsD metrics to the Axiom sink.

First, you'll need to create vector configuration file, vector.toml

Common Configuration

[sources.my_source_id]
type = "statsd"

[sinks.axiom]
inputs = ["my_source_id"]
type = "axiom"
token = "xaat-1234"
dataset = "vector-dev"

Advanced Configuration

Optionally, you can also specify the url of your deployment and org_id.

[sinks.my_sink_id]
type = "axiom"
inputs = [ "my-source-or-transform-id" ]
token = "xxxx"
dataset = "vector.dev"
url = "https://cloud.axiom.co"
org_id = "xxxx"
  • The url will be the deployment url https://cloud.axiom.co and org_id is the credentials of your org vector-wu9j

  • DATASET: is the name of your dataset. When logs are sent from your vector it is stored in a Dataset on Axiom.

See creating a dataset for more

  • TOKEN: is used to ingest or query data to your dataset. API token can be generated from settings on Axiom dashboard.

See creating an API token for more


You can checkout the advanced configuration on Batch, Buffer configuration, and Encoding on Vector Documentation

Was this page helpful?