https://github.com/hikouki/fluent-plugin-dio
:full_moon: Output filter plugin of fluentd. Convert to timestamp from date string.
https://github.com/hikouki/fluent-plugin-dio
fluentd fluentd-plugin ruby
Last synced: about 1 year ago
JSON representation
:full_moon: Output filter plugin of fluentd. Convert to timestamp from date string.
- Host: GitHub
- URL: https://github.com/hikouki/fluent-plugin-dio
- Owner: hikouki
- Created: 2017-02-10T04:40:30.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-02-13T09:54:11.000Z (over 9 years ago)
- Last Synced: 2025-02-05T07:25:40.677Z (over 1 year ago)
- Topics: fluentd, fluentd-plugin, ruby
- Language: Ruby
- Homepage:
- Size: 10.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Fluent::Plugin::Dio
[](https://travis-ci.org/hikouki/fluent-plugin-dio)
Output filter plugin of fluentd. Convert to timestamp from date string.
## Installation
Add this line to your application's Gemfile:
```ruby
gem 'fluent-plugin-dio'
```
And then execute:
$ bundle
Or install it yourself as:
$ gem install fluent-plugin-dio
## Usage
### DioFilter
Add dio filter.
```xml
@type dio
keys created_at, updated_at
```
Assuming following inputs are coming:
```javascript
{"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:
```javascript
{"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.