logstash-input-azureblob 0.9.5 → 0.9.6

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3fd5968bbd7056e36b008e65b85225fda1b2caf8
4
- data.tar.gz: a67d26ffa67746d41857bf23bbecea73625a1677
3
+ metadata.gz: ca82fe07a7e04d8bc883cd0d3aaaf61b0378de20
4
+ data.tar.gz: e179b28bdf291c7e46a0028f77463fd792745e0e
5
5
  SHA512:
6
- metadata.gz: 0a5266260e3188d95c2b9cc1ac7f2dba3cfc4627d69d3469d10c2db263b8e4795837fc52208f11b4422eb4e86ebdb4f2a2e170ba0a89ebd583551aed63cd39a6
7
- data.tar.gz: b050d8e392fa27827335c59a0a12de830bfe624b6d147ed1cfb67cb85279176674c345cfa9eac4dd795bdd9aadb0e17f05f090eb61600779aa75b1a17952848f
6
+ metadata.gz: b01226eb88aebe200e27c319c024e43830e50aa4b18e070f50c57ee4441fa02a57bb4da18161b68e428bcce1af1606fffecbe21cc044ccf87675317b2fd11a50
7
+ data.tar.gz: 82a2dc122409af2b88d874e625912b9150c019966565024e24471fad1b2fd105ba83e30bfa4634b585aaafd607bd95ad0c5105622a383480b624d22220518d05
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 2016.08.17
2
+ * Added a new configuration parameter for custom endpoint.
3
+
1
4
  ## 2016.05.05
2
5
  * Made the plugin to respect Logstash shutdown signal.
3
6
  * Updated the *logstash-core* runtime dependency requirement to '~> 2.0'.
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Logstash input plugin for Azure Service Bus Topics
1
+ # Logstash input plugin for Azure Storage Blobs
2
2
 
3
3
  ## Summary
4
4
  This plugin reads and parses data from Azure Storage Blobs.
@@ -24,6 +24,11 @@ __*container*__
24
24
 
25
25
  The blob container name.
26
26
 
27
+ ### Optional Parameters
28
+ __*endpoint*__
29
+
30
+ Specifies the endpoint of Azure Service Management. The default value is "core.windows.net".
31
+
27
32
  ### Examples
28
33
  ```
29
34
  input
@@ -18,6 +18,7 @@ class LogStash::Inputs::Azureblob < LogStash::Inputs::Base
18
18
 
19
19
  config :container, :validate => :string
20
20
  config :sleep_time, :validate => :number, :default => 10
21
+ config :endpoint, :validate => :string, :default => "core.windows.net"
21
22
 
22
23
  def initialize(*args)
23
24
  super(*args)
@@ -28,6 +29,7 @@ class LogStash::Inputs::Azureblob < LogStash::Inputs::Base
28
29
  Azure.configure do |config|
29
30
  config.storage_account_name = @storage_account_name
30
31
  config.storage_access_key = @storage_access_key
32
+ config.storage_blob_host = "https://#{@storage_account_name}.blob.#{@endpoint}"
31
33
  end
32
34
  @azure_blob = Azure::Blob::BlobService.new
33
35
  end # def register
@@ -75,6 +77,7 @@ class LogStash::Inputs::Azureblob < LogStash::Inputs::Base
75
77
  return if !blob_name
76
78
  blob, content = @azure_blob.get_blob(@container, blob_name)
77
79
  @codec.decode(content) do |event|
80
+ decorate(event)
78
81
  output_queue << event
79
82
  end
80
83
  rescue LogStash::ShutdownSignal => e
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-input-azureblob'
3
- s.version = '0.9.5'
3
+ s.version = '0.9.6'
4
4
  s.licenses = ['Apache License (2.0)']
5
5
  s.summary = "This plugin collects Microsoft Azure Diagnostics data from Azure Storage Blobs."
6
6
  s.description = "This gem is a Logstash plugin. It reads and parses data from Azure Storage Blobs."
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-input-azureblob
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.5
4
+ version: 0.9.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Microsoft Corporation
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-06 00:00:00.000000000 Z
11
+ date: 2016-12-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: logstash-core