logstash-output-sumologic 1.2.1 → 1.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bac8ea0f42696fc64e13aac561ca08a18adce05b424b201e5c55c11e7e7432a4
4
- data.tar.gz: f5d3fd83235d5055d6753757bdd2e691e4de374179b2ef1925e8a2e704120f0a
3
+ metadata.gz: b6f148933e50f3fad54125d1e006def5f8515add3a030d4e163aca083e6d0c6d
4
+ data.tar.gz: f1bcdaa22d833c71ac6b6779993427afd500d798417f7f33a498f150367b2f47
5
5
  SHA512:
6
- metadata.gz: 9e1b55bfb6262583b96e633b3551c51f2ff911f53d1209fae5f91f969a3685c64776af459a08dae6a019c54a5a99b076e36ea1b37658770ced7af4cc90e5e5b4
7
- data.tar.gz: 3671fd5fdc158f55ae0b7d7a84ca923c3454429c35c0540c2f5f349bb4120c78297aeb2dfdba61638b087f76b9f2be6eb9ca902f7c2617886326d5afaf3af8e2
6
+ metadata.gz: 580d1c927da3234976e7c71beea83dcffe5e8dabb2e495f50197f91b8ac156e57740d33433c13a985d332542b2ae38613a3e3167adbe23c3ee3ad4ca2a91452f
7
+ data.tar.gz: be8464e519361f94ee835c93440ebfc9cb1b169b81cc62a477118753ec048a3742896a112fd82cc9123a8b864be756e7ec1114fcc725b5fa03bee370ba13248f
@@ -1,5 +1,9 @@
1
1
  # Change Log
2
2
 
3
+ ## 1.2.2
4
+
5
+ - Bug fix: memory leak when using `%{@json}` in format
6
+
3
7
  ## 1.2.1
4
8
 
5
9
  - Bug fix on plug-in logging and samples
data/README.md CHANGED
@@ -5,10 +5,6 @@
5
5
  This is an output plugin for [Logstash](https://github.com/elastic/logstash).
6
6
  It is fully free and fully open source. The license is Apache 2.0, meaning you are pretty much free to use it however you want in whatever way.
7
7
 
8
- | TLS Deprecation Notice |
9
- | --- |
10
- | In keeping with industry standard security best practices, as of May 31, 2018, the Sumo Logic service will only support TLS version 1.2 going forward. Verify that all connections to Sumo Logic endpoints are made from software that supports TLS 1.2. |
11
-
12
8
  ## Getting Started
13
9
 
14
10
  This guide is for the users just want to download the binary and make the plugin work. For the developer, please refer to the [Developer Guide](DEVELOPER.md)
@@ -155,3 +151,8 @@ If your Sumo Logic account supports metrics feature, you can enable the stats mo
155
151
  | `total_response_success` | Total number of accepted(200) acknowledged by Sumo Logic server
156
152
 
157
153
  **NOTE:** The data points will consume DPM quota
154
+
155
+
156
+ ### TLS 1.2 Requirement
157
+
158
+ Sumo Logic only accepts connections from clients using TLS version 1.2 or greater. To utilize the content of this repo, ensure that it's running in an execution environment that is configured to use TLS 1.2 or greater.
@@ -128,12 +128,17 @@ module LogStash; module Outputs; class SumoLogic;
128
128
  end # def expand_hash
129
129
 
130
130
  def apply_template(template, event)
131
- if template.include? JSON_PLACEHOLDER
131
+ if template == JSON_PLACEHOLDER
132
+ hash = event2hash(event)
133
+ LogStash::Json.dump(hash)
134
+ elsif template.include? JSON_PLACEHOLDER
135
+ result = event.sprintf(template)
132
136
  hash = event2hash(event)
133
137
  dump = LogStash::Json.dump(hash)
134
- template = template.gsub(JSON_PLACEHOLDER) { dump }
138
+ result.gsub(JSON_PLACEHOLDER) { dump }
139
+ else
140
+ event.sprintf(template)
135
141
  end
136
- event.sprintf(template)
137
142
  end # def expand
138
143
 
139
144
  def get_metrics_name(event, name)
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-output-sumologic'
3
- s.version = '1.2.1'
3
+ s.version = '1.2.2'
4
4
  s.licenses = ['Apache-2.0']
5
5
  s.summary = 'Deliever the log to Sumo Logic cloud service.'
6
6
  s.description = 'This gem is a Logstash output plugin to deliver the log or metrics to Sumo Logic cloud service. Go to https://github.com/SumoLogic/logstash-output-sumologic for getting help, reporting issues, etc.'
@@ -69,14 +69,13 @@ describe LogStash::Outputs::SumoLogic::PayloadBuilder do
69
69
  "format" => "%{host} %{@json}",
70
70
  "json_mapping" => {
71
71
  "foo" => "%{foo}",
72
- "bar" => "%{bar}",
73
- "%{foo}" => "%{bar}"
72
+ "bar" => "%{bar}"
74
73
  })
75
74
  }
76
75
  let(:event) { LogStash::Event.new("host" => "myHost", "foo" => "fancy", "bar" => 24) }
77
76
 
78
77
  specify {
79
- expect(result).to eq("myHost {\"foo\":\"fancy\",\"bar\":\"24\",\"fancy\":\"24\"}")
78
+ expect(result).to eq("myHost {\"foo\":\"fancy\",\"bar\":\"24\"}")
80
79
  }
81
80
 
82
81
  end # context
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-output-sumologic
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sumo Logic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-08 00:00:00.000000000 Z
11
+ date: 2018-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: manticore
@@ -145,8 +145,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
145
145
  - !ruby/object:Gem::Version
146
146
  version: '0'
147
147
  requirements: []
148
- rubyforge_project:
149
- rubygems_version: 2.7.8
148
+ rubygems_version: 3.0.0
150
149
  signing_key:
151
150
  specification_version: 4
152
151
  summary: Deliever the log to Sumo Logic cloud service.