fluent-plugin-nais 0.27.0 → 0.28.0

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: dd84ced158b3d117025b16819bb284cfd98989eb
4
- data.tar.gz: 2000ec358a82a1091573635d99b847c153393397
3
+ metadata.gz: 7d2a2abf522b3a760db8d8719830d98259a629f3
4
+ data.tar.gz: e0f579aa8c402518105cbd9304636a44afdbf1ea
5
5
  SHA512:
6
- metadata.gz: 65d0b4415efd2e413f919db81ddb1beac9cf8535c825dad0b824056d19dbe9c13d9cbf7784e100630d1ba4a554c1767c9c97e78e6ba5eb925f01cbc27e04463d
7
- data.tar.gz: b9b3c4344962d468ff13f1d2279084c314950ed3bc261131dcbbb40a350f8b9dd7de5e558969a1b1dc3895956d17d2045ff14e14a9a5ac43de5588727e04be96
6
+ metadata.gz: 15bd22b281ef9da26fc1094549473645f9e30cc8f63603ce5923dd9e6af17e437539006cd195dd3b36120fa336ba223cb2c8ff2b9d52ea3ab9af6f9da9d34343
7
+ data.tar.gz: 18ddf5a7c81d6bb30d07a2d642feccd359171bc916a54a983752082ad304669fbdf6af78f69baf23e503cc57f14e4e60d25c9737188bebca1cbdb277864e6e46
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
21
21
  spec.require_paths = ["lib"]
22
22
 
23
23
  spec.add_dependency 'fluentd', '~> 1.1'
24
- spec.add_dependency 'nais-log-parser', '>= 0.26.0'
24
+ spec.add_dependency 'nais-log-parser', '>= 0.28.0'
25
25
 
26
26
  spec.add_development_dependency "bundler", "~> 1.15"
27
27
  spec.add_development_dependency "rake", "~> 10.0"
@@ -53,6 +53,11 @@ module Fluent::Plugin
53
53
  unless r.nil?
54
54
  r['log'] = r.delete('msg')
55
55
  end
56
+ elsif fmt == 'simple'
57
+ r = ::Nais::Log::Parser.parse_simple(record['log'])
58
+ unless r.nil?
59
+ r['log'] = r.delete('message')
60
+ end
56
61
  elsif fmt == 'glog'
57
62
  r = ::Nais::Log::Parser.parse_glog(record['log'])
58
63
  unless r.nil?
@@ -1,7 +1,7 @@
1
1
  module Fluent
2
2
  module Plugin
3
3
  module Nais
4
- VERSION = "0.27.0"
4
+ VERSION = "0.28.0"
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-nais
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.27.0
4
+ version: 0.28.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Terje Sannum
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-06-19 00:00:00.000000000 Z
11
+ date: 2018-08-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fluentd
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 0.26.0
33
+ version: 0.28.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: 0.26.0
40
+ version: 0.28.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement