fluent-plugin-nais 0.16.2 → 0.16.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ce07a84b1507d670d2ff3ab3b6703c94d6bd66fe
4
- data.tar.gz: 7c892cb0d6744389c32d1c8c2ce571cd02e23445
3
+ metadata.gz: 5e7f8678bf649c35b0e2f580ffa3f6c9fc2c1cd9
4
+ data.tar.gz: 648a2e6f6f75fb06c48121c2e09330f0af849acd
5
5
  SHA512:
6
- metadata.gz: 88f61aa5c742cc9df4f9d26d28e50da4b760e04a64b256362b5975624df19a8cb2976745db6233ab333cdb1bfb1b86e1333dad1c934329d2a384803513f27490
7
- data.tar.gz: 4c8f780bb824dccc1a21fc9939c26be0503f3f538ed51e494a957df13036eba7b96adf7b5825b78ecf30cb2a16b02902410b6ac71f0e26c28b120f4c6a2a5999
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
 
@@ -1,7 +1,7 @@
1
1
  module Fluent
2
2
  module Plugin
3
3
  module Nais
4
- VERSION = "0.16.2"
4
+ VERSION = "0.16.3"
5
5
  end
6
6
  end
7
7
  end
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.16.2
4
+ version: 0.16.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Terje Sannum