logstash-input-azurewadtable 0.9.12 → 0.9.13
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 +5 -5
- data/lib/logstash/inputs/azurewadtable.rb +16 -6
- data/logstash-input-azurewadtable.gemspec +1 -1
- metadata +5 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: de1a9def0040dc547abe8f637b30400f18269859
|
|
4
|
+
data.tar.gz: 68bcfd7302b8a26dafddf4639a538a5aae7d1c56
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
@
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
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.
|
|
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.
|
|
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-
|
|
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.
|
|
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
|