fluent-plugin-nais 0.10.4 → 0.10.5
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 +2 -2
- 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: 7a0ced6ea64301715f1502a4c01b23c0d24e4835
|
4
|
+
data.tar.gz: 1266797a875ff32826ed331e804d5722abd8a2a4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7114222b03b1742fd7f7d95702e15c06ea78c9673d8e294f3fea90840065537feb418d8310d43651aced69e25f6f1777d5a8ecbb93806ee4bf1700dd06540d2d
|
7
|
+
data.tar.gz: cca7f1dedeff7be44669be30eca2e591f9b170e5dd14c1e1352baf7c8e0f81afc1a17c7a061d23700659ef02c812f1547a293e99c25ef100aaae03f120b11093
|
@@ -40,8 +40,8 @@ module Fluent::Plugin
|
|
40
40
|
r = ::Nais::Log::Parser.parse_influxdb(record['log'])
|
41
41
|
unless r.nil?
|
42
42
|
if r['component'] == 'httpd'
|
43
|
-
r['log'] = r.delete('request')
|
44
|
-
r['request'] = r.delete('request_id')
|
43
|
+
r['log'] = r.delete('request') unless r['request'].nil?
|
44
|
+
r['request'] = r.delete('request_id') unless r['request_id'].nil?
|
45
45
|
level = ::Nais::Log::Parser.loglevel_from_http_response(r['response_code'])
|
46
46
|
r['level'] = level unless level.nil?
|
47
47
|
else
|