fluent-plugin-record-reformer 0.0.3 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/README.md +4 -1
- data/fluent-plugin-record-reformer.gemspec +1 -1
- data/lib/fluent/plugin/out_record_reformer.rb +8 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7f559864ef660d47eddb8014db068e4bde4ada84
|
4
|
+
data.tar.gz: d386239a2519be28502c088d5943ac6fa40a8271
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f4803fe2a264683ad621602819a4e646afcd94b3a22a7263344a3278df4bd8240dd41bee86b566437c831afbf7b864f69ef8beeaf62295d6967c4e01c9bf7a57
|
7
|
+
data.tar.gz: 96de88d6872141f4804c168baa526767be7cb49ab2ea14389bad1d5255bee9508b872c7c906f5e17e74023bc95303d48eaea0ea518729e3f8daf4642cf17b3b2
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -42,6 +42,8 @@ reformed.foo.bar {
|
|
42
42
|
}
|
43
43
|
```
|
44
44
|
|
45
|
+
Note that the keyword `output_tag` is reserved for the output tag. It can not be used as a record key.
|
46
|
+
|
45
47
|
### Placeholders
|
46
48
|
|
47
49
|
The keys of input json are available as placeholders. In the above example,
|
@@ -67,7 +69,8 @@ Please note that this plugin enables to execute any ruby codes. Do not allow any
|
|
67
69
|
|
68
70
|
## Relatives
|
69
71
|
|
70
|
-
|
72
|
+
I created this plugin inspired by [fluent-plugin-record-modifier](https://github.com/repeatedly/fluent-plugin-record-modifier).
|
73
|
+
I chose not to send pull requests because the implementation of this plugin became completely different with it.
|
71
74
|
|
72
75
|
## ChangeLog
|
73
76
|
|
@@ -3,7 +3,7 @@ $:.push File.expand_path('../lib', __FILE__)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |gem|
|
5
5
|
gem.name = "fluent-plugin-record-reformer"
|
6
|
-
gem.version = "0.0
|
6
|
+
gem.version = "0.1.0"
|
7
7
|
gem.authors = ["Naotoshi Seo"]
|
8
8
|
gem.email = "sonots@gmail.com"
|
9
9
|
gem.homepage = "https://github.com/sonots/fluent-plugin-record-reformer"
|
@@ -4,6 +4,14 @@ module Fluent
|
|
4
4
|
class RecordReformerOutput < Output
|
5
5
|
Fluent::Plugin.register_output('record_reformer', self)
|
6
6
|
|
7
|
+
def initialize
|
8
|
+
super
|
9
|
+
# require utilities for placeholder
|
10
|
+
require 'pathname'
|
11
|
+
require 'uri'
|
12
|
+
require 'cgi'
|
13
|
+
end
|
14
|
+
|
7
15
|
config_param :output_tag, :string
|
8
16
|
|
9
17
|
BUILTIN_CONFIGURATIONS = %W(type output_tag)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-record-reformer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Naotoshi Seo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-09-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fluentd
|