Installing Vector from a pre-built archive should be a last resort if Vector cannot be installed through a supported platform or operating system. Archives are built for released versions as well as nightly builds.
Copy the download URL for the appropriate archive:
Copy the appropriate download link above and then proceed to download it:
curl -o <release-download-url> | tar -xzf --directory="vector" --strip-components=1
This will create a directory called
vector. Let's change into that directory:
ls command shows the following directory structure:
LICENSEREADME.mdbin/vector - The vector binaryconfig/vector.toml - Default Vector configurationconfig/vector.spec.toml - Full Vector configuration specificationconfig/examples/* - A variety of configuration examplesetc/systemd/vector.service - Systemd service fileetc/init.d/vector - Init.d service file
vector is in your
$PATH let's add it to your profile:
echo "export PATH=\"$(pwd)/vector/bin:\$PATH\"" >> $HOME/.profilesource $HOME/.profile
That's it! You can start vector with:
vector --config config/vector.toml
The Vector configuration file is located at:
A full spec is located at
config/vector.spec.toml and examples are located in
config/vector/examples/*. You can learn more about configuring Vector in the Configuration section.
We highly recommend creating a data directory that Vector can use:
And in your
data_dir = "/var/lib/vector"
Vector archives ship with service files in case you need them:
To install Vector into Init.d run:
cp -av etc/init.d/vector /etc/init.d
To install Vector into Systemd run:
cp -av etc/systemd/vector /etc/systemd/system
Simply follow the same installation instructions above.