fluent-plugin-elasticsearch-timestamp-check 0.2.7 → 0.2.8

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: 507e9c8bcb7590f680c4c72c39b26a86ef9029d3
4
- data.tar.gz: c709c47aa550498ffef8ab50f8493dda0ed154a9
3
+ metadata.gz: 300d28349b60730721bbbde22a67d8ae349a8be2
4
+ data.tar.gz: '03584e93ac597b15235e92550c926c4b65da8764'
5
5
  SHA512:
6
- metadata.gz: '082a9b6262d7bdd1d0eff963c4b3d30a4e0983012a802192e5c2b8bd2a50241ac65dd2795890c3a3fdfe760624139fa28e14273142165925bc8f2fce67b95d1b'
7
- data.tar.gz: 02c0c8ce935610f5024f2a39d69670e85ef8474690454f2e5c171a027ce8b6358534662cce83068c039de9d2045ee110430ade8671d47fbf50d47301e94dc4c9
6
+ metadata.gz: 21d9cb1dd44ba3e63416d3d50939e3d086f3218e11e573b7b9f6458dfe3a4e6bc8aa61dfcbed145cff6da2562d3b3982ea9a5ab0cd8c95a3569aab998ca644af
7
+ data.tar.gz: de11655ba5c820fb6306e091cf63fd8fdad6b217685f12a4a22f40a039b848fe3f23a71742cccbe3a058efeb3589f9e8b9b0d5f56693684b28087d0b2dc9d7e6
data/README.md CHANGED
@@ -24,7 +24,7 @@ elasticsearch.
24
24
  in `@timestamp` field. In addition, a field `fluent_converted_timestamp`
25
25
  is added to the object with the same value.
26
26
 
27
- * If none of the above field exists, it will insert current time in
27
+ * If none of the above field exists, it will insert current event time in
28
28
  '%Y-%m-%dT%H:%M:%S.%L%z' format as the `@timestamp` field. A field
29
29
  `fluent_added_timestamp` is added to the object with same value.
30
30
 
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "fluent-plugin-elasticsearch-timestamp-check"
3
- spec.version = "0.2.7"
3
+ spec.version = "0.2.8"
4
4
  spec.authors = ["Richard Li"]
5
5
  spec.email = ["evilcat@wisewolfsolutions.com"]
6
6
  spec.description = %q{fluent filter plugin to ensure @timestamp is in proper format}
@@ -63,7 +63,7 @@ module Fluent::Plugin
63
63
 
64
64
  unless record['fluent_converted_timestamp']
65
65
  record['@timestamp'] = record['fluent_added_timestamp'] =
66
- Time.now.strftime(@strftime_format)
66
+ Time.at(time.is_a?(Fluent::EventTime) ? time.to_int : time).strftime(@strftime_format)
67
67
  $log.debug("Timestamp added: #{record['@timestamp']}")
68
68
  end
69
69
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-elasticsearch-timestamp-check
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.7
4
+ version: 0.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Li
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-06 00:00:00.000000000 Z
11
+ date: 2018-02-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fluentd