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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a962ab26aa24ec0b5d52fd974d270ab4a31d5b75
4
- data.tar.gz: ac7c9ffd2c91de379bfc54f1dd3eacf2f40fb24b
3
+ metadata.gz: 4ce7083d0a2838491533ea2e832dffbcbbe1d778
4
+ data.tar.gz: 10b2a10bf269a95bbf0213fad948be83cdbaeebe
5
5
  SHA512:
6
- metadata.gz: 8956663b1d886c1a9fb6a500d5c133f6b5b3dac0aae25a9d049ab9565631fb84dbfcdf9570535696f90c668ccbc48fb27871348174eb61c636d486fdbcf0de08
7
- data.tar.gz: 3c49c6bbaef94488c9fdfd7cab02caffb1393e2a17cb92ef8314862d7813c3b817d5f2b3b7f6cd29b5c5f6375cc3a99d889cecf4794143a0065b6cffd7c1d165
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.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.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
 
@@ -1,7 +1,7 @@
1
1
  module Fluent
2
2
  module Plugin
3
3
  module Path2tag
4
- VERSION = "1.0.1"
4
+ VERSION = "1.0.2"
5
5
  end
6
6
  end
7
7
  end
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.1
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-29 00:00:00.000000000 Z
11
+ date: 2017-03-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: test-unit