Available languages | en | ja |

FAQ

Table of Contents

Known Issue

I use Fluentd with Ruby 2.0 but Fluentd seems deadlocked. Why?

The rubygems of Ruby 2.0-p353 has a deadlock problem (#9224). If you use Ruby 2.0-p353, upgrading Ruby to latest patch level or Ruby 2.1 resolve this problem.

Unfortunately, Ruby 2.0 package of RHEL 7 and Ubuntu 14.04 use Ruby 2.0-p353. So don’t use Fluentd with Ruby 2.0 package on these environments. You can install specified Ruby version using rbenv.

Using td-agent is another way to avoid this problem because td-agent includes own Ruby.

Operations

I have a weird timestamp value, what happened?

The timestamps of Fluentd and its logger libraries depend on your system’s clock. It’s highly recommended that you set up NTP on your nodes so that your clocks remain synced with the correct clocks.

I installed td-agent and want to add custom plugins. How do I do it?

Please use fluent-gem as shown below.

$ /usr/lib/fluent/ruby/bin/fluent-gem install <plugin name>

For example, issue the following command if you are adding fluent-plugin-twitter.

$ /usr/lib/fluent/ruby/bin/fluent-gem install fluent-plugin-twitter

(If you can’t find fluent-gem in the above directory, try looking in /usr/lib64/fluent/ruby/bin/fluent-gem)

Now you might be wondering, “Why do I need to specify the full path?” The reason is that td-agent does not modify any host environment variable, including PATH. If you want to make all td-agent/fluentd related programs available without writing “/usr/lib/…” every time, you can add

export PATH=$PATH:/usr/lib/fluent/ruby/bin/

to your ~/.bash_profile.

If you would like to find out more about plugin management, please take a look at the Plugin Management article.

How can I match (send) an event to multiple outputs?

You can use the copy output plugin to send the same event to multiple output destinations.

Plugin Development

How do I develop a custom plugin?

Please refer to the Plugin Development Guide.

Last updated: 2014-08-21 20:26:47 UTC

Available languages | en | ja |

If this article is incorrect or outdated, or omits critical information, please let us know.

Interested in the Fluentd Newsletters?