logstash-output-edge_loki 1.0.4 → 1.0.6
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/edge_loki.rb +2 -1
- data/logstash-output-edge_loki.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: 96ad0689fab60285dcec67ecf8af27c56491d6d6432df70615a4bf4e8a3b3772
|
4
|
+
data.tar.gz: 2ac60436522d4d133cb89b9af6fe67cc443092257fba60ad104cd3a2e3f613c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e696333ac21b6b22cf62631eed79052ce05e0ec2febb69371c4827273124a4f7695becf05a9d9e843c33142ddf6518a8f4e69ff6e0c2bed51b42e8d00158ff1a
|
7
|
+
data.tar.gz: 89b9e6fe0e6a3acacd8db5ca993085aad0c52e8720ea5748ad031e920b611da7e4b0b4ad0e1b52bb68025e51964cee8fd8a026ebf57343e35cc50705bb0657c1
|
@@ -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)
|
@@ -278,6 +278,7 @@ class LogStash::Outputs::EDGE_Loki < LogStash::Outputs::Base
|
|
278
278
|
@logger.info("createClient: started method")
|
279
279
|
client = OAuth2::Client.new(@client_id, @client_secret, site: @url)
|
280
280
|
client.auth_code.authorize_url(redirect_uri: @token_url)
|
281
|
+
@logger.info("createClient: started method", :client => client)
|
281
282
|
return client
|
282
283
|
end
|
283
284
|
|