Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a new Redis input plugin #34

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fujimotos
Copy link

This adds support for fetching messages from Redis Pub/Sub. This
basically allows Fluentd to act as a data stream subscriber.

Here is an example configuration that uses this plugin:

<source>
  @type redis
  channel test
  tag redis
  <parse>
    @type none
  </parse>
</source>

Now you can start publishing events to the 'test' channel:

redis.cli> PUBLISH test aiueo
redis.cli> PUBLISH test abcabc

... which will produce events like this:

2021-09-30 09:13:58.887849790 +0000 redis.test: {"message":"aiueo"}
2021-09-30 09:13:58.979078488 +0000 redis.test: {"message":"abcabc"}

Signed-off-by: Fujimoto Seiji [email protected]

This adds support for fetching messages from Redis Pub/Sub. This
basically allows Fluentd to act as a data stream subscriber.

Here is an example configuration that uses this plugin:

    <source>
      @type redis
      channel test
      tag redis
      <parse>
        @type none
      </parse>
    </source>

Now you can start publishing events to the 'test' channel:

    redis.cli> PUBLISH test aiueo
    redis.cli> PUBLISH test abcabc

... which will produce events like this:

    2021-09-30 09:13:58.887849790 +0000 redis.test: {"message":"aiueo"}
    2021-09-30 09:13:58.979078488 +0000 redis.test: {"message":"abcabc"}

Signed-off-by: Fujimoto Seiji <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant