Deploying Vector

How to deploy Vector to your target environment
type: tutorialdomain: operations

What good is Vector if you can't deploy it? Fortunately, deploying Vector is straightforward. Vector is written in Rust and compiles to a single binary makign installation as easy as copying the binary to your host. Beyond that, you'll want to think strategically about how you deploy Vector. This is where Vector differs from other tools, and we'll cover that here.

Basic Concepts

Before we get into the installation tutorial, let's touch on some basic Vector deployment concepts. We've had the fortunate opportunity of working with many different companies deploying Vector, and all of their approaches can be broken down into two basic concepts: strategies and topologies.


Roles refer to the various deployment roles Vector serves to build an end-to-end data platform.

Roles refer to data collection on a single host. It's the very first thing you'll think about when deploying Vector. For example, are you operationally proficient and comfortable installing Vector directly on each of your host? Or are you an app developer only concerned with data collection for your service? Each context requires a different deployment strategy! To solve this, we've broken down deploying Vector into three basic strategies. These are best explained with diagrams, and covered in more detail in our docs.

Vector daemon deployment strategyVector daemon deployment strategy
1. Your service logs to STDOUT
STDOUT follows the 12 factor principles.
2. STDOUT is captured
STDOUT is captured by your platform.
3. Vector collects & fans-out data
Vector collects data from your platform.


Pipelines refer to the high-level network that your Vector instances create to get data from A to B -- the zoomed out perspective. This, again, is largely dependent on your environment and downstream storages. We've broken these down into three basic examples. Use these as guidelines to form your own pipelines. These are best explained with diagrams, and covered in more detail in our docs.


Now it's time to get to business! This tutorial will walk through the simple act of deploying Vector within your environment.

  1. Add the Vector repo

    curl -1sLf \
    '' \
    | sudo -E bash
  2. Install Vector

    sudo yum install vector
  3. Configure Vector

    cat <<-'VECTORCFG' > /etc/vector/vector.toml
    # Vector's API for introspection
    enabled = true
    address = ""
    # Host-level logs
    type = "journald"
    # Host-level metrics (cpu, memory, disk, etc)
    type = "host_metrics"
    # Vector's own internal metrics
    type = "internal_metrics"
    # --> Add transforms here to parse, enrich, and process data
    # print all events, replace this with your desired sink(s)
    type = "console"
    inputs = [ "logs", "host_metrics", "internal_metrics" ]
    encoding.codec = "json"
  4. Restart Vector

    sudo systemctl restart vector
  5. Observe Vector

    sudo journalctl -fu vector
    explain this command