fluent-plugin-output-solr 0.4.11 → 0.4.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/fluent-plugin-output-solr.gemspec +1 -1
- data/lib/fluent/plugin/out_solr.rb +7 -7
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 69c8450973f1699e1a6d085914b2aff6b33336c9
|
4
|
+
data.tar.gz: 1c45581028a1e2554c9c34859af1353b2078214c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b34e96a6bf48d9c402970c54feb4ebeab5dae6a3b1671e8508cb38343d418a46e2451446cb2fd6fbaa71942129def9bae6cc80c0b13ef3c072a315ed8990e46
|
7
|
+
data.tar.gz: 7f6687e3baba7bd6c7ae7cd97367bf82757a3383cb58c322720fa69c6bf5fd056805dbfb8d3459e2ed31b7d4a284069c495b7c7983e7c00a6000b91a7ba50a78
|
@@ -117,26 +117,26 @@ module Fluent
|
|
117
117
|
|
118
118
|
if record.has_key?(@time_field) then
|
119
119
|
begin
|
120
|
-
tmp_time = Time.strptime(record[@time_field], @time_format)
|
120
|
+
tmp_time = Time.strptime(record[@time_field], @time_format).utc
|
121
121
|
if @millisecond then
|
122
|
-
record.merge!({@time_field => '%s.%03dZ' % [tmp_time.
|
122
|
+
record.merge!({@time_field => '%s.%03dZ' % [tmp_time.strftime('%FT%T'), tmp_time.usec / 1000.0]})
|
123
123
|
else
|
124
|
-
record.merge!({@time_field => tmp_time.
|
124
|
+
record.merge!({@time_field => tmp_time.strftime('%FT%TZ')})
|
125
125
|
end
|
126
126
|
rescue
|
127
127
|
tmp_time = Time.at(time).utc
|
128
128
|
if @millisecond then
|
129
|
-
record.merge!({@time_field => '%s.%03dZ' % [tmp_time.
|
129
|
+
record.merge!({@time_field => '%s.%03dZ' % [tmp_time.strftime('%FT%T'), tmp_time.usec / 1000.0]})
|
130
130
|
else
|
131
|
-
record.merge!({@time_field => tmp_time.
|
131
|
+
record.merge!({@time_field => tmp_time.strftime('%FT%TZ')})
|
132
132
|
end
|
133
133
|
end
|
134
134
|
else
|
135
135
|
tmp_time = Time.at(time).utc
|
136
136
|
if @millisecond then
|
137
|
-
record.merge!({@time_field => '%s.%03dZ' % [tmp_time.
|
137
|
+
record.merge!({@time_field => '%s.%03dZ' % [tmp_time.strftime('%FT%T'), tmp_time.usec / 1000.0]})
|
138
138
|
else
|
139
|
-
record.merge!({@time_field => tmp_time.
|
139
|
+
record.merge!({@time_field => tmp_time.strftime('%FT%TZ')})
|
140
140
|
end
|
141
141
|
end
|
142
142
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-output-solr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Minoru Osuka
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-06-
|
11
|
+
date: 2017-06-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fluentd
|