fluent-plugin-key-picker 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +0 -3
- data/fluent-plugin-key-picker.gemspec +3 -3
- data/lib/fluent/plugin/out_key_picker.rb +1 -1
- data/test/plugin/test_out_key_picker.rb +8 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 059f2196c2506976a2d3ca04cbce701283b86045
|
4
|
+
data.tar.gz: 8cb4c68ce1f8c79b1cc14d0b2b71f8668e282079
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 399e19600f450f4a02626e188bb89e024f4cb6ea6e070525fb206ca0f57432ab5bf64248e3d7d98fe9dc20a397a8c45c93390f5ddc5eea3d7ac445e961a05720
|
7
|
+
data.tar.gz: 42cfc7d52c8f971402fa39d3dd0be6e451a4b503bf47424aad09136fe5c5dddc0f0d57c243e74ca15da26bfb2defc2770d141a1e1ccf77facfe7ed9690399744
|
data/README.md
CHANGED
@@ -10,7 +10,6 @@ Take a record and pick only the keys you want to pass
|
|
10
10
|
```
|
11
11
|
<match test.**>
|
12
12
|
type key_picker
|
13
|
-
|
14
13
|
keys foo, baz
|
15
14
|
add_tag_prefix picked.
|
16
15
|
</match>
|
@@ -35,8 +34,6 @@ Then you'll get re-emmited tags/records like so:
|
|
35
34
|
"baz" => "c"
|
36
35
|
}
|
37
36
|
```
|
38
|
-
### WARNING
|
39
|
-
Unmatched keys will DISAPPEAR, please use this with caution.
|
40
37
|
|
41
38
|
## Configuration
|
42
39
|
|
@@ -1,12 +1,12 @@
|
|
1
1
|
Gem::Specification.new do |gem|
|
2
2
|
gem.name = 'fluent-plugin-key-picker'
|
3
|
-
gem.version = '0.0.
|
3
|
+
gem.version = '0.0.2'
|
4
4
|
gem.authors = ['Carlos Donderis']
|
5
5
|
gem.email = ['cdonderis@gmail.com']
|
6
6
|
gem.homepage = 'http://github.com/cads/fluent-plugin-key-picker'
|
7
7
|
gem.description = %q{Fluentd plugin for filtering / picking desired keys.}
|
8
|
-
gem.summary = %q{
|
9
|
-
gem.license =
|
8
|
+
gem.summary = %q{Pick those keys you want to use and discard the rest}
|
9
|
+
gem.license = "Apache License, Version 2.0"
|
10
10
|
|
11
11
|
gem.files = `git ls-files`.split($\)
|
12
12
|
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
@@ -21,7 +21,7 @@ module Fluent
|
|
21
21
|
raise ConfigError, "out_key_picker: At least one of remove_tag_prefix/remove_tag_suffix/add_tag_prefix/add_tag_suffix is required to be set."
|
22
22
|
end
|
23
23
|
|
24
|
-
unless keys &&
|
24
|
+
unless keys && keys.length > 1
|
25
25
|
raise ConfigError, "keys: You need to specify the keys you want to pick."
|
26
26
|
end
|
27
27
|
|
@@ -38,6 +38,14 @@ class KeyPickerOutputTest < Test::Unit::TestCase
|
|
38
38
|
add_tag_prefix picked.
|
39
39
|
])
|
40
40
|
end
|
41
|
+
|
42
|
+
#0 length keys
|
43
|
+
assert_raise(Fluent::ConfigError) do
|
44
|
+
create_driver(%[
|
45
|
+
keys
|
46
|
+
add_tag_prefix picked.
|
47
|
+
])
|
48
|
+
end
|
41
49
|
end
|
42
50
|
|
43
51
|
def test_filter_record
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-key-picker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Carlos Donderis
|
@@ -74,10 +74,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
74
74
|
version: '0'
|
75
75
|
requirements: []
|
76
76
|
rubyforge_project:
|
77
|
-
rubygems_version: 2.
|
77
|
+
rubygems_version: 2.4.1
|
78
78
|
signing_key:
|
79
79
|
specification_version: 4
|
80
|
-
summary:
|
80
|
+
summary: Pick those keys you want to use and discard the rest
|
81
81
|
test_files:
|
82
82
|
- test/plugin/test_out_key_picker.rb
|
83
83
|
- test/test_helper.rb
|