Setting up Fluent Bit is very straightforward:
Install Fluent Bit on your server according to the guidelines.
Modify the Fluent Bit
[OUTPUT] configuration to start sending logs to your Logtail source. A basic configuration that forwards logs from all inputs to a single Logtail source could look like this:
/etc/td-agent-bit/td-agent-bit.conf[SERVICE]flush 1[INPUT]name tailpath /var/log/syslog[OUTPUT]name httpmatch *tls Onhost in.logtail.comport 443uri /header Authorization Bearer YOUR_LOGTAIL_SOURCE_TOKENheader Content-Type application/msgpackformat msgpackretry_limit 5
You can learn more about Fluent Bit configuration from the official manual.
4. Once you're happy with the configuration restart the Fluent Bit service:
sudo service td-agent-bit restart
You should start seeing your logs in Logtail 🎉