logstash-output-logservice 0.15.0 → 0.16.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/logstash/outputs/logservice.rb +5 -2
- data/lib/logstash/vendor/jar-dependencies/runtime-jars/aliyun-log-producer-0.3.24-jar-with-dependencies.jar +0 -0
- data/logstash-output-logservice.gemspec +1 -1
- metadata +3 -3
- data/lib/logstash/vendor/jar-dependencies/runtime-jars/aliyun-log-producer-0.3.17-jar-with-dependencies.jar +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1d7ee23a182065c1c6aa30fc0006f12e3402507524d1f4cd6fac8bb7cf7e68a1
|
4
|
+
data.tar.gz: e6675c6ee323e7052c5b2112373e354f36aa48699601982d02dc6cb46c6bb181
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 62d1e3d250b625aa5d342741bd16c65a9c31c142f21d89764d2ff6b399ff1b166fdb2fda05cfcc40ce3a10474b58cd685b1527789820b4794424b1830e4547fe
|
7
|
+
data.tar.gz: 3828ec71944858a6ae59b00680e0edb9423fcb11af78cd17ac7c4575aadb76f3e609d5457b30057c793f17887263b855ec9771d583ffd5750b189add795fe294
|
@@ -32,7 +32,7 @@ class LogStash::Outputs::LogService < LogStash::Outputs::Base
|
|
32
32
|
# default 2*1024*1024 Bytes in a logGroup for batch send
|
33
33
|
config :max_buffer_bytes, :validate=> :number, :required=> false, :default=> 2097152
|
34
34
|
# for batch send, logGroup will emit in default 3 seconds
|
35
|
-
config :max_buffer_seconds, :validate=> :number, :required=> false, :default=>
|
35
|
+
config :max_buffer_seconds, :validate=> :number, :required=> false, :default=> 3
|
36
36
|
# the maximum log size that a single producer instance can cache is 100MB by default.
|
37
37
|
config :total_size_in_bytes, :validate=> :number, :required=> false, :default=> 104857600
|
38
38
|
|
@@ -77,7 +77,10 @@ class LogStash::Outputs::LogService < LogStash::Outputs::Base
|
|
77
77
|
time_value = @event_map['@timestamp']
|
78
78
|
@logger.warn("The time_key is nil, use @timestamp")
|
79
79
|
end
|
80
|
-
|
80
|
+
time_s = Time.parse(time_value.to_s)
|
81
|
+
@logitem.SetTime(time_s.to_i)
|
82
|
+
time_ms_part=time_s.to_datetime().strftime('%L').to_i
|
83
|
+
@logitem.SetTimeNsPart(time_ms_part*1000000)
|
81
84
|
@event_map.each do | key, value |
|
82
85
|
@key_str = key.to_s
|
83
86
|
if @key_str == '__time__'
|
Binary file
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'logstash-output-logservice'
|
3
|
-
s.version = "0.
|
3
|
+
s.version = "0.16.0"
|
4
4
|
s.licenses = ['Apache-2.0']
|
5
5
|
s.summary = "post data into logservice."
|
6
6
|
s.description = "This gem is a logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/plugin install gemname. This gem is not a stand-alone program"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-output-logservice
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.16.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- tangkai
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-12-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: logstash-core-plugin-api
|
@@ -84,7 +84,7 @@ files:
|
|
84
84
|
- LICENSE
|
85
85
|
- README.md
|
86
86
|
- lib/logstash/outputs/logservice.rb
|
87
|
-
- lib/logstash/vendor/jar-dependencies/runtime-jars/aliyun-log-producer-0.3.
|
87
|
+
- lib/logstash/vendor/jar-dependencies/runtime-jars/aliyun-log-producer-0.3.24-jar-with-dependencies.jar
|
88
88
|
- logstash-output-logservice.gemspec
|
89
89
|
- spec/outputs/logservice_spec.rb
|
90
90
|
homepage: https://www.aliyun.com/product/sls
|