logstash-input-azuretopic 0.9.7 → 0.9.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +21 -1
- data/lib/logstash/inputs/azuretopic.rb +13 -2
- data/logstash-input-azuretopic.gemspec +1 -1
- metadata +17 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1f2e83bc54462fb98423084760740ec431c27bcb
|
4
|
+
data.tar.gz: e01fc01b5a4fae8e8508c88b0b6c97c410918ce8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5fc4441bbb9b38c0c465dace5150bb994fc4465018eda09ef4b61671630e447677bab91d9fa3efd17918f0928ee1d28fdb990e265f767da64fb1d9f668442e22
|
7
|
+
data.tar.gz: 426aa27feb5deddad07383b137e98c33598fa5e30666bbe76163be195afb3df76659cc9c97afe21855b4ff3d3c124a5ce910b5607ec9f76623092b564f44f77e
|
data/README.md
CHANGED
@@ -16,9 +16,13 @@ __*namespace*__
|
|
16
16
|
|
17
17
|
The Service Bus namespace.
|
18
18
|
|
19
|
+
__*access_key_name*__
|
20
|
+
|
21
|
+
Optional: The SAS policy name to the Service Bus resource. If undefined, plugin will assume ACS is used.
|
22
|
+
|
19
23
|
__*access_key*__
|
20
24
|
|
21
|
-
The access key to the Service Bus resource.
|
25
|
+
The access key to the Service Bus resource. Can be SAS policy or ACS key.
|
22
26
|
|
23
27
|
__*subscription*__
|
24
28
|
|
@@ -34,6 +38,7 @@ __*deliverycount*__
|
|
34
38
|
Specifies the number of times to try (and retry) to process a message before the message shall be deleted. The default value is 10.
|
35
39
|
|
36
40
|
### Examples
|
41
|
+
Using ACS:
|
37
42
|
```
|
38
43
|
input
|
39
44
|
{
|
@@ -46,6 +51,21 @@ input
|
|
46
51
|
}
|
47
52
|
}
|
48
53
|
```
|
54
|
+
Using SAS Policy:
|
55
|
+
```
|
56
|
+
input
|
57
|
+
{
|
58
|
+
azuretopic
|
59
|
+
{
|
60
|
+
namespace => "mysbns"
|
61
|
+
access_key_name => "mySASkeyname"
|
62
|
+
access_key => "VGhpcyBpcyBhIGZha2Uga2V5Lg=="
|
63
|
+
subscription => "mytopicsubscription"
|
64
|
+
topic => "mytopic"
|
65
|
+
}
|
66
|
+
}
|
67
|
+
```
|
68
|
+
|
49
69
|
|
50
70
|
## More information
|
51
71
|
The source code of this plugin is hosted in GitHub repo [Microsoft Azure Diagnostics with ELK](https://github.com/Azure/azure-diagnostics-tools). We welcome you to provide feedback and/or contribute to the project.
|
@@ -14,6 +14,7 @@ class LogStash::Inputs::Azuretopic < LogStash::Inputs::Base
|
|
14
14
|
default :codec, "json"
|
15
15
|
|
16
16
|
config :namespace, :validate => :string
|
17
|
+
config :access_key_name, :validate => :string, :required => false
|
17
18
|
config :access_key, :validate => :string
|
18
19
|
config :subscription, :validate => :string
|
19
20
|
config :topic, :validate => :string
|
@@ -28,8 +29,18 @@ class LogStash::Inputs::Azuretopic < LogStash::Inputs::Base
|
|
28
29
|
Azure.configure do |config|
|
29
30
|
config.sb_namespace = @namespace
|
30
31
|
config.sb_access_key = @access_key
|
32
|
+
config.sb_sas_key_name = @access_key_name
|
33
|
+
config.sb_sas_key = @access_key
|
34
|
+
end
|
35
|
+
if access_key_name
|
36
|
+
# SAS key used
|
37
|
+
signer = Azure::ServiceBus::Auth::SharedAccessSigner.new
|
38
|
+
sb_host = "https://#{Azure.sb_namespace}.servicebus.windows.net"
|
39
|
+
@azure_service_bus = Azure::ServiceBus::ServiceBusService.new(sb_host, { signer: signer})
|
40
|
+
else
|
41
|
+
# ACS key
|
42
|
+
@azure_service_bus = Azure::ServiceBus::ServiceBusService.new
|
31
43
|
end
|
32
|
-
@azure_service_bus = Azure::ServiceBus::ServiceBusService.new
|
33
44
|
end # def register
|
34
45
|
|
35
46
|
def process(output_queue)
|
@@ -60,4 +71,4 @@ class LogStash::Inputs::Azuretopic < LogStash::Inputs::Base
|
|
60
71
|
public
|
61
72
|
def teardown
|
62
73
|
end # def teardown
|
63
|
-
end # class LogStash::Inputs::Azuretopic
|
74
|
+
end # class LogStash::Inputs::Azuretopic
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'logstash-input-azuretopic'
|
3
|
-
s.version = '0.9.
|
3
|
+
s.version = '0.9.8'
|
4
4
|
s.licenses = ['Apache License (2.0)']
|
5
5
|
s.summary = "This plugin reads messages from Azure Service Bus Topics."
|
6
6
|
s.description = "This gem is a Logstash plugin. It reads messages from Azure Service Bus Topics."
|
metadata
CHANGED
@@ -1,18 +1,17 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-input-azuretopic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.8
|
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-02
|
11
|
+
date: 2017-08-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
|
15
|
-
version_requirements: !ruby/object:Gem::Requirement
|
14
|
+
requirement: !ruby/object:Gem::Requirement
|
16
15
|
requirements:
|
17
16
|
- - ">="
|
18
17
|
- !ruby/object:Gem::Version
|
@@ -20,7 +19,10 @@ dependencies:
|
|
20
19
|
- - "<="
|
21
20
|
- !ruby/object:Gem::Version
|
22
21
|
version: '2.99'
|
23
|
-
|
22
|
+
name: logstash-core-plugin-api
|
23
|
+
prerelease: false
|
24
|
+
type: :runtime
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
24
26
|
requirements:
|
25
27
|
- - ">="
|
26
28
|
- !ruby/object:Gem::Version
|
@@ -28,36 +30,34 @@ dependencies:
|
|
28
30
|
- - "<="
|
29
31
|
- !ruby/object:Gem::Version
|
30
32
|
version: '2.99'
|
31
|
-
prerelease: false
|
32
|
-
type: :runtime
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
|
-
name: azure
|
35
|
-
version_requirements: !ruby/object:Gem::Requirement
|
36
|
-
requirements:
|
37
|
-
- - "~>"
|
38
|
-
- !ruby/object:Gem::Version
|
39
|
-
version: 0.7.1
|
40
34
|
requirement: !ruby/object:Gem::Requirement
|
41
35
|
requirements:
|
42
36
|
- - "~>"
|
43
37
|
- !ruby/object:Gem::Version
|
44
38
|
version: 0.7.1
|
39
|
+
name: azure
|
45
40
|
prerelease: false
|
46
41
|
type: :runtime
|
47
|
-
- !ruby/object:Gem::Dependency
|
48
|
-
name: logstash-devutils
|
49
42
|
version_requirements: !ruby/object:Gem::Requirement
|
50
43
|
requirements:
|
51
|
-
- - "
|
44
|
+
- - "~>"
|
52
45
|
- !ruby/object:Gem::Version
|
53
|
-
version:
|
46
|
+
version: 0.7.1
|
47
|
+
- !ruby/object:Gem::Dependency
|
54
48
|
requirement: !ruby/object:Gem::Requirement
|
55
49
|
requirements:
|
56
50
|
- - ">="
|
57
51
|
- !ruby/object:Gem::Version
|
58
52
|
version: '0'
|
53
|
+
name: logstash-devutils
|
59
54
|
prerelease: false
|
60
55
|
type: :development
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - ">="
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '0'
|
61
61
|
description: This gem is a Logstash plugin. It reads messages from Azure Service Bus Topics.
|
62
62
|
email: azdiag@microsoft.com
|
63
63
|
executables: []
|