Table of Contents
- Known Issue
- I have a weird timestamp value, what happened?
- I installed td-agent and want to add custom plugins. How do I do it?
- How can I match (send) an event to multiple outputs?
- Plugin Development
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.
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?
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
$ /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
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
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.
How do I develop a custom plugin?
Please refer to the Plugin Development Guide.
If this article is incorrect or outdated, or omits critical information, please let us know.