fluent-plugin-elasticsearch-timestamp-check 0.2.7 → 0.2.8
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 300d28349b60730721bbbde22a67d8ae349a8be2
|
4
|
+
data.tar.gz: '03584e93ac597b15235e92550c926c4b65da8764'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
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.
|
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-
|
11
|
+
date: 2018-02-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fluentd
|