fluent-plugin-http-record-modifier 0.0.1 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "fluent-plugin-http-record-modifier"
|
7
|
-
spec.version = "0.0.
|
7
|
+
spec.version = "0.0.3"
|
8
8
|
spec.authors = ["Augusto Nishi"]
|
9
9
|
spec.email = ["augusto.nishi@gmail.com"]
|
10
10
|
spec.summary = %q{fluentd filter plugin for modifing record based on a HTTP request}
|
@@ -25,6 +25,7 @@ module Fluent
|
|
25
25
|
config_param :cache, :bool, :default => true
|
26
26
|
config_param :expire, :integer, :default => 600 #10 min
|
27
27
|
config_param :renew_time_key, :string, :default => nil
|
28
|
+
config_param :remove_time_key, :bool, :default => true
|
28
29
|
|
29
30
|
def configure(conf)
|
30
31
|
super
|
@@ -91,6 +92,9 @@ module Fluent
|
|
91
92
|
new_record = reform(time, record, placeholders, body)
|
92
93
|
if @renew_time_key && new_record.has_key?(@renew_time_key)
|
93
94
|
time = new_record[@renew_time_key].to_i
|
95
|
+
if @remove_time_key
|
96
|
+
new_record.delete(@renew_time_key)
|
97
|
+
end
|
94
98
|
end
|
95
99
|
new_es.add(time, new_record)
|
96
100
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-http-record-modifier
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-09-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|