fluent-plugin-nais 0.16.2 → 0.16.3
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_kubewatch.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: 5e7f8678bf649c35b0e2f580ffa3f6c9fc2c1cd9
|
4
|
+
data.tar.gz: 648a2e6f6f75fb06c48121c2e09330f0af849acd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 834f6ba89d46642cc6930d6d0caa68eeeb9e934b327941beebda55c604138ea38b5942fcf3a16113081d8f7a8cde278749c11af0195c3430a57259615906ee27
|
7
|
+
data.tar.gz: 7ddd8b084a8e4ddfb85cb9e0c75a8d15c93d5e0a492a2c5bda2d7b60860e554e7df98f8f3f6550943a973df565d2a7ff425c9742624db3ea2d977485478450d1
|
@@ -1,5 +1,6 @@
|
|
1
1
|
require "fluent/plugin/nais/version"
|
2
2
|
require 'fluent/plugin/filter'
|
3
|
+
require 'time'
|
3
4
|
|
4
5
|
module Fluent
|
5
6
|
module Plugin
|
@@ -45,8 +46,11 @@ module Fluent
|
|
45
46
|
end
|
46
47
|
record.delete('count')
|
47
48
|
record.delete('firstTimestamp')
|
48
|
-
record.delete('lastTimestamp')
|
49
49
|
record.delete('metadata')
|
50
|
+
timestamp = record.delete('lastTimestamp')
|
51
|
+
unless timestamp.nil?
|
52
|
+
record['@timestamp'] = Time.parse(timestamp).iso8601
|
53
|
+
end
|
50
54
|
record
|
51
55
|
end
|
52
56
|
|