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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b0bb3e1fa2c186f90e1abb53d263621a7f9a59c8af69acb288133bd5c9f92d4a
4
- data.tar.gz: 8d1f51eb419826ea7f3e32979d5635fedbf3cd02ab9815d07e536e086d4972e3
3
+ metadata.gz: 1d7ee23a182065c1c6aa30fc0006f12e3402507524d1f4cd6fac8bb7cf7e68a1
4
+ data.tar.gz: e6675c6ee323e7052c5b2112373e354f36aa48699601982d02dc6cb46c6bb181
5
5
  SHA512:
6
- metadata.gz: 30fc3c1789a4995761958cd82f402533e92e51716b71a8a8da06ccfba720eb6a15055de295f97f44d988755d2b585b599a2a199fe1cee865da1c6de7eb31f14a
7
- data.tar.gz: c35a79edaf9733f5164739be49bf682bb80bab26b5736e276b5a9cc781712198d890c242f32301ed56c1005c68a88dec94f96e60f525e033a05f644cf246e1e2
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=> 2
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
- @logitem.SetTime(Time.parse(time_value.to_s).to_i)
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__'
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-output-logservice'
3
- s.version = "0.15.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.15.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: 2023-11-15 00:00:00.000000000 Z
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.17-jar-with-dependencies.jar
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