fluent-plugin-tail-ex-asis 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/fluent-plugin-tail-ex-asis.gemspec +1 -1
- data/lib/fluent/plugin/in_tail_ex_asis.rb +14 -12
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1ff86105ce4ec4d3140233f997dbea4f2d04e3e7
|
4
|
+
data.tar.gz: 2c767d61e9d7025394a3afce0f255d265f73afb5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 01f983b24a0083c0948cda0ef9ee7e9b8d1b7eabf1d6fa82b74c8921751e4aa54cd0b5ee2d0bf1bbb5decb0aa3826e49de705b16cd10eee2e1fc82d9a8dc9732
|
7
|
+
data.tar.gz: a2b77cab79e3698f2e94a9696bf3ec1216ca788b8cd5f1dd9ef9a79b2b18dd9c0a8a7fda14e550da8782a970d3160cdc1c422e98a38e0212648127a8dbdc8868
|
@@ -14,7 +14,7 @@ Gem::Specification.new do |gem|
|
|
14
14
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
15
15
|
gem.name = "fluent-plugin-tail-ex-asis"
|
16
16
|
gem.require_paths = ["lib"]
|
17
|
-
gem.version = "0.1.
|
17
|
+
gem.version = "0.1.4"
|
18
18
|
|
19
19
|
#requires = ['fluentd', 'fluent-mixin-config-placeholders']
|
20
20
|
#requires.each {|name| gem.add_runtime_dependency name}
|
@@ -8,7 +8,8 @@ module Fluent
|
|
8
8
|
config_param :expand_date, :bool, :default => true
|
9
9
|
config_param :read_all, :bool, :default => true
|
10
10
|
config_param :refresh_interval, :integer, :default => 3600
|
11
|
-
|
11
|
+
config_param :asis_key, :string, :default => 'message'
|
12
|
+
include Configurable
|
12
13
|
include Fluent::Mixin::ConfigPlaceholders
|
13
14
|
|
14
15
|
def initialize
|
@@ -16,9 +17,19 @@ module Fluent
|
|
16
17
|
@ready = false
|
17
18
|
@parser = nil
|
18
19
|
end
|
19
|
-
|
20
|
+
class AsisParser
|
21
|
+
include Configurable
|
22
|
+
|
23
|
+
config_param :asis_key, :string, :default => 'message'
|
24
|
+
|
25
|
+
def parse(text)
|
26
|
+
record = {}
|
27
|
+
record[@asis_key] = text
|
28
|
+
return Engine.now, record
|
29
|
+
end
|
30
|
+
end
|
20
31
|
def configure_parser(conf)
|
21
|
-
@parser = AsisParser.new
|
32
|
+
@parser = TailExAsisInput::AsisParser.new
|
22
33
|
@parser.configure(conf)
|
23
34
|
end
|
24
35
|
|
@@ -146,14 +157,5 @@ module Fluent
|
|
146
157
|
$log.info "stop following of #{@path}"
|
147
158
|
end
|
148
159
|
end
|
149
|
-
class AsisParser
|
150
|
-
include Configurable
|
151
|
-
config_param :asis_key, :string, :default => 'message'
|
152
|
-
def parse(text)
|
153
|
-
record = {}
|
154
|
-
record[@asis_key] = text
|
155
|
-
return Engine.now, record
|
156
|
-
end
|
157
|
-
end
|
158
160
|
end
|
159
161
|
end
|