sk-fluent-plugin-azureeventhubs 0.0.13 → 0.0.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +5 -15
- data/.travis.yml +28 -0
- data/Gemfile.lock +70 -0
- data/LICENSE +21 -0
- data/README.md +8 -46
- data/Rakefile +7 -1
- data/{fluent-plugin-azureeventhubs.gemspec → aync-fluent-plugin-azureeventhubs.gemspec} +7 -6
- data/lib/fluent/plugin/out_azureeventhubs_buffered.rb +1 -1
- data/test/helper.rb +26 -0
- data/test/plugin/test_out_azure_event_hub.rb +28 -0
- metadata +15 -12
- data/LICENSE.txt +0 -22
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f584573da2ddc50ec88db58c143d485fa706aa2739449a4ebd0fc2ced3e6eef6
|
4
|
+
data.tar.gz: 7c452a7e95b5a17cc09abc869cb45add55b6e469b9542feb9e800c0f9f04994d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 75d994ecc52eb059ce12b5ecc2fac0d8492400f246c9c05568f129e5e9bda68f2cded8818abf14d5697dc3b5e8759d3b95527f1b07607edc0152b951797b0f5c
|
7
|
+
data.tar.gz: fb20ae1f86d36dac26d75b36a2a670b35dab10505687f69f8147d944c6268e4b7ec655b5c898f38921cb2620d20f82a85bf246275ff5e58d4f6f76074636d07d
|
data/.gitignore
CHANGED
@@ -1,15 +1,5 @@
|
|
1
|
-
/.
|
2
|
-
/.
|
3
|
-
/
|
4
|
-
/
|
5
|
-
|
6
|
-
/doc/
|
7
|
-
/pkg/
|
8
|
-
/spec/reports/
|
9
|
-
/tmp/
|
10
|
-
*.bundle
|
11
|
-
*.so
|
12
|
-
*.o
|
13
|
-
*.a
|
14
|
-
mkmf.log
|
15
|
-
*.gem
|
1
|
+
/.idea/vcs.xml
|
2
|
+
/.idea/async-fluent-plugin-azureeventhubs.iml
|
3
|
+
/.idea/modules.xml
|
4
|
+
/.idea/workspace.xml
|
5
|
+
/.idea
|
data/.travis.yml
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
language: ruby
|
2
|
+
|
3
|
+
rvm:
|
4
|
+
- 2.1
|
5
|
+
- 2.2
|
6
|
+
- 2.3.1
|
7
|
+
- 2.4.1
|
8
|
+
- 2.5.0
|
9
|
+
- ruby-head
|
10
|
+
|
11
|
+
before_install:
|
12
|
+
- gem update --system
|
13
|
+
|
14
|
+
script:
|
15
|
+
- bundle exec rake test
|
16
|
+
|
17
|
+
sudo: false
|
18
|
+
|
19
|
+
matrix:
|
20
|
+
allow_failures:
|
21
|
+
- rvm: ruby-head
|
22
|
+
deploy:
|
23
|
+
provider: rubygems
|
24
|
+
api_key: "bc5cc687adff822e861d4df96c0986e4"
|
25
|
+
gemspec: aync-fluent-plugin-azureeventhubs.gemspec
|
26
|
+
on:
|
27
|
+
tags: true
|
28
|
+
all_branches: true
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,70 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
sk-fluent-plugin-azureeventhubs (0.0.14)
|
5
|
+
fluentd (>= 0.10.58, < 2)
|
6
|
+
unirest-2x (>= 1.1.3)
|
7
|
+
|
8
|
+
GEM
|
9
|
+
remote: https://rubygems.org/
|
10
|
+
specs:
|
11
|
+
addressable (2.5.2)
|
12
|
+
public_suffix (>= 2.0.2, < 4.0)
|
13
|
+
cool.io (1.5.3)
|
14
|
+
dig_rb (1.0.1)
|
15
|
+
domain_name (0.5.20180417)
|
16
|
+
unf (>= 0.0.5, < 1.0.0)
|
17
|
+
fluentd (1.2.6)
|
18
|
+
cool.io (>= 1.4.5, < 2.0.0)
|
19
|
+
dig_rb (~> 1.0.0)
|
20
|
+
http_parser.rb (>= 0.5.1, < 0.7.0)
|
21
|
+
msgpack (>= 0.7.0, < 2.0.0)
|
22
|
+
serverengine (>= 2.0.4, < 3.0.0)
|
23
|
+
sigdump (~> 0.2.2)
|
24
|
+
strptime (>= 0.2.2, < 1.0.0)
|
25
|
+
tzinfo (~> 1.0)
|
26
|
+
tzinfo-data (~> 1.0)
|
27
|
+
yajl-ruby (~> 1.0)
|
28
|
+
http-cookie (1.0.3)
|
29
|
+
domain_name (~> 0.5)
|
30
|
+
http_parser.rb (0.6.0)
|
31
|
+
json (2.1.0)
|
32
|
+
mime-types (3.2.2)
|
33
|
+
mime-types-data (~> 3.2015)
|
34
|
+
mime-types-data (3.2018.0812)
|
35
|
+
msgpack (1.2.4)
|
36
|
+
netrc (0.11.0)
|
37
|
+
public_suffix (3.0.3)
|
38
|
+
rake (10.5.0)
|
39
|
+
rest-client (2.0.2)
|
40
|
+
http-cookie (>= 1.0.2, < 2.0)
|
41
|
+
mime-types (>= 1.16, < 4.0)
|
42
|
+
netrc (~> 0.8)
|
43
|
+
serverengine (2.0.7)
|
44
|
+
sigdump (~> 0.2.2)
|
45
|
+
sigdump (0.2.4)
|
46
|
+
strptime (0.2.3)
|
47
|
+
thread_safe (0.3.6)
|
48
|
+
tzinfo (1.2.5)
|
49
|
+
thread_safe (~> 0.1)
|
50
|
+
tzinfo-data (1.2018.7)
|
51
|
+
tzinfo (>= 1.0.0)
|
52
|
+
unf (0.1.4)
|
53
|
+
unf_ext
|
54
|
+
unf_ext (0.0.7.5)
|
55
|
+
unirest-2x (1.1.3)
|
56
|
+
addressable (~> 2.4)
|
57
|
+
json (~> 2.0)
|
58
|
+
rest-client (~> 2.0)
|
59
|
+
yajl-ruby (1.4.1)
|
60
|
+
|
61
|
+
PLATFORMS
|
62
|
+
ruby
|
63
|
+
|
64
|
+
DEPENDENCIES
|
65
|
+
bundler (~> 1.7)
|
66
|
+
rake (~> 10.0)
|
67
|
+
sk-fluent-plugin-azureeventhubs!
|
68
|
+
|
69
|
+
BUNDLED WITH
|
70
|
+
1.17.1
|
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2018 sio2k
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
data/README.md
CHANGED
@@ -1,48 +1,10 @@
|
|
1
|
-
#
|
1
|
+
# async-fluent-plugin-azureeventhubs
|
2
2
|
|
3
|
-
|
3
|
+
[![Build Status](https://travis-ci.com/sio2k/async-fluent-plugin-azureeventhubs-.svg?branch=master)](https://travis-ci.com/sio2k/async-fluent-plugin-azureeventhubs-)
|
4
|
+
[![Known Vulnerabilities](https://snyk.io/test/github/sio2k/async-fluent-plugin-azureeventhubs-/badge.svg?targetFile=Gemfile.lock)](https://snyk.io/test/github/sio2k/async-fluent-plugin-azureeventhubs-?targetFile=Gemfile.lock)
|
5
|
+
[![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/sio2k/async-fluent-plugin-azureeventhubs-/blob/master/LICENSE)
|
6
|
+
Inspired by https://github.com/htgc/fluent-plugin-azureeventhubs
|
4
7
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
```ruby
|
10
|
-
gem 'fluent-plugin-azureeventhubs'
|
11
|
-
```
|
12
|
-
|
13
|
-
And then execute:
|
14
|
-
|
15
|
-
$ bundle
|
16
|
-
|
17
|
-
Or install it yourself as:
|
18
|
-
|
19
|
-
$ gem install fluent-plugin-azureeventhubs
|
20
|
-
|
21
|
-
## Configuration
|
22
|
-
|
23
|
-
```
|
24
|
-
<match pattern>
|
25
|
-
type azureeventhubs_buffered
|
26
|
-
|
27
|
-
connection_string <Paste SAS connection string from Azure Management Potal>
|
28
|
-
hub_name <Name of Event Hubs>
|
29
|
-
include_tag (true|false) # true: Include tag into record [Optional: default => false]
|
30
|
-
include_time (true|false) # true: Include time into record [Optional: default => false]
|
31
|
-
tag_time_name record_time # record tag for time when include_time sets true. [Optional: default => 'time']
|
32
|
-
type (https|amqps) # Connection type. [Optional: default => https]. Note that amqps is not implementated.
|
33
|
-
expiry_interval <Integer number> # Signature expiration time interval in seconds. [Optional: default => 3600 (60min)]
|
34
|
-
proxy_addr <Host or IP> # Address of the proxy [Optional]
|
35
|
-
proxy_port <Integer> # Proxy port. [Optional: default => 3128]
|
36
|
-
read_timeout <Integer> # HTTP Read timeout in seconds[Optional: default => 60]
|
37
|
-
open_timeout <Integer> # HTTP Open timeout in seconds[Optional: default => 60]
|
38
|
-
message_properties <Json Object> # A json object of key/value pairs to add Properties to the events being sent to EventHubs [Optional: default => nil]
|
39
|
-
</match>
|
40
|
-
```
|
41
|
-
|
42
|
-
## Contributing
|
43
|
-
|
44
|
-
1. Fork it ( https://github.com/[my-github-username]/fluent-plugin-azureeventhubs/fork )
|
45
|
-
2. Create your feature branch (`git checkout -b my-new-feature`)
|
46
|
-
3. Commit your changes (`git commit -am 'Add some feature'`)
|
47
|
-
4. Push to the branch (`git push origin my-new-feature`)
|
48
|
-
5. Create a new Pull Request
|
8
|
+
- Snyk integration done
|
9
|
+
- Travis build done
|
10
|
+
- Buffered output pending
|
data/Rakefile
CHANGED
@@ -3,10 +3,8 @@ lib = File.expand_path('../lib', __FILE__)
|
|
3
3
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
|
-
spec.
|
7
|
-
spec.
|
8
|
-
spec.authors = ["Hidemasa Togashi", "Toddy Mladenov", "Justin Seely"]
|
9
|
-
spec.email = ["togachiro@gmail.com", "toddysm@gmail.com"]
|
6
|
+
spec.authors = ["Sandeep Kotha"]
|
7
|
+
spec.email = ["sandeep.kotha@live.com"]
|
10
8
|
spec.summary = "Fluentd output plugin for Azure Event Hubs"
|
11
9
|
spec.description = "Fluentd output plugin for Azure Event Hubs"
|
12
10
|
spec.homepage = "https://github.com/htgc/fluent-plugin-azureeventhubs"
|
@@ -16,9 +14,12 @@ Gem::Specification.new do |spec|
|
|
16
14
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
17
15
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
18
16
|
spec.require_paths = ["lib"]
|
17
|
+
spec.name = "sk-fluent-plugin-azureeventhubs"
|
18
|
+
spec.version = "0.0.14"
|
19
|
+
spec.required_ruby_version = ">= 2.1.0"
|
19
20
|
|
20
21
|
spec.add_development_dependency "bundler", "~> 1.7"
|
21
22
|
spec.add_development_dependency "rake", "~> 10.0"
|
22
|
-
spec.add_dependency "fluentd", [">= 0.
|
23
|
+
spec.add_dependency "fluentd", [">= 0.10.58", "< 2"]
|
23
24
|
spec.add_dependency "unirest-2x", [">= 1.1.3"]
|
24
|
-
end
|
25
|
+
end
|
data/test/helper.rb
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'bundler'
|
3
|
+
begin
|
4
|
+
Bundler.setup(:default, :development)
|
5
|
+
rescue Bundler::BundlerError => e
|
6
|
+
$stderr.puts e.message
|
7
|
+
$stderr.puts "Run `bundle install` to install missing gems"
|
8
|
+
exit e.status_code
|
9
|
+
end
|
10
|
+
require 'test/unit'
|
11
|
+
|
12
|
+
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
13
|
+
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
14
|
+
require 'fluent/test'
|
15
|
+
unless ENV.has_key?('VERBOSE')
|
16
|
+
nulllogger = Object.new
|
17
|
+
nulllogger.instance_eval {|obj|
|
18
|
+
def method_missing(method, *args)
|
19
|
+
end
|
20
|
+
}
|
21
|
+
$log = nulllogger
|
22
|
+
end
|
23
|
+
|
24
|
+
|
25
|
+
class Test::Unit::TestCase
|
26
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
require 'helper'
|
2
|
+
require 'fluent/output'
|
3
|
+
|
4
|
+
class AzureEventHubTest < Test::Unit::TestCase
|
5
|
+
def setup
|
6
|
+
Fluent::Test.setup
|
7
|
+
end
|
8
|
+
|
9
|
+
BASE_CONFIG = %[
|
10
|
+
type azure_eventhub_buffered
|
11
|
+
]
|
12
|
+
|
13
|
+
CONFIG = BASE_CONFIG + %[
|
14
|
+
connection_string sb://sample
|
15
|
+
]
|
16
|
+
|
17
|
+
def create_driver(conf = CONFIG, tag='test')
|
18
|
+
"sample"
|
19
|
+
end
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
def test_format
|
24
|
+
d = create_driver
|
25
|
+
assert_equal 'sample', d
|
26
|
+
end
|
27
|
+
|
28
|
+
end
|
metadata
CHANGED
@@ -1,12 +1,10 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sk-fluent-plugin-azureeventhubs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
8
|
-
- Toddy Mladenov
|
9
|
-
- Justin Seely
|
7
|
+
- Sandeep Kotha
|
10
8
|
autorequire:
|
11
9
|
bindir: bin
|
12
10
|
cert_chain: []
|
@@ -46,7 +44,7 @@ dependencies:
|
|
46
44
|
requirements:
|
47
45
|
- - ">="
|
48
46
|
- !ruby/object:Gem::Version
|
49
|
-
version: 0.
|
47
|
+
version: 0.10.58
|
50
48
|
- - "<"
|
51
49
|
- !ruby/object:Gem::Version
|
52
50
|
version: '2'
|
@@ -56,7 +54,7 @@ dependencies:
|
|
56
54
|
requirements:
|
57
55
|
- - ">="
|
58
56
|
- !ruby/object:Gem::Version
|
59
|
-
version: 0.
|
57
|
+
version: 0.10.58
|
60
58
|
- - "<"
|
61
59
|
- !ruby/object:Gem::Version
|
62
60
|
version: '2'
|
@@ -76,20 +74,23 @@ dependencies:
|
|
76
74
|
version: 1.1.3
|
77
75
|
description: Fluentd output plugin for Azure Event Hubs
|
78
76
|
email:
|
79
|
-
-
|
80
|
-
- toddysm@gmail.com
|
77
|
+
- sandeep.kotha@live.com
|
81
78
|
executables: []
|
82
79
|
extensions: []
|
83
80
|
extra_rdoc_files: []
|
84
81
|
files:
|
85
82
|
- ".gitignore"
|
83
|
+
- ".travis.yml"
|
86
84
|
- Gemfile
|
87
|
-
-
|
85
|
+
- Gemfile.lock
|
86
|
+
- LICENSE
|
88
87
|
- README.md
|
89
88
|
- Rakefile
|
90
|
-
- fluent-plugin-azureeventhubs.gemspec
|
89
|
+
- aync-fluent-plugin-azureeventhubs.gemspec
|
91
90
|
- lib/fluent/plugin/azureeventhubs/http.rb
|
92
91
|
- lib/fluent/plugin/out_azureeventhubs_buffered.rb
|
92
|
+
- test/helper.rb
|
93
|
+
- test/plugin/test_out_azure_event_hub.rb
|
93
94
|
homepage: https://github.com/htgc/fluent-plugin-azureeventhubs
|
94
95
|
licenses:
|
95
96
|
- MIT
|
@@ -102,7 +103,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
102
103
|
requirements:
|
103
104
|
- - ">="
|
104
105
|
- !ruby/object:Gem::Version
|
105
|
-
version:
|
106
|
+
version: 2.1.0
|
106
107
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
107
108
|
requirements:
|
108
109
|
- - ">="
|
@@ -114,4 +115,6 @@ rubygems_version: 2.7.7
|
|
114
115
|
signing_key:
|
115
116
|
specification_version: 4
|
116
117
|
summary: Fluentd output plugin for Azure Event Hubs
|
117
|
-
test_files:
|
118
|
+
test_files:
|
119
|
+
- test/helper.rb
|
120
|
+
- test/plugin/test_out_azure_event_hub.rb
|
data/LICENSE.txt
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
Copyright (c) 2014 Hidemasa Togashi
|
2
|
-
|
3
|
-
MIT License
|
4
|
-
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
-
a copy of this software and associated documentation files (the
|
7
|
-
"Software"), to deal in the Software without restriction, including
|
8
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
-
permit persons to whom the Software is furnished to do so, subject to
|
11
|
-
the following conditions:
|
12
|
-
|
13
|
-
The above copyright notice and this permission notice shall be
|
14
|
-
included in all copies or substantial portions of the Software.
|
15
|
-
|
16
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|