fluent-plugin-nais 0.21.0 → 0.22.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: 440512cc17696984c1e1fee5ee592e094f97de85
4
- data.tar.gz: 2c767c0447fb470b996ba2ef304b0687b0a736e2
3
+ metadata.gz: 2cf5256b74e64704c243a5f5a92bcc2ddb415480
4
+ data.tar.gz: 6a9f46dc9774b527e680c8fecd69907456cd27bb
5
5
  SHA512:
6
- metadata.gz: fb6a8d1ee5aa7aaaad96757c83efae2893646541fe4a9a506e700fcc4860d465588eddc13689dd7de61317d6335190754a5b2bb2554ab160828eb7e9caead18d
7
- data.tar.gz: 7d44389b479e33b2416cf6cbc2d96fb09566db398d5c266fb04169ab7c216df950f6e2bf15260896450db796475da6265aeb93f2a745977c941787462bb058be
6
+ metadata.gz: e74f196fca4eb91affd8f7693e8b98b5017ccf2cf831c8368f62baaf992a38a4e1528597761edb37730cafd17e641e493ba947224d614f028933bebf0ae19249
7
+ data.tar.gz: d2d42a930314639beee08196f2f979c23571932aa5193eebb23ce29ed5b8aece8e84eac429e46c334fa922b7d8367c3030737e943c853e3ff4250632922cbf78
@@ -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.20.0'
24
+ spec.add_dependency 'nais-log-parser', '>= 0.23.0'
25
25
 
26
26
  spec.add_development_dependency "bundler", "~> 1.15"
27
27
  spec.add_development_dependency "rake", "~> 10.0"
@@ -43,6 +43,11 @@ module Fluent::Plugin
43
43
  unless r.nil?
44
44
  r['log'] = r.delete('message')
45
45
  end
46
+ elsif fmt == 'logrus'
47
+ r = ::Nais::Log::Parser.parse_logrus(record['log'])
48
+ unless r.nil?
49
+ r['log'] = r.delete('msg')
50
+ end
46
51
  elsif fmt == 'glog'
47
52
  r = ::Nais::Log::Parser.parse_glog(record['log'])
48
53
  unless r.nil?
@@ -1,7 +1,7 @@
1
1
  module Fluent
2
2
  module Plugin
3
3
  module Nais
4
- VERSION = "0.21.0"
4
+ VERSION = "0.22.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.21.0
4
+ version: 0.22.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-05-23 00:00:00.000000000 Z
11
+ date: 2018-05-24 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.20.0
33
+ version: 0.23.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.20.0
40
+ version: 0.23.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement