fluent-plugin-amplifier-filter 0.1.3 → 0.1.4
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ab5955dcb3adc2aea8ee884012c22a99b705a552
|
4
|
+
data.tar.gz: cdb87072dbde32a9cd47cdf36891ddb1a663f2a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0075609bff8cd075d4bc463ad32b50245921d204a93845047f4b1f22a9d683cb611af231099f7f2af2cd28bb4f20c2acefb5514e808e1b0f872cd8cdabe03b38
|
7
|
+
data.tar.gz: cb1fdbced99186b443d99342ea61cbfed5bd3be4c5f6a2645b53feb498cdbd860310a6a30a943d5291954b21520b0798c4b79b7c7f61f016eaee920f29808f7c
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
2
|
Gem::Specification.new do |gem|
|
3
3
|
gem.name = "fluent-plugin-amplifier-filter"
|
4
|
-
gem.version = "0.1.
|
4
|
+
gem.version = "0.1.4"
|
5
5
|
gem.authors = ["TAGOMORI Satoshi"]
|
6
6
|
gem.email = ["tagomoris@gmail.com"]
|
7
7
|
gem.summary = %q{plugin to re-emit messages with amplified values}
|
@@ -34,7 +34,7 @@ class Fluent::AmplifierFilterOutput < Fluent::Output
|
|
34
34
|
end
|
35
35
|
(class << self; self; end).module_eval do
|
36
36
|
define_method(:amp, amp)
|
37
|
-
end
|
37
|
+
end
|
38
38
|
|
39
39
|
if not @remove_prefix and not @add_prefix
|
40
40
|
raise Fluent::ConfigError, "missing both of remove_prefix and add_prefix"
|
@@ -60,7 +60,7 @@ class Fluent::AmplifierFilterOutput < Fluent::Output
|
|
60
60
|
if @remove_prefix and
|
61
61
|
( (tag.start_with?(@removed_prefix_string) and tag.length > @removed_length) or tag == @remove_prefix)
|
62
62
|
tag = tag[@removed_length..-1]
|
63
|
-
end
|
63
|
+
end
|
64
64
|
if @add_prefix
|
65
65
|
tag = if tag and tag.length > 0
|
66
66
|
@added_prefix_string + tag
|
@@ -78,8 +78,8 @@ class Fluent::AmplifierFilterOutput < Fluent::Output
|
|
78
78
|
next unless val
|
79
79
|
updated[key] = amp(val)
|
80
80
|
}
|
81
|
-
$log.
|
82
|
-
$log.
|
81
|
+
$log.debug "amplifier tag:#{tag} amp:#{self.method(:amp)}"
|
82
|
+
$log.debug "amplifier tag:#{tag} debug ratio:#{@ratio} updated:#{updated.to_json} record:#{record.to_json}"
|
83
83
|
if updated.size > 0
|
84
84
|
pairs.push [time, record.merge(updated)]
|
85
85
|
else
|
@@ -93,10 +93,10 @@ class Fluent::AmplifierFilterOutput < Fluent::Output
|
|
93
93
|
val = record[key]
|
94
94
|
next unless val
|
95
95
|
next unless @key_pattern.match(key)
|
96
|
-
updated[key] = amp(val)
|
96
|
+
updated[key] = amp(val)
|
97
97
|
}
|
98
|
-
$log.
|
99
|
-
$log.
|
98
|
+
$log.debug "amplifier tag:#{tag} amp:#{self.method(:amp)}"
|
99
|
+
$log.debug "amplifier tag:#{tag} debug ratio:#{@ratio} updated:#{updated.to_json} record:#{record.to_json}"
|
100
100
|
if updated.size > 0
|
101
101
|
pairs.push [time, record.merge(updated)]
|
102
102
|
else
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-amplifier-filter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- TAGOMORI Satoshi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-04-
|
11
|
+
date: 2013-04-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fluentd
|