fluent-plugin-nais 0.10.3 → 0.10.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fluent/plugin/filter_nais_logformat.rb +5 -3
- data/lib/fluent/plugin/nais/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: efd6c4b5fc295adc8334c6756f51f15aae0a35c1
|
4
|
+
data.tar.gz: 21c0501ef698f9239ba29e8fbf046823e9102a97
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a7f5eafeeca1d7d8ce9a1f58ba50c062471efdd7f32b2ed5fb77c4201d663d48d52f2db18ec8ab999e2a1044f0c777b9e363f9dd49bb1c5624a3b4efbddebaa
|
7
|
+
data.tar.gz: 6ee4952d69bc0f9616f7aa59201952e62dfd959386394d94d82b1bd236c13effcea8fae7d8cbcaf0f147074c05ad19f9b083a5e5d320332e38b8f248c98949c6
|
@@ -24,9 +24,11 @@ module Fluent::Plugin
|
|
24
24
|
end
|
25
25
|
elsif fmt == 'accesslog_with_processing_time'
|
26
26
|
r = ::Nais::Log::Parser.parse_accesslog_with_processing_time(record['log'])
|
27
|
-
|
28
|
-
|
29
|
-
|
27
|
+
unless r.nil?
|
28
|
+
r['log'] = r.delete('request')
|
29
|
+
level = ::Nais::Log::Parser.loglevel_from_http_response(r['response_code'])
|
30
|
+
r['level'] = level unless level.nil?
|
31
|
+
end
|
30
32
|
elsif fmt == 'glog'
|
31
33
|
r = ::Nais::Log::Parser.parse_glog(record['log'])
|
32
34
|
unless r.nil?
|