logstash-output-azure 1.0.0 → 2.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/CHANGELOG.md +2 -0
- data/CONTRIBUTORS +1 -0
- data/lib/logstash/outputs/azure.rb +2 -3
- data/lib/logstash/outputs/blob/uploader.rb +1 -2
- data/logstash-output-azure.gemspec +2 -2
- data/spec/outputs/blob/uploader_spec.rb +0 -1
- metadata +5 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 22cba4abc7cffb1f59f4371d0b00dbbcec9e67e0098a9d4fa72abda065f20376
|
4
|
+
data.tar.gz: a0c8a04d0ceae24e4c305d7a8233b4ebf1461005e98d07560f4eedd729df51ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b615b6c35389c88d7c98ac359fa94c5ccad73380eba382c3761776b1011283b2ec56d6590e1ce2d9b8fae1b3e1cca1bd6419bbc5371433d4bb7b66feb97f3111
|
7
|
+
data.tar.gz: 7f6e0a3d610c363ff405871ea6255880c6c233ee5f03e2ac86f241622e73e3321d1952570feb3b1261c2841eebdb4a5be484b3d19c6c50fafecd38ade19f11ae
|
data/CHANGELOG.md
CHANGED
data/CONTRIBUTORS
CHANGED
@@ -4,6 +4,7 @@ reports, or in general have helped logstash along its way.
|
|
4
4
|
Contributors:
|
5
5
|
* Tuffk - tuffkmulhall@gmail.com
|
6
6
|
* BrunoLerner - bru.lerner@gmail.com
|
7
|
+
* Alex-Tsyganok -
|
7
8
|
|
8
9
|
Note: If you've sent us patches, bug reports, or otherwise contributed to
|
9
10
|
Logstash, and you aren't on the list above and want to be, please let us know
|
@@ -244,8 +244,7 @@ class LogStash::Outputs::LogstashAzureBlobOutput < LogStash::Outputs::Base
|
|
244
244
|
temp_file.close # make sure the content is on disk
|
245
245
|
unless temp_file.empty? # rubocop:disable GuardClause
|
246
246
|
@uploader.upload_async(temp_file,
|
247
|
-
on_complete: method(:clean_temporary_file)
|
248
|
-
upload_options: upload_options)
|
247
|
+
on_complete: method(:clean_temporary_file))
|
249
248
|
end
|
250
249
|
end
|
251
250
|
|
@@ -277,7 +276,7 @@ class LogStash::Outputs::LogstashAzureBlobOutput < LogStash::Outputs::Base
|
|
277
276
|
.each do |file|
|
278
277
|
temp_file = TemporaryFile.create_from_existing_file(file, temp_folder_path)
|
279
278
|
@logger.debug('Recovering from crash and uploading', file: temp_file.path)
|
280
|
-
@crash_uploader.upload_async(temp_file, on_complete: method(:clean_temporary_file)
|
279
|
+
@crash_uploader.upload_async(temp_file, on_complete: method(:clean_temporary_file))
|
281
280
|
end
|
282
281
|
end
|
283
282
|
end
|
@@ -13,7 +13,7 @@ module LogStash
|
|
13
13
|
max_queue: 1,
|
14
14
|
fallback_policy: :caller_runs)
|
15
15
|
|
16
|
-
attr_accessor :
|
16
|
+
attr_accessor :logger, :container_name, :blob_account
|
17
17
|
|
18
18
|
# Initializes the class
|
19
19
|
# @param blob_account [Object] endpoint to azure gem
|
@@ -35,7 +35,6 @@ module LogStash
|
|
35
35
|
|
36
36
|
# Uploads the file to the container
|
37
37
|
def upload(file, options = {})
|
38
|
-
upload_options = options.fetch(:upload_options, {})
|
39
38
|
|
40
39
|
begin
|
41
40
|
content = Object::File.open(file.path, 'rb').read
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'logstash-output-azure'
|
3
|
-
s.version = '
|
3
|
+
s.version = '2.0.0'
|
4
4
|
s.licenses = ['Apache-2.0']
|
5
5
|
s.summary = 'Plugin for logstash to send output to Microsoft Azure Blob'
|
6
6
|
# s.description = 'TODO: Write a longer description or delete this line.'
|
@@ -20,6 +20,6 @@ Gem::Specification.new do |s|
|
|
20
20
|
# Gem dependencies
|
21
21
|
s.add_runtime_dependency 'azure', '~> 0.7'
|
22
22
|
s.add_runtime_dependency 'logstash-codec-plain'
|
23
|
-
s.add_runtime_dependency 'logstash-core-plugin-api', '~> 2.
|
23
|
+
s.add_runtime_dependency 'logstash-core-plugin-api', '~> 2.1'
|
24
24
|
s.add_development_dependency 'logstash-devutils'
|
25
25
|
end
|
@@ -11,7 +11,6 @@ describe LogStash::Outputs::LogstashAzureBlobOutput::Uploader do
|
|
11
11
|
let(:temporary_directory) { Stud::Temporary.pathname }
|
12
12
|
let(:temporary_file) { Stud::Temporary.file }
|
13
13
|
let(:storage_access_key) { 'foobar' }
|
14
|
-
let(:upload_options) { {} }
|
15
14
|
let(:threadpool) do
|
16
15
|
Concurrent::ThreadPoolExecutor.new(min_threads: 1,
|
17
16
|
max_threads: 8,
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-output-azure
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tuffk
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-05-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: azure
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '2.
|
47
|
+
version: '2.1'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '2.
|
54
|
+
version: '2.1'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: logstash-devutils
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -121,8 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
121
121
|
- !ruby/object:Gem::Version
|
122
122
|
version: '0'
|
123
123
|
requirements: []
|
124
|
-
|
125
|
-
rubygems_version: 2.7.2
|
124
|
+
rubygems_version: 3.0.3
|
126
125
|
signing_key:
|
127
126
|
specification_version: 4
|
128
127
|
summary: Plugin for logstash to send output to Microsoft Azure Blob
|