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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5627059538ead54ddd985dd312c7e064a303797f
|
4
|
+
data.tar.gz: 770e069bf9364d43afb30bed81b378e04639fafe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 63771d71fb94a791e5720bc5fd5ddcb8d6f353cb7d8a60a93c7ad5d94b34d1320fcd8442c84d1052e49709360c624ed80d75a0f4e7eb1b65dc73d2f5fb271d6d
|
7
|
+
data.tar.gz: 8807a807b02266775cbc80c29c93790e1c5d7f5c60afb0d928479023933b347e6cff8b87cdcb614e05028f26f71b855a9703e97ec98da0eded699769535fca73
|
data/fluent-plugin-nais.gemspec
CHANGED
@@ -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.
|
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?
|
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.
|
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.
|
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.
|
40
|
+
version: 0.17.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|