fluent-plugin-path2tag 1.0.1 → 1.0.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 +2 -2
- data/lib/fluent/plugin/out_path2tag.rb +4 -4
- data/lib/fluent/plugin/path2tag/version.rb +1 -1
- 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: 4ce7083d0a2838491533ea2e832dffbcbbe1d778
|
4
|
+
data.tar.gz: 10b2a10bf269a95bbf0213fad948be83cdbaeebe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe9220a2772ed405cacdac1125926f3c3c19468c900249b447e412b991124d87471ec9daaedc9ee9833aa98bff2f38ef26561b1765beaf358e0cafab638a653c
|
7
|
+
data.tar.gz: 56676e027e35e26a87fce7de97f03d8e2bf4773e38113df7b373664381f98690c5de0c0a2a649e4076ad4e47a4a8bc4a9e5994d53d3975faed703fcc55372da3
|
data/README.md
CHANGED
@@ -10,10 +10,10 @@ Convert uri to tag. And reformat json data.
|
|
10
10
|
$ gem install fluent-plugin-path2tag
|
11
11
|
|
12
12
|
# for td-agent (Legacy)
|
13
|
-
$ sudo /usr/lib64/fluent/ruby/bin/fluent-gem install ffluent-plugin-path2tag -v 1.0.
|
13
|
+
$ sudo /usr/lib64/fluent/ruby/bin/fluent-gem install ffluent-plugin-path2tag -v 1.0.2
|
14
14
|
|
15
15
|
# for td-agent2 (with fluentd v0.12)
|
16
|
-
$ sudo td-agent-gem install fluent-plugin-path2tag -v 1.0.
|
16
|
+
$ sudo td-agent-gem install fluent-plugin-path2tag -v 1.0.2
|
17
17
|
```
|
18
18
|
|
19
19
|
## Configuration
|
@@ -57,24 +57,24 @@ class Fluent::Path2tagOutput < Fluent::Output
|
|
57
57
|
path_key, data_key = @rewriterules[0]
|
58
58
|
|
59
59
|
unless record.has_key?(path_key)
|
60
|
-
log.warn "[path2tag] record has no path_key <#{path_key}
|
60
|
+
log.warn "[path2tag] record has no path_key <#{path_key}>, record => #{record}"
|
61
61
|
return tag, nil
|
62
62
|
end
|
63
63
|
|
64
64
|
unless record.has_key?(data_key)
|
65
|
-
log.warn "[path2tag] record has no data_key <#{data_key}
|
65
|
+
log.warn "[path2tag] record has no data_key <#{data_key}>, record => #{record}"
|
66
66
|
return tag, nil
|
67
67
|
end
|
68
68
|
|
69
69
|
if record[data_key].empty?
|
70
|
-
log.warn "[path2tag] record is empty <#{data_key}
|
70
|
+
log.warn "[path2tag] record is empty <#{data_key}>, record => #{record}"
|
71
71
|
return tag, nil
|
72
72
|
end
|
73
73
|
|
74
74
|
begin
|
75
75
|
newrecords = parse(record[data_key])
|
76
76
|
rescue => e
|
77
|
-
log.warn "[path2tag] JSON parse error
|
77
|
+
log.warn "[path2tag] JSON parse error!, record => #{record}"
|
78
78
|
return tag, nil
|
79
79
|
end
|
80
80
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-path2tag
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shota Kuwahara
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-03-
|
11
|
+
date: 2017-03-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: test-unit
|