logstash-input-azurewadtable 0.9.12 → 0.9.13

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
- SHA256:
3
- metadata.gz: 5d5f03c67ab4e356e775d2c01ea283c5ab984ed9fe33cbf588406392fa1b1422
4
- data.tar.gz: 86c7c36b5735e0119e39a1764137736b2fc1cd824126f33696073fbec48ffc6d
2
+ SHA1:
3
+ metadata.gz: de1a9def0040dc547abe8f637b30400f18269859
4
+ data.tar.gz: 68bcfd7302b8a26dafddf4639a538a5aae7d1c56
5
5
  SHA512:
6
- metadata.gz: 1e8ce77d95b549f2da0eb56ee937604b11bf49ecb6b4b68751246d1c44c03c47d0f88baa9e7e2f263b6acfff8db22f00ee7c0012d20f66a717a54fe6b796f9c3
7
- data.tar.gz: 6478098b9b5028439215ec1f1c2386eecfe9688ab931590660a439f80584b6dc84321242a2a355f862b0407bdbbb8f70f2477ef7ee57cf3eaf69a6c0bf82c1a0
6
+ metadata.gz: 53e6c4191534e23be1de2c4dc0d1cf4e78868cc0f8ebd7607c77d325eaa6d6f5dd6d90391cf005870bd02a32d55de28f485ee6f164e05d423e54c41c2fc8005d
7
+ data.tar.gz: 63f077bac0a4dfa3d33a4d36ffcdf5251b059f6da299a1059ef30fc6188bcdf1e33c0a47e04da0f4cf94cae59270003bc8b320c7f1a0957355eef8bb8bc9fed4
@@ -12,7 +12,8 @@ class LogStash::Inputs::AzureWADTable < LogStash::Inputs::Base
12
12
  milestone 1
13
13
 
14
14
  config :account_name, :validate => :string
15
- config :access_key, :validate => :string
15
+ config :access_key, :validate => :string, :required => false # not required as the sas_token can alternatively be provided
16
+ config :sas_token, :validate => :string, :required => false # not required as the access_key can alternatively be provided
16
17
  config :table_name, :validate => :string
17
18
  config :entity_count_to_process, :validate => :string, :default => 100
18
19
  config :collection_start_time_utc, :validate => :string, :default => nil #the actual value is set in the ctor (now - data_latency_minutes - 1)
@@ -44,11 +45,20 @@ class LogStash::Inputs::AzureWADTable < LogStash::Inputs::Base
44
45
  user_agent = "logstash-input-azurewadtable"
45
46
  user_agent << "/" << Gem.latest_spec_for("logstash-input-azurewadtable").version.to_s
46
47
 
47
- @client = Azure::Storage::Client.create(
48
- :storage_account_name => @account_name,
49
- :storage_access_key => @access_key,
50
- :storage_table_host => "https://#{@account_name}.table.#{@endpoint}",
51
- :user_agent_prefix => user_agent)
48
+ if @sas_token.nil?
49
+ @client = Azure::Storage::Client.create(
50
+ :storage_account_name => @account_name,
51
+ :storage_access_key => @access_key,
52
+ :storage_table_host => "https://#{@account_name}.table.#{@endpoint}",
53
+ :user_agent_prefix => user_agent)
54
+ else
55
+ @client = Azure::Storage::Client.create(
56
+ :storage_account_name => @account_name,
57
+ :storage_sas_token => @sas_token,
58
+ :storage_table_host => "https://#{@account_name}.table.#{@endpoint}",
59
+ :user_agent_prefix => user_agent)
60
+ end
61
+
52
62
  @azure_table_service = @client.table_client
53
63
 
54
64
  @last_timestamp = @collection_start_time_utc
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-input-azurewadtable'
3
- s.version = '0.9.12'
3
+ s.version = '0.9.13'
4
4
  s.licenses = ['Apache License (2.0)']
5
5
  s.summary = "This plugin collects Microsoft Azure Diagnostics data from Azure Storage Tables."
6
6
  s.description = "This gem is a Logstash plugin. It reads and parses diagnostics data from Azure Storage Tables."
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-input-azurewadtable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.12
4
+ version: 0.9.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Microsoft Corporation
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-02 00:00:00.000000000 Z
11
+ date: 2017-12-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -58,8 +58,7 @@ dependencies:
58
58
  - - ">="
59
59
  - !ruby/object:Gem::Version
60
60
  version: 1.1.0
61
- description: This gem is a Logstash plugin. It reads and parses diagnostics data from
62
- Azure Storage Tables.
61
+ description: This gem is a Logstash plugin. It reads and parses diagnostics data from Azure Storage Tables.
63
62
  email: azdiag@microsoft.com
64
63
  executables: []
65
64
  extensions: []
@@ -94,10 +93,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
94
93
  version: '0'
95
94
  requirements: []
96
95
  rubyforge_project:
97
- rubygems_version: 2.6.13
96
+ rubygems_version: 2.4.8
98
97
  signing_key:
99
98
  specification_version: 4
100
- summary: This plugin collects Microsoft Azure Diagnostics data from Azure Storage
101
- Tables.
99
+ summary: This plugin collects Microsoft Azure Diagnostics data from Azure Storage Tables.
102
100
  test_files:
103
101
  - spec/inputs/azurewadtable_spec.rb