Install by Ruby Gem
Last updated
Was this helpful?
Last updated
Was this helpful?
This article explains how to install Fluentd using Ruby gem
.
Please follow the to configure your OS properly.
Install Ruby >= 2.7
on your local environment. In addition, install ruby-dev
package via Package Manager to build native extension gems.
Fetch and install the fluentd
Ruby gem using gem
command:
The official RubyGems page is .
Run the following commands to verify the Fluentd installation:
The second command starts Fluentd as a daemon. If you want to stop its daemon, you can use $ pkill -f fluentd
. The last command sends Fluentd a message '{"json":"message"}' with a debug.test
tag. If the installation is successful, Fluentd will output the following message:
It is highly recommended to set up ntpd
on the node to prevent invalid timestamps in your logs.
The Fluentd gem does not come with /etc/init.d/
scripts. You should use Process Management tools such as:
systemd
You are now ready to collect real logs with Fluentd. Refer to the following tutorials on how to collect data from various sources:
Basic Configuration
Application Logs
Examples
For large deployments, you must use to avoid memory fragmentation. This is already included in the and packages.
, , , ,
, ,
If this article is incorrect or outdated, or omits critical information, please . is an open-source project under . All components are available under the Apache 2 License.