Install Vector on CentOS
CentOS is a Linux distribution that is functionally compatible with its upstream source, Red Hat Enterprise Linux. This page will cover installing and managing Vector on the CentOS operating system.
Install
- Agent Role
- Aggregator Role
The agent role is designed to collect all data on
a single host. Vector runs as a background process
and interfaces with a host-level APIs for data
collection. By default, Vector will collect logs
from Journald via Vector's
journald
source and
metrics via the host_metrics
source,
but it is recommended to adjust your pipeline as
necessary using Vector's sources,
transforms, and
sinks.
Add the Vector repo
curl -1sLf \'https://repositories.timber.io/public/vector/cfg/setup/bash.rpm.sh' \| sudo -E bashInstall Vector
sudo yum install vectorConfigure Vector
noneRestart Vector
sudo systemctl restart vectorObserve Vector
- Logs
- Metrics
sudo journalctl -fu vectorexplain this command
Deployment
Vector is an end-to-end observability data pipeline designed to deploy under various roles. You mix and match these roles to create topologies. The intent is to make Vector as flexible as possible, allowing you to fluidly integrate Vector into your infrastructure over time. The deployment section demonstrates common Vector pipelines:
Administration
Start
sudo systemctl start vector
Stop
sudo systemctl stop vector
Reload
systemctl kill -s HUP --kill-who=main vector.service
Restart
sudo systemctl restart vector
Observe
- Logs
- Metrics
sudo journalctl -fu vector
Upgrade
sudo yum upgrade vector
Uninstall
sudo yum remove vector