Make sure to replace <YOUR_LOGTAIL_SOURCE_TOKEN>
with your own source token from Logtail.com.
Explore documentation
Logging with Apache2 and Logtail
You can use Vector to collect logs from your Apache2 webserver. The installation and configuration process is the following:
- Install Vector on your server
- Download Vector configuration for your source:
wget -O ->> /etc/vector/vector.toml \
https://logtail.com/vector-toml/apache2/<YOUR_LOGTAIL_SOURCE_TOKEN>
- Restart Vector
systemctl restart vector
- That's all 🎉