logstash-output-lokis 1.1.0 → 1.1.1
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/loki.rb +3 -2
- data/logstash-output-lokis.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: 66dfb9e6e55db23b51355dbfc938abd3d3a4eeb7a481ffc1e00df800602ee5e9
|
4
|
+
data.tar.gz: ca6bdd600684e53ea86d0409a7cbf6c752df53c7e9f5c6615be8ae8a7a5c2483
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4dd0022be26d21399fc404c895c8d6263d389cc4fd0081cc0c289438a01be78a4819f133400db04a11e36c3dd8125b485cc8a2ecaa6e49c265a120ca139ade15
|
7
|
+
data.tar.gz: fa27190a3680e3fddd13ce16bcfad6fac3be9843250c92888c4b5706299a0d7b7d54af3331e4e8c8f05b160c016651a0aad050a8d44c3dfd63412c0f934e87f3
|
@@ -241,8 +241,9 @@ class LogStash::Outputs::Loki < LogStash::Outputs::Base
|
|
241
241
|
req = Net::HTTP::Post.new(
|
242
242
|
@uri.request_uri
|
243
243
|
)
|
244
|
-
|
245
|
-
req.add_field('Content-Type', 'gzip')
|
244
|
+
req.add_field('Content-Type', 'application/json')
|
245
|
+
#req.add_field('Content-Type', 'gzip')
|
246
|
+
req.add_field('Content-Encoding', 'gzip')
|
246
247
|
req.add_field('X-Scope-OrgID', @tenant_id) if @tenant_id
|
247
248
|
req['User-Agent']= 'loki-logstash'
|
248
249
|
req.basic_auth(@username, @password) if @username
|