fluent-plugin-multi-format-parser 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5de32d32f531d0d63f7fed9f5e7e829f54dc851a
4
- data.tar.gz: f67a8a64073a6d17d86266ac180b38ef1a23fd2a
3
+ metadata.gz: b3ccd298b01b05ed96a4494b153bd4ee4abd2b8d
4
+ data.tar.gz: 5b8399121244fd4f5939a7acb8c2481c6450d1ce
5
5
  SHA512:
6
- metadata.gz: c5d05feb2e59b5e8e759884480afe58ebd84e5789c12a0b2d699aa1ab81d651ec3d458f8a51e1c372c554ee2a61aece3b8646365f9bbfd91acbc7079328d2f74
7
- data.tar.gz: 7fd64fd0fcfe962f4f3fddfff224a2db7e4940ae6f139f669fc79db3e795c5ab55e8c434631790c5985b81481b7cce7c9d70a2cf5a6e7d58f472a5c41252011d
6
+ metadata.gz: fefc45c5044df050487e7189d0071ee6021c29cac9ba4383e91273a08bdbf9cea851cd29ce160eac99df3c9994a775e48eb62f0c1db63bbc157aadccd2a14f3d
7
+ data.tar.gz: 8a69a5e16b154f21961b7227ee6e55a8ee7945825a966cc2e2badf5cde8ba9b921d5f671485947795979449c095d05d50089a4df401b826ec25aa1288b20c9d9
data/README.md CHANGED
@@ -35,6 +35,25 @@ Use multiple `<pattern>` to specify multiple format.
35
35
  Available format patterns and parameters are depends on Fluentd parsers.
36
36
  See [in_tail format document](http://docs.fluentd.org/articles/in_tail) for more details.
37
37
 
38
+ ### For v0.14
39
+
40
+ This plugin handles `pattern` section manually, so v0.14's automatic parameter conversion doesn't work well.
41
+ If you want to use this plugin with v0.14, you need to use v0.14 parser syntax like below
42
+
43
+ <filter app.**>
44
+ @type parser
45
+ key_name message
46
+ <parse> # Use <parse> section for parser parameters
47
+ @type multi_format
48
+ <pattern>
49
+ format json
50
+ </pattern>
51
+ <pattern>
52
+ format none
53
+ </pattern>
54
+ </parse>
55
+ </filter>
56
+
38
57
  ### NOTE
39
58
 
40
59
  This plugin doesn't work with `multiline` parsers because parser itself doesn't store previous lines.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
@@ -17,6 +17,7 @@ module Fluent
17
17
 
18
18
  conf.elements.each { |e|
19
19
  next unless ['pattern', 'format'].include?(e.name)
20
+ next if e['format'].nil? && (e['@type'] == 'multi_format')
20
21
 
21
22
  parser = Plugin.new_parser(e['format'])
22
23
  parser.configure(e)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-multi-format-parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masahiro Nakagawa