This document will cover installing Vector on NixOS.
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
journald source, but can be collected
through any of Vector's sources.
The following diagram demonstrates how it works.
Install Vectornix-env --file https://github.com/NixOS/nixpkgs/archive/master.tar.gz --install --attr vectorexplain this command
Configure Vectorcat <<-VECTORCFG > /etc/vector/vector.toml[sources.in]type = "journald" # required[sinks.out]# Encodingencoding.codec = "json" # required# Generalinputs = ["in"] # requiredtype = "console" # requiredVECTORCFGexplain this command
Start Vectorvector --config /etc/vector/vector.tomlexplain this command