Get started with logging from Docker using Vector and send your logs to logfire.
Choose your preferred Operating System to configure docker.
2. Extend your Vector config by running:
// this won't work unless you you have provided correct SOURCE_ID
wget -O ->> /etc/vector/vector.toml
https://api.logfire.ai/configuration/download/vector-toml/docker/$SOURCE_ID
Replace
$SOURCE_ID
with your docker source id. You can get your source id in your Logfire sources on clickingedit
tab.
3. Grant permissions
Run this command to allow Vector to access Docker logs:
usermod -a -G docker vector
4. Restart & Verify Vector setup
systemctl restart vector
systemctl status vector
After this step, Vector should pick up the new configuration. Ensure to monitor logs and the status of the Vector pods to confirm the successful application of the new configuration.
Check your logs in Logfire -> Live tail.
Warning: Docker version 1.15 or higher is required.
Need help? Reach out at support@logfire.ai . We’re here to assist!
Next Steps
Once you have completed the above steps, you can continue to set up Vector to gather logs and send them to logfire. Make sure to monitor the logs and ensure that the Vector setup is working seamlessly with logfire.
For more advanced setups or for using the Helm method, please refer to our detailed documentation or community forums.