fluent-plugin-elasticsearch-timestamp-check 0.1.0 → 0.1.1
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: 0480c0ee10322f50820a1a4de1a82f6e8fe6faac
|
4
|
+
data.tar.gz: 063eb28d6546a868c5e502bad790d21641a65a4c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 29d696ca7da3d21a5e35e6c6b46fe7ee3c5c571807a57b4ab24d25439c1a2eefcf3464b504a5131ed9eaf937a0aa1c16423e7fffc820df5ffa01555a46f1be46
|
7
|
+
data.tar.gz: cb50f94d8c58d7079f0eab39c80c064edbfc7e78b24dde63448c32e6ec802e2d5ca9a247fe8aa66b7a3c4ae60e28ed8ea9376750b9521ec1379ead2546310afc
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |spec|
|
2
2
|
spec.name = "fluent-plugin-elasticsearch-timestamp-check"
|
3
|
-
spec.version = "0.1.
|
3
|
+
spec.version = "0.1.1"
|
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}
|
@@ -16,7 +16,7 @@ module Fluent
|
|
16
16
|
end
|
17
17
|
|
18
18
|
def filter(tag, time, record)
|
19
|
-
existing = record['timestamp'] || record['
|
19
|
+
existing = record['@timestamp'] || record['timestamp'] || record['time']
|
20
20
|
if existing
|
21
21
|
record['@timestamp'] =
|
22
22
|
DateTime.parse(existing).strftime('%Y-%m-%dT%H:%M:%S%z')
|
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.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Richard Li
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-11-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|