Install Vector On CentOS

This document will cover installing Vector on CentOS.

Install

The daemon deployment strategy is designed for data collection on a single host. Vector runs in the background, in its own process, collecting all data for that host. Typically data is collected from a process manager, such as Journald via Vector's journald source, but can be collected through any of Vector's sources. The following diagram demonstrates how it works.

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.

  1. Download the Vector .rpm file

    curl -O https://packages.timber.io/vector/0.9.X/vector-aarch64.rpm

    Looking for a specific version?

  2. Install the Vector .rpm package directly

    sudo rpm -i vector-aarch64.rpm
  3. Configure Vector

    Where do you want to send your data?
    Console
    cat <<-VECTORCFG > /etc/vector/vector.toml
    [sources.in]
    type = "journald" # required
    [sinks.out]
    # General
    type = "console" # required
    inputs = ["in"] # required
    # Encoding
    encoding.codec = "json" # required
    VECTORCFG
    explain this command
  4. Start Vector

    sudo systemctl start vector