fluent-plugin-lm-logs 0.0.8 → 0.0.9
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 +2 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cd3e7b9db6e1987cb6c973f5f2158a38cced85cd91f674ab431556212a821ca1
|
4
|
+
data.tar.gz: 18788379b54ac12b84b1bfa5b3f0d6aa5b0ea61d7e2c59386d36bf581b9c6565
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0c4777a3d6c39163d779ec794c26d9792a191ee3ed9730043698dc68000b61ea5e81bf8bf0e7c24f7851d4a99cdc1eef6fe22b0ccd335299bc93bea481b77b23
|
7
|
+
data.tar.gz: e230f2badade41a1126ecc9ea73c0c0aacf62920f41fbcbb063d1ba7dbdbba9a051b4d886b239916d9a3d836f2c54aeb024aebf2107c8f30dbff460a7d86dbc5
|
data/lib/fluent/plugin/out_lm.rb
CHANGED
@@ -93,10 +93,9 @@ module Fluent
|
|
93
93
|
url = "https://#{@company_name}.logicmonitor.com/rest/log/ingest"
|
94
94
|
body = events.to_json
|
95
95
|
uri = URI.parse(url)
|
96
|
-
|
97
|
-
log.info "Sending #{events.length} events to logic monitor at #{url}"
|
98
96
|
|
99
97
|
if @debug
|
98
|
+
log.info "Sending #{events.length} events to logic monitor at #{url}"
|
100
99
|
log.info "Request json #{body}"
|
101
100
|
end
|
102
101
|
|
@@ -110,8 +109,7 @@ module Fluent
|
|
110
109
|
|
111
110
|
resp = http.request(request)
|
112
111
|
if @debug || (!resp.kind_of? Net::HTTPSuccess)
|
113
|
-
log.info "Status code
|
114
|
-
log.info "Request Id #{resp.header['x-request-id']}"
|
112
|
+
log.info "Status code:#{resp.code} Request Id:#{resp.header['x-request-id']}"
|
115
113
|
end
|
116
114
|
end
|
117
115
|
|
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: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Logic Monitor
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-09-
|
11
|
+
date: 2020-09-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fluentd
|