fluent-plugin-tail-ex-asis 0.1.1 → 0.1.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 +3 -2
- data/fluent-plugin-tail-ex-asis.gemspec +1 -1
- data/lib/fluent/plugin/in_tail_ex_asis.rb +4 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 96826c06824a14383f2d8b47471d37d61423c643
|
4
|
+
data.tar.gz: c15d2b6657990a01cafbc441cfd8db096ae51e8c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ecceef8810af0d8c3c123a5a50a60dff6115e1957d600c3f4b07f5409524c4047b0c0c21a7cb6a7fa582cdfb379662431d6116b5d7494ee78ff9d19a297bef36
|
7
|
+
data.tar.gz: 2fe17aecb6a04cb197607e3f9f65c8f44493e3de9d721427f8ca4fbf064e6003d72272658e803f7ad7087ac9b210e776504afa3090629e36398c03f947c9dea7
|
data/README.md
CHANGED
@@ -7,7 +7,8 @@ A main feature of the plugin is support path parameter expansions.
|
|
7
7
|
A path parameter can be configured using glob and/or date format (strftime).
|
8
8
|
Furthermore, the plugin append file path to the configured tag.
|
9
9
|
|
10
|
-
|
10
|
+
|
11
|
+
### This repo was merged with tail-asis plugin to process the message as-is with no regex applied.
|
11
12
|
|
12
13
|
Note: In order to pass all tests, this plugin needs fluentd 0.10.26 or above.
|
13
14
|
|
@@ -35,7 +36,7 @@ Moreover, all configuration parameters support some placeholders which provided
|
|
35
36
|
Sample configuration:
|
36
37
|
|
37
38
|
<source>
|
38
|
-
type
|
39
|
+
type tail_ex_asis
|
39
40
|
path /var/log/**.log,/var/log/by-date/%Y/messages.%m/%Y%m%d
|
40
41
|
tag tail_ex.*.${hostname}
|
41
42
|
pos_file /var/tmp/fluentd.pos
|
@@ -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.2"
|
18
18
|
|
19
19
|
#requires = ['fluentd', 'fluent-mixin-config-placeholders']
|
20
20
|
#requires.each {|name| gem.add_runtime_dependency name}
|
@@ -2,8 +2,8 @@ module Fluent
|
|
2
2
|
require 'fluent/plugin/in_tail'
|
3
3
|
require 'fluent/mixin/config_placeholders'
|
4
4
|
|
5
|
-
class
|
6
|
-
Plugin.register_input('
|
5
|
+
class TailExAsisInput < TailInput
|
6
|
+
Plugin.register_input('tail_ex_asis', self)
|
7
7
|
|
8
8
|
config_param :expand_date, :bool, :default => true
|
9
9
|
config_param :read_all, :bool, :default => true
|
@@ -68,7 +68,7 @@ module Fluent
|
|
68
68
|
pe = nil
|
69
69
|
end
|
70
70
|
|
71
|
-
watcher =
|
71
|
+
watcher = TailExAsisWatcher.new(path, @rotate_wait, pe, &method(:receive_lines))
|
72
72
|
watcher.attach(@loop)
|
73
73
|
@watchers[path] = watcher
|
74
74
|
end
|
@@ -116,7 +116,7 @@ module Fluent
|
|
116
116
|
end
|
117
117
|
end
|
118
118
|
|
119
|
-
class
|
119
|
+
class TailExAsisWatcher < TailWatcher
|
120
120
|
def initialize(path, rotate_wait, pe, &receive_lines)
|
121
121
|
@parent_receive_lines = receive_lines
|
122
122
|
super(path, rotate_wait, pe, &method(:_receive_lines))
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-tail-ex-asis
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yoshihisa Tanaka
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-03-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fluentd
|