fluent-plugin-nais 0.7.0 → 0.7.1
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 -1
- 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: 59625fa65272a66dddddddf8c2bb9cf79f5ea114
|
4
|
+
data.tar.gz: 7c886c75a7f90d0589a51e8e61ad97c2d3db7258
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b2171af5e632ec83d9a394506aba29db28c5450b9be11759968487167906fb34c063a562518c2544e117f5f1beabd6addab09cb189014330eff3017b6ea2195f
|
7
|
+
data.tar.gz: ac7eb4f8c08e315b7faee4fdd1fd1d70b5f13d8c012b959617c8ae92311cbbad94f2c368ab90ed5af9e73a607d8ad1a03e69468db3f2dcd14cd20804e29606c3
|
@@ -37,7 +37,11 @@ module Fluent::Plugin
|
|
37
37
|
r['log'] = r.delete('request')
|
38
38
|
r['request'] = r.delete('request_id')
|
39
39
|
else
|
40
|
-
r
|
40
|
+
if r.has_key?('timestamp')
|
41
|
+
r['log'] = record['log'].sub(/^\S+ \S+ \S+ /, '')
|
42
|
+
else
|
43
|
+
r['log'] = record['log'].sub(/^\S+ /, '')
|
44
|
+
end
|
41
45
|
end
|
42
46
|
end
|
43
47
|
end
|