logstash-output-scalyr 0.1.24.beta → 0.1.25.beta
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/scalyr.rb +6 -1
- data/lib/scalyr/constants.rb +1 -1
- data/logstash-output-scalyr.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5d84626fc9f17fb9cc549552722612e2620c10ead3700689cb5625715a5441bc
|
4
|
+
data.tar.gz: a49c2c03b3f97678df4a20f66ceec0ec2fdcf4fedcac732a130abe642a469057
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 015e7216df91f4bcc696038ea305936275194d87eb68f5fe5d067e704932663ab5a0cdbb8440810682964c6bfa7a9f052774065ed9fb498fc175900b77eaf161
|
7
|
+
data.tar.gz: e08e06532da18aaf597937482fdee0561ea816b09f3b77c3eee259aeaaaaececcdded5e4dbd2101aacf02018167764c8e98faa7db1c9abe76e4f1094d7fc68ca
|
@@ -190,6 +190,10 @@ class LogStash::Outputs::Scalyr < LogStash::Outputs::Base
|
|
190
190
|
@logger.warn "Maximum request buffer > 6 MB. This may result in requests being rejected by Scalyr."
|
191
191
|
end
|
192
192
|
|
193
|
+
if not @estimate_each_event_size
|
194
|
+
@logger.warn("estimate_each_event_size config option is false, this means very large batches may be rejected or partially processed by the server")
|
195
|
+
end
|
196
|
+
|
193
197
|
@dlq_writer = dlq_enabled? ? execution_context.dlq_writer : nil
|
194
198
|
|
195
199
|
@message_encoding = nil
|
@@ -829,7 +833,8 @@ class LogStash::Outputs::Scalyr < LogStash::Outputs::Base
|
|
829
833
|
|
830
834
|
serialized_request_size = serialized_body.bytesize
|
831
835
|
|
832
|
-
|
836
|
+
# We give it "buffer" since the splitting code allows for some slack and doesn't take into account top-level non-event attributes
|
837
|
+
if not @estimate_each_event_size and serialized_request_size >= @max_request_buffer + 5000
|
833
838
|
# TODO: If we end up here is estimate config opsion is false, split the request here into multiple ones
|
834
839
|
@logger.warn("Serialized request size (#{serialized_request_size}) is larger than max_request_buffer (#{max_request_buffer})!")
|
835
840
|
end
|
data/lib/scalyr/constants.rb
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
PLUGIN_VERSION = "v0.1.
|
2
|
+
PLUGIN_VERSION = "v0.1.25.beta"
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'logstash-output-scalyr'
|
3
|
-
s.version = '0.1.
|
3
|
+
s.version = '0.1.25.beta'
|
4
4
|
s.licenses = ['Apache-2.0']
|
5
5
|
s.summary = "Scalyr output plugin for Logstash"
|
6
6
|
s.description = "Sends log data collected by Logstash to Scalyr (https://www.scalyr.com)"
|