Skip to content
Redis output plugin for Fluent event collector
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
gemfiles travis: Use multiple gemfile to do CI with multiple version of Fluentd Nov 25, 2016
lib/fluent/plugin Pass chunk directly into builtin placeholders Feb 26, 2019
.gitignore first commit. Sep 28, 2011
.travis.yml Tweak Ruby versions Feb 26, 2019 Update CHANGELOG Feb 26, 2019
Gemfile Fix a typo Apr 17, 2017
VERSION metadata: Bump up version and update date Jan 5, 2017

Redis output plugin for Fluent

fluent-plugin-redis is a fluent plugin to output to redis.


fluent-plugin-redis fluentd ruby
>= 0.3.0 >= 0.14.8 >= 2.1
== 0.2.3 ~> 0.12.0 * >= 1.9
< 0.2.3 >= 0.10.0, < 2 * >= 1.9
  • May not support all future fluentd features


What you have to do is only installing like this:

gem install fluent-plugin-redis

Then fluent automatically loads the plugin installed.


<match redis.**>
  @type redis

  host localhost
  port 6379

  # database number is optional.
  db_number 0        # 0 is default
  # If requirepass is set, please specify this.
  # password hogefuga
  # Users can set '${tag}' or ${tag[0]}.${tag[1]} or ...?
  # insert_key_prefix '${tag}'
  # Users can set strftime format.
  # "%s" will be replaced into unixtime.
  # "%Y%m%d.%H%M%S" will be replaced like as 20161202.112335.
  # strftime_format "%s"
  # Allow insert key duplicate. It will work as update values.
  # allow_duplicate_key true
  # ttl 300 # If 0 or negative value is set, ttl is not set in each key.

With multi workers

fluent-plugin-redis can handle multi workers. This feature can be enabled with the following configuration:

  workers n # where n >= 2.


insert_key_prefix, strftime_format, and allow_duplicate_key are newly added config parameters.

They can use v0.3.0 or later. To use this parameters, users must update Fluentd to v0.14 or later and this plugin to v0.3.0 or later.

multi workers are newly introduced feature in Fluentd v0.14.

It can use this feature in this plugin in v0.3.3 or later.

Contributing to fluent-plugin-redis

  • Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
  • Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
  • Fork the project
  • Start a feature/bugfix branch
  • Commit and push until you are happy with your contribution
  • Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
  • Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.


Copyright (c) 2011- Yuki Nishijima


Apache License, Version 2.0

You can’t perform that action at this time.