fluent-plugin-lm-logs 0.0.12 → 1.0.0
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/README.md +2 -2
- data/fluent-plugin-lm-logs.gemspec +1 -1
- data/lib/fluent/plugin/out_lm.rb +5 -0
- 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: a22de1423e4cac56363b99b31828c5add123ac4f843d4aeae4112aab02c4b6b4
|
4
|
+
data.tar.gz: e35849d3c43ef4f83fdeecae137b2d4e38f5c69ec52a7bf147191ac46773e61c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f34bab74bbf201ca0af3ff2de35307560f5bb79a37b9ea549b5627f421c7214ea2a5ab7304efe6ddc54f774af161fa594aed8a6c4ce75b9dfb38f2eb2a852788
|
7
|
+
data.tar.gz: 14341d2be42d2d7530cc964178f514a530adb3c8d3679ff60ab6cdef653f83eaf38f70b68bb1578a7393f7bd6172c63f9185623eb7acf450f4db343ca2f0abfb
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
|
2
2
|
[](http://badge.fury.io/rb/fluent-plugin-lm-logs)
|
3
|
-
# lm-logs-fluentd
|
3
|
+
# lm-logs-fluentd
|
4
4
|
This output plugin sends Fluentd records to the configured LogicMonitor account.
|
5
5
|
|
6
6
|
## Prerequisites
|
@@ -68,4 +68,4 @@ See the [LogicMonitor Helm repository](https://github.com/logicmonitor/k8s-helm-
|
|
68
68
|
| `access_key` | LM API Token access key. |
|
69
69
|
| `flush_interval` | Defines the time in seconds to wait before sending batches of logs to LogicMonitor. Default is `60s`. |
|
70
70
|
| `debug` | When `true`, logs more information to the fluentd console. |
|
71
|
-
| `force_encoding` | Specify charset when logs contains invalid utf-8 characters. |
|
71
|
+
| `force_encoding` | Specify charset when logs contains invalid utf-8 characters. |
|
data/lib/fluent/plugin/out_lm.rb
CHANGED
@@ -31,6 +31,10 @@ module Fluent
|
|
31
31
|
|
32
32
|
config_param :compression, :string, :default => ""
|
33
33
|
|
34
|
+
config_param :log_source, :string, :default => "lm-logs-fluentd"
|
35
|
+
|
36
|
+
config_param :version_id, :string, :default => "version_id"
|
37
|
+
|
34
38
|
# This method is called before starting.
|
35
39
|
# 'conf' is a Hash that includes configuration parameters.
|
36
40
|
# If the configuration is invalid, raise Fluent::ConfigError.
|
@@ -120,6 +124,7 @@ module Fluent
|
|
120
124
|
request = Net::HTTP::Post.new(uri.request_uri)
|
121
125
|
request['authorization'] = generate_token(events)
|
122
126
|
request['Content-type'] = "application/json"
|
127
|
+
request['User-Agent'] = log_source+version_id
|
123
128
|
|
124
129
|
if @compression == "gzip"
|
125
130
|
request['Content-Encoding'] = "gzip"
|
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: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- LogicMonitor
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-03-31 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.
|
68
|
+
rubygems_version: 3.2.3
|
69
69
|
signing_key:
|
70
70
|
specification_version: 4
|
71
71
|
summary: LogicMonitor logs fluentd output plugin
|