fluent-plugin-rewrite 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- data/fluent-plugin-rewrite.gemspec +1 -1
- data/lib/fluent/plugin/out_rewrite.rb +6 -3
- metadata +3 -2
@@ -2,8 +2,9 @@ module Fluent
|
|
2
2
|
class RewriteOutput < Output
|
3
3
|
Fluent::Plugin.register_output('rewrite', self)
|
4
4
|
|
5
|
-
config_param :remove_prefix,
|
6
|
-
config_param :add_prefix,
|
5
|
+
config_param :remove_prefix, :string, :default => nil
|
6
|
+
config_param :add_prefix, :string, :default => nil
|
7
|
+
config_param :enable_warnings, :bool, :default => false
|
7
8
|
|
8
9
|
attr_reader :rules
|
9
10
|
|
@@ -57,7 +58,9 @@ module Fluent
|
|
57
58
|
if filtered_tag && record && _tag != filtered_tag
|
58
59
|
Engine.emit(filtered_tag, time, record)
|
59
60
|
else
|
60
|
-
|
61
|
+
if @enable_warnings
|
62
|
+
$log.warn "Can not emit message because the tag(#{tag}) has not changed. Dropped record #{record}"
|
63
|
+
end
|
61
64
|
end
|
62
65
|
end
|
63
66
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-rewrite
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.10
|
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: 2013-
|
12
|
+
date: 2013-04-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
@@ -104,3 +104,4 @@ summary: Fluentd plugin to rewrite tags/values along with pattern matching and r
|
|
104
104
|
test_files:
|
105
105
|
- test/plugin/test_out_rewrite.rb
|
106
106
|
- test/test_helper.rb
|
107
|
+
has_rdoc:
|