fluent-plugin-lm-logs 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/fluent-plugin-lm-logs.gemspec +1 -1
- data/lib/fluent/plugin/out_lm.rb +6 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6ac69aa367c60b885d377a7c818fbfcb70c8af34d86315fee0d2b18778351a92
|
4
|
+
data.tar.gz: b3cfdfbe4362b7f8d71a79d5aa34e92cc2b29c1a63b18a00b7aaa0cbe09cb14a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aae1c2c44c9cc03c7256147322eb34d14eb551ea115a5befde0aa56903afb9a98e21d5670f0c253ac6fc7ef9a0be65ebd827ccc0581bda097597de77a1a5861f
|
7
|
+
data.tar.gz: fb6d25f6b71ad3c30084840e145ec1e7c4d98d036773762babb3b9d18c8136f5f384f85f065c3758972448f861f4e5617a5d57a97efcb5e0d77f30c8a945b446
|
data/lib/fluent/plugin/out_lm.rb
CHANGED
@@ -124,7 +124,7 @@ module Fluent
|
|
124
124
|
request = Net::HTTP::Post.new(uri.request_uri)
|
125
125
|
request['authorization'] = generate_token(events)
|
126
126
|
request['Content-type'] = "application/json"
|
127
|
-
request['User-Agent'] = log_source+version_id
|
127
|
+
request['User-Agent'] = log_source + "/" + version_id
|
128
128
|
|
129
129
|
if @compression == "gzip"
|
130
130
|
request['Content-Encoding'] = "gzip"
|
@@ -135,6 +135,11 @@ module Fluent
|
|
135
135
|
request.body = body
|
136
136
|
end
|
137
137
|
|
138
|
+
if @debug
|
139
|
+
log.info "Sending the below request headers to logicmonitor:"
|
140
|
+
request.each_header {|key,value| log.info "#{key} = #{value}" }
|
141
|
+
end
|
142
|
+
|
138
143
|
resp = http.request(request)
|
139
144
|
if @debug || (!resp.kind_of? Net::HTTPSuccess)
|
140
145
|
log.info "Status code:#{resp.code} Request Id:#{resp.header['x-request-id']}"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-lm-logs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- LogicMonitor
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-04-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fluentd
|
@@ -65,7 +65,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
65
65
|
- !ruby/object:Gem::Version
|
66
66
|
version: '0'
|
67
67
|
requirements: []
|
68
|
-
rubygems_version: 3.2.
|
68
|
+
rubygems_version: 3.2.15
|
69
69
|
signing_key:
|
70
70
|
specification_version: 4
|
71
71
|
summary: LogicMonitor logs fluentd output plugin
|