fluent-plugin-rewrite-tag-filter 1.5.4 → 1.5.5
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 +7 -0
- data/.travis.yml +0 -2
- data/README.md +10 -10
- data/fluent-plugin-rewrite-tag-filter.gemspec +1 -2
- metadata +15 -39
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 3148075cdcd0365b8f4bf92553c3a256d11a7bed
|
4
|
+
data.tar.gz: 6333edea0265a01c1bb0780152968059bf360596
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 69440d05c6b0b627cf7a6631e4e5faed836541147b6c69a79c76ca29fd8f1270f6b451f640a89f6c6a406e403d09b94fd1049efaab3ae08a76dbdc474fff200f
|
7
|
+
data.tar.gz: ab578839bf76f91486bcac473d2eb64867c3895172f0883d35fab6e4804b15b2eabe179c564def161f168abffc1e60b6b6207db61fe32c27c77f68f662ffd158
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -15,8 +15,8 @@ Install with `gem`, `fluent-gem` or `td-agent-gem` command as:
|
|
15
15
|
# for system installed fluentd
|
16
16
|
$ gem install fluent-plugin-rewrite-tag-filter
|
17
17
|
|
18
|
-
# for td-agent
|
19
|
-
$ sudo /usr/lib64/fluent/ruby/bin/fluent-gem install fluent-plugin-rewrite-tag-filter
|
18
|
+
# for td-agent (Legacy)
|
19
|
+
$ sudo /usr/lib64/fluent/ruby/bin/fluent-gem install fluent-plugin-rewrite-tag-filter -v 1.5.4
|
20
20
|
|
21
21
|
# for td-agent2
|
22
22
|
$ sudo td-agent-gem install fluent-plugin-rewrite-tag-filter
|
@@ -49,7 +49,7 @@ It's a sample to exclude some static file log before split tag by domain.
|
|
49
49
|
|
50
50
|
```
|
51
51
|
<source>
|
52
|
-
type tail
|
52
|
+
@type tail
|
53
53
|
path /var/log/httpd/access_log
|
54
54
|
format apache2
|
55
55
|
time_format %d/%b/%Y:%H:%M:%S %z
|
@@ -62,7 +62,7 @@ It's a sample to exclude some static file log before split tag by domain.
|
|
62
62
|
# At rewriterule3, redirect to tag named "clear" which is not end with ".com"
|
63
63
|
# At rewriterule6, "site.$2$1" to be "site.ExampleMail" by capitalize_regex_backreference option.
|
64
64
|
<match td.apache.access>
|
65
|
-
type rewrite_tag_filter
|
65
|
+
@type rewrite_tag_filter
|
66
66
|
capitalize_regex_backreference yes
|
67
67
|
rewriterule1 path \.(gif|jpe?g|png|pdf|zip)$ clear
|
68
68
|
rewriterule2 status !^200$ clear
|
@@ -74,7 +74,7 @@ It's a sample to exclude some static file log before split tag by domain.
|
|
74
74
|
</match>
|
75
75
|
|
76
76
|
<match site.*>
|
77
|
-
type mongo
|
77
|
+
@type mongo
|
78
78
|
host localhost
|
79
79
|
database apache_access
|
80
80
|
remove_tag_prefix site
|
@@ -84,7 +84,7 @@ It's a sample to exclude some static file log before split tag by domain.
|
|
84
84
|
</match>
|
85
85
|
|
86
86
|
<match clear>
|
87
|
-
type null
|
87
|
+
@type null
|
88
88
|
</match>
|
89
89
|
```
|
90
90
|
|
@@ -151,27 +151,27 @@ It's a sample to rewrite a tag with placeholder.
|
|
151
151
|
```
|
152
152
|
# It will get "rewrited.access.ExampleMail"
|
153
153
|
<match apache.access>
|
154
|
-
type rewrite_tag_filter
|
154
|
+
@type rewrite_tag_filter
|
155
155
|
rewriterule1 domain ^(mail)\.(example)\.com$ rewrited.${tag}.$2$1
|
156
156
|
remove_tag_prefix apache
|
157
157
|
</match>
|
158
158
|
|
159
159
|
# It will get "rewrited.ExampleMail.app30-124.foo.com" when hostname is "app30-124.foo.com"
|
160
160
|
<match apache.access>
|
161
|
-
type rewrite_tag_filter
|
161
|
+
@type rewrite_tag_filter
|
162
162
|
rewriterule1 domain ^(mail)\.(example)\.com$ rewrited.$2$1.${hostname}
|
163
163
|
</match>
|
164
164
|
|
165
165
|
# It will get "rewrited.ExampleMail.app30-124" when hostname is "app30-124.foo.com"
|
166
166
|
<match apache.access>
|
167
|
-
type rewrite_tag_filter
|
167
|
+
@type rewrite_tag_filter
|
168
168
|
rewriterule1 domain ^(mail)\.(example)\.com$ rewrited.$2$1.${hostname}
|
169
169
|
hostname_command hostname -s
|
170
170
|
</match>
|
171
171
|
|
172
172
|
# It will get "rewrited.game.pool"
|
173
173
|
<match app.game.pool.activity>
|
174
|
-
type rewrite_tag_filter
|
174
|
+
@type rewrite_tag_filter
|
175
175
|
rewriterule1 domain ^.+$ rewrited.${tag_parts[1]}.${tag_parts[2]}
|
176
176
|
</match>
|
177
177
|
```
|
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "fluent-plugin-rewrite-tag-filter"
|
6
|
-
s.version = "1.5.
|
6
|
+
s.version = "1.5.5"
|
7
7
|
s.license = "Apache-2.0"
|
8
8
|
s.authors = ["Kentaro Yoshida"]
|
9
9
|
s.email = ["y.ken.studio@gmail.com"]
|
@@ -18,5 +18,4 @@ Gem::Specification.new do |s|
|
|
18
18
|
s.add_development_dependency "test-unit", ">= 3.1.0"
|
19
19
|
s.add_development_dependency "rake"
|
20
20
|
s.add_runtime_dependency "fluentd"
|
21
|
-
s.add_runtime_dependency "string-scrub", ">= 0.0.3" if RUBY_VERSION.to_f < 2.1
|
22
21
|
end
|
metadata
CHANGED
@@ -1,80 +1,57 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-rewrite-tag-filter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
5
|
-
prerelease:
|
4
|
+
version: 1.5.5
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Kentaro Yoshida
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2016-05-21 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: test-unit
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - ">="
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: 3.1.0
|
22
20
|
type: :development
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - ">="
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: 3.1.0
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: rake
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- -
|
31
|
+
- - ">="
|
36
32
|
- !ruby/object:Gem::Version
|
37
33
|
version: '0'
|
38
34
|
type: :development
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- -
|
38
|
+
- - ">="
|
44
39
|
- !ruby/object:Gem::Version
|
45
40
|
version: '0'
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: fluentd
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
|
-
- -
|
45
|
+
- - ">="
|
52
46
|
- !ruby/object:Gem::Version
|
53
47
|
version: '0'
|
54
48
|
type: :runtime
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
|
-
- -
|
52
|
+
- - ">="
|
60
53
|
- !ruby/object:Gem::Version
|
61
54
|
version: '0'
|
62
|
-
- !ruby/object:Gem::Dependency
|
63
|
-
name: string-scrub
|
64
|
-
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
|
-
requirements:
|
67
|
-
- - ! '>='
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
version: 0.0.3
|
70
|
-
type: :runtime
|
71
|
-
prerelease: false
|
72
|
-
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
|
-
requirements:
|
75
|
-
- - ! '>='
|
76
|
-
- !ruby/object:Gem::Version
|
77
|
-
version: 0.0.3
|
78
55
|
description:
|
79
56
|
email:
|
80
57
|
- y.ken.studio@gmail.com
|
@@ -82,8 +59,8 @@ executables: []
|
|
82
59
|
extensions: []
|
83
60
|
extra_rdoc_files: []
|
84
61
|
files:
|
85
|
-
- .gitignore
|
86
|
-
- .travis.yml
|
62
|
+
- ".gitignore"
|
63
|
+
- ".travis.yml"
|
87
64
|
- Gemfile
|
88
65
|
- LICENSE.txt
|
89
66
|
- README.md
|
@@ -97,27 +74,26 @@ files:
|
|
97
74
|
homepage: https://github.com/y-ken/fluent-plugin-rewrite-tag-filter
|
98
75
|
licenses:
|
99
76
|
- Apache-2.0
|
77
|
+
metadata: {}
|
100
78
|
post_install_message:
|
101
79
|
rdoc_options: []
|
102
80
|
require_paths:
|
103
81
|
- lib
|
104
82
|
required_ruby_version: !ruby/object:Gem::Requirement
|
105
|
-
none: false
|
106
83
|
requirements:
|
107
|
-
- -
|
84
|
+
- - ">="
|
108
85
|
- !ruby/object:Gem::Version
|
109
86
|
version: '0'
|
110
87
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
111
|
-
none: false
|
112
88
|
requirements:
|
113
|
-
- -
|
89
|
+
- - ">="
|
114
90
|
- !ruby/object:Gem::Version
|
115
91
|
version: '0'
|
116
92
|
requirements: []
|
117
93
|
rubyforge_project:
|
118
|
-
rubygems_version:
|
94
|
+
rubygems_version: 2.4.5
|
119
95
|
signing_key:
|
120
|
-
specification_version:
|
96
|
+
specification_version: 4
|
121
97
|
summary: Fluentd Output filter plugin. It has designed to rewrite tag like mod_rewrite.
|
122
98
|
Re-emmit a record with rewrited tag when a value matches/unmatches with the regular
|
123
99
|
expression. Also you can change a tag from apache log by domain, status-code(ex.
|