No commit activity in last 3 years
No release in over 3 years
The compatibility monkey patch to use regexp type
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.16
> 10.0

Runtime

< 2, > 1.0.0
 Project Readme

fluent-config-regexp-type

Build Status

Fluentd 1.2.0 supports regexp type in config_param. This gem backports regexp type for config_param.

Installation

Add this line to your application's Gemfile:

gem 'fluent-config-regexp-type'

And then execute:

$ bundle

Or install it yourself as:

$ gem install fluent-config-regexp-type

Usage

require "fluent/plugin/output"
# Load this library's monkey patch
require "fluent/config/regexp_type"

class Fluent::Plugin::SampleOutput < Fluent::Plugin::Output
  Fluent::Plugin.register_output('rewrite_tag_filter', self)
  
  config_param :pattern, :regexp
  
  def process(tag, es)
    # ...
  end
end

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/okkez/fluent-config-regexp-type.

License

Apache License, Version 2.0