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

rewrite_tag_filter plugin not found #247

Open
DavidHe1127 opened this issue Jan 22, 2021 · 3 comments
Open

rewrite_tag_filter plugin not found #247

DavidHe1127 opened this issue Jan 22, 2021 · 3 comments
Labels

Comments

@DavidHe1127
Copy link

Try to run fluentd container with a sample config file but receive error below when starting up the container:

2021-01-22 21:20:28 +0000 [error]: config error file="/fluentd/etc/fluentd.conf" error_class=Fluent::ConfigError error="Unknown output plugin 'rewrite_tag_filter'. Run 'gem search -rd fluent-plugin' to find plugins"

Environment

fluent/fluentd:v1.6-debian-1

Config

<source>
  @type http
  port 8080
  bind 0.0.0.0
</source>

<filter *.*>
  @type record_transformer
  enable_ruby
  <record>
    something ${record["message"]["foo"]}
    remove_keys ${record["message"]["baz"]}
  </record>
</filter>

<match *.*>
  @type rewrite_tag_filter
  <rule>
    key message
    pattern /^\[(\w+)\]/
    tag $1.${tag}
  </rule>
</match>

Any idea?

@cosmo0920
Copy link
Contributor

This is because fluent-plugin-rewrite-tag-filter is not contained this image.

If you want to build your own image, please refer to the section: https://github.com/fluent/fluentd-docker-image#how-to-build-your-own-image

@daveseff
Copy link

And when following the instructions to build a custom image doesn't work, then what?

I created a custom image, And I see:

# gem list

...
fluent-config-regexp-type (1.0.0)
fluent-plugin-rewrite-tag-filter (2.4.0)   <---- There's my plugin
fluentd (1.16.2)
...

I get:

config error file="/fluentd/etc/fluent.conf" error_class=Fluent::NotFoundPluginError error="Unknown filter plugin 'rewrite_tag_filter'. Run 'gem search -rd fluent-plugin' to find plugins"

@CarlosFdez77
Copy link

Same problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants