
Depending on how you're using Fluentd, you might have to install the plugin gem using fluent-gem
instead of td-agent-gem
. Read more about Plugin Management
in the Fluentd documentation.
Setting up Fluentd is very straightforward:
Install Fluentd on your server according to the documentation .
Install and set up Fluentd input plugins to suit your needs (e.g., Syslog ).
Install the Logtail plugin:
td-agent-gem install fluent-plugin-logtail
Depending on how you're using Fluentd, you might have to install the plugin gem using fluent-gem
instead of td-agent-gem
. Read more about Plugin Management
in the Fluentd documentation.
<match *>
@type logtail
@id output_logtail
source_token YOUR_LOGTAIL_SOURCE_TOKEN
flush_interval 2 # in seconds
</match>
bash
sudo systemctl restart td-agent.service
You should start seeing your logs in Logtail 🎉Make sure to replace <YOUR_LOGTAIL_SOURCE_TOKEN>
with your own source token from Logtail.com.