logstash-output-edge_loki 1.0.4 → 1.0.5

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: 4187b11e7fe8b7f4d5a672882c182be74ff14871e812d6de192f11243a995401
4
- data.tar.gz: 7ab41d25c52eeb293bf3fd381417c842b80e6b3030a5071cbad542b69defdcd1
3
+ metadata.gz: 566d8ecb5467df002d8472b81050203bf545b61bab5d62eee95e97360515d99d
4
+ data.tar.gz: 404c178ce114082bf0c345f238cad7ea956d78f210d8928747aee4c9a4f1140f
5
5
  SHA512:
6
- metadata.gz: 30360d62e5784535e782c98b5a5b4d9c476f8fd568928a44aaf819689f2541f15e543ea85f08097a8722c10030df2167fd370dd21a84cb23293309b30d61f6bf
7
- data.tar.gz: 7501c3ecf89dc2f2180548111c70b87b1acb686708f383033672dcb8370b58781f2cdabbe80745c484b64749b8f82ea7efdc86f2ecda73b5e7cd8f2495ef72aa
6
+ metadata.gz: 189f31a68e1791ad9dce43de4cb9a5106ae95a8b20bfd63ae9dbf867f241eea7c78d6511eee90684850aa06ca9dc41fbdb75293e77f6ea48093f7e40734a4693
7
+ data.tar.gz: 4c041143bb13e7c0466311f01b01f98ef796e80900091d9170857928aa0298f305b3cdfdeae14095b35663255f563c456f17799943ce1837482765e1cb806334
@@ -106,7 +106,6 @@ class LogStash::Outputs::EDGE_Loki < LogStash::Outputs::Base
106
106
  @mutex.synchronize do
107
107
  if !add_entry_to_batch(e)
108
108
  @logger.debug("Max batch_size is reached. Sending batch to loki")
109
- createClient()
110
109
  send(@batch)
111
110
  @batch = Batch.new(e)
112
111
  end
@@ -225,6 +224,7 @@ class LogStash::Outputs::EDGE_Loki < LogStash::Outputs::Base
225
224
 
226
225
  def send(batch)
227
226
  @logger.info("send: started method")
227
+ createClient()
228
228
  payload = batch.to_json
229
229
  res = loki_http_request(payload)
230
230
  if res.is_a?(Net::HTTPSuccess)
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-output-edge_loki'
3
- s.version = '1.0.4'
3
+ s.version = '1.0.5'
4
4
  s.authors = ['Britto Prabhu']
5
5
  s.email = ['britto.prabhu@apmterminals.com']
6
6
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-output-edge_loki
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Britto Prabhu