项目作者: hikouki

项目描述 :
:full_moon: Output filter plugin of fluentd. Convert to timestamp from date string.
高级语言: Ruby
项目地址: git://github.com/hikouki/fluent-plugin-dio.git
创建时间: 2017-02-10T04:40:30Z
项目社区:https://github.com/hikouki/fluent-plugin-dio

开源协议:

下载


Fluent::Plugin::Dio

Build Status

Output filter plugin of fluentd. Convert to timestamp from date string.

Installation

Add this line to your application’s Gemfile:

  1. gem 'fluent-plugin-dio'

And then execute:

  1. $ bundle

Or install it yourself as:

  1. $ gem install fluent-plugin-dio

Usage

DioFilter

Add dio filter.

  1. <filter test.**>
  2. @type dio
  3. keys created_at, updated_at
  4. </filter>

Assuming following inputs are coming:

  1. {"a" => 1, "created_at" => "2011-01-02 13:14:15 UTC", "updated_at" => "2011-01-01 13:14:15 UTC"}

Then output becomes as belows:

  1. {"a" => 1, "created_at" => 1293974055, "updated_at" => 1293887655}

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/hikouki/fluent-plugin-dio.