fluent-plugin-nais 0.16.3 → 0.17.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: 5e7f8678bf649c35b0e2f580ffa3f6c9fc2c1cd9
4
- data.tar.gz: 648a2e6f6f75fb06c48121c2e09330f0af849acd
3
+ metadata.gz: 5627059538ead54ddd985dd312c7e064a303797f
4
+ data.tar.gz: 770e069bf9364d43afb30bed81b378e04639fafe
5
5
  SHA512:
6
- metadata.gz: 834f6ba89d46642cc6930d6d0caa68eeeb9e934b327941beebda55c604138ea38b5942fcf3a16113081d8f7a8cde278749c11af0195c3430a57259615906ee27
7
- data.tar.gz: 7ddd8b084a8e4ddfb85cb9e0c75a8d15c93d5e0a492a2c5bda2d7b60860e554e7df98f8f3f6550943a973df565d2a7ff425c9742624db3ea2d977485478450d1
6
+ metadata.gz: 63771d71fb94a791e5720bc5fd5ddcb8d6f353cb7d8a60a93c7ad5d94b34d1320fcd8442c84d1052e49709360c624ed80d75a0f4e7eb1b65dc73d2f5fb271d6d
7
+ data.tar.gz: 8807a807b02266775cbc80c29c93790e1c5d7f5c60afb0d928479023933b347e6cff8b87cdcb614e05028f26f71b855a9703e97ec98da0eded699769535fca73
@@ -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.16.0'
24
+ spec.add_dependency 'nais-log-parser', '~> 0.17.0'
25
25
 
26
26
  spec.add_development_dependency "bundler", "~> 1.15"
27
27
  spec.add_development_dependency "rake", "~> 10.0"
@@ -29,6 +29,13 @@ module Fluent::Plugin
29
29
  level = ::Nais::Log::Parser.loglevel_from_http_response(r['response_code'])
30
30
  r['level'] = level unless level.nil?
31
31
  end
32
+ elsif fmt == 'accesslog_with_referer_useragent'
33
+ r = ::Nais::Log::Parser.parse_accesslog_with_referer_useragent(record['log'])
34
+ unless r.nil?
35
+ r['log'] = r.delete('request')
36
+ level = ::Nais::Log::Parser.loglevel_from_http_response(r['response_code'])
37
+ r['level'] = level unless level.nil?
38
+ end
32
39
  elsif fmt == 'glog'
33
40
  r = ::Nais::Log::Parser.parse_glog(record['log'])
34
41
  unless r.nil?
@@ -1,7 +1,7 @@
1
1
  module Fluent
2
2
  module Plugin
3
3
  module Nais
4
- VERSION = "0.16.3"
4
+ VERSION = "0.17.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.16.3
4
+ version: 0.17.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.16.0
33
+ version: 0.17.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.16.0
40
+ version: 0.17.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement