fluent-plugin-nais 0.18.0 → 0.19.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: f9395588b43c57ae5d342195e7bc5e9aa604cd04
4
- data.tar.gz: a31f8e3b11a2b5e376a846dce8d406413856fe40
3
+ metadata.gz: 354ca625dfcfe2411be49962664541614c4adbf4
4
+ data.tar.gz: 38d1d4afd156b89cc480e40bcb47a00771d23cb8
5
5
  SHA512:
6
- metadata.gz: 43d44fe4f9e443c3955de3806b395f4a491945445d48634cd6120043f3c05f8ffefc73d5f3da0afffed9b6ce1a2b07d58c725488bb6b95c0c686d8d075681812
7
- data.tar.gz: 78efb32a9e6b9c3fdbd7a35b4012bec3314d5d24960e99605d77f946a75132e5df429c42b49b9f4c9fe635694045ac76bbc84b058b5a8f66f78c5c850387d979
6
+ metadata.gz: 1f4ec6c29770174b92f88b457ca8120f49bd268204690c6fbbfc09cb4b4bf14e9024b14dce594cd14e3060d0c21eb93d39b08b044a0de775488c5a09a001453d
7
+ data.tar.gz: d9bc02814c659c104079daa4e65a7b2bc0b21f9ec5bddcde4ba2ac42de3bc6c1df332a2f2738acf4efc136236314ae35765bbc16900868409d3bfa3171b2ff16
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
21
21
  spec.require_paths = ["lib"]
22
22
 
23
23
  spec.add_dependency 'fluentd', '~> 0.14'
24
- spec.add_dependency 'nais-log-parser', '~> 0.17.0'
24
+ spec.add_dependency 'nais-log-parser', '~> 0.18.0'
25
25
 
26
26
  spec.add_development_dependency "bundler", "~> 1.15"
27
27
  spec.add_development_dependency "rake", "~> 10.0"
@@ -38,6 +38,11 @@ module Fluent::Plugin
38
38
  level = ::Nais::Log::Parser.loglevel_from_http_response(r['response_code'])
39
39
  r['level'] = level unless level.nil?
40
40
  end
41
+ elsif fmt == 'capnslog'
42
+ r = ::Nais::Log::Parser.parse_capnslog(record['log'])
43
+ unless r.nil?
44
+ r['log'] = r.delete('message')
45
+ end
41
46
  elsif fmt == 'glog'
42
47
  r = ::Nais::Log::Parser.parse_glog(record['log'])
43
48
  unless r.nil?
@@ -1,7 +1,7 @@
1
1
  module Fluent
2
2
  module Plugin
3
3
  module Nais
4
- VERSION = "0.18.0"
4
+ VERSION = "0.19.0"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-nais
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.18.0
4
+ version: 0.19.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Terje Sannum
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.17.0
33
+ version: 0.18.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.17.0
40
+ version: 0.18.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement