logstash-output-thetapoint 0.2.0 → 0.3.0

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
- SHA1:
3
- metadata.gz: 6b1775210b15d1f1872af52c260e5eca58db67d6
4
- data.tar.gz: 3b6dd3a5839d0a401a5652e0f5f387235aec07bc
2
+ SHA256:
3
+ metadata.gz: 20cbc4ec8b453142d66b1d01b492c27f22cf71b6645a6d56a11f61f6bd942292
4
+ data.tar.gz: 89260c472479ffe2ba243d02084e2772aec5e338a8a775f28de1314697c8317a
5
5
  SHA512:
6
- metadata.gz: a297422fcf14eb1fb06fcf6ade3283cd7d63bc5ac99070aef0763ce218729d6923e0d7750c2563642f9432596e7cc4abeb7b1a2cae02e5ba969ead977569e99e
7
- data.tar.gz: 6fe4edb0e45234701513d426bf438c4c1920693fa95ab0d74c602faaf5730360e7a612c06a055d015acca50c96051a4281066e3718c44aaffccddc3aa6ee0d65
6
+ metadata.gz: 4ca3d48d1dfcf8674aa657b7f0e041f9cee1f8de6fd1fcc5d91b82d825652ed25266ff25c1af2ffd59dde6bc0f11af666212e45131e4009b0d667bfecbc70d2b
7
+ data.tar.gz: 55c4788405fbbd3d2da4e7ee0815b1a00d9dc2d38b3501a6417e7ee832c35e2e0dc09f3f7c7da957ad89ec5cbcb7e980720989b9e8764717dd133890af335c73
data/CHANGELOG.md CHANGED
@@ -0,0 +1,2 @@
1
+ ## 0.1.0
2
+ - Plugin created with the logstash plugin generator
data/CONTRIBUTORS CHANGED
@@ -2,8 +2,7 @@ The following is a list of people who have contributed ideas, code, bug
2
2
  reports, or in general have helped logstash along its way.
3
3
 
4
4
  Contributors:
5
- * Aaron Mildenstein (untergeek)
6
- * Pier-Hugues Pellerin (ph)
5
+ * -
7
6
 
8
7
  Note: If you've sent us patches, bug reports, or otherwise contributed to
9
8
  Logstash, and you aren't on the list above and want to be, please let us know
data/DEVELOPER.md CHANGED
@@ -1,2 +1,2 @@
1
- # logstash-output-example
1
+ # logstash-output-thetapoint
2
2
  Example output plugin. This should help bootstrap your effort to write your own output plugin!
data/Gemfile CHANGED
@@ -1,3 +1,3 @@
1
1
  source 'https://rubygems.org'
2
2
  gemspec
3
- # gem "logstash", :github => "elastic/logstash", :branch => "2.0"
3
+
data/LICENSE CHANGED
@@ -1,5 +1,3 @@
1
- Copyright (c) 2012–2015 Elasticsearch <http://www.elastic.co>
2
-
3
1
  Licensed under the Apache License, Version 2.0 (the "License");
4
2
  you may not use this file except in compliance with the License.
5
3
  You may obtain a copy of the License at
data/README.md CHANGED
@@ -1,15 +1,15 @@
1
1
  # Logstash Plugin
2
2
 
3
- This is a plugin for [Logstash](https://github.com/elasticsearch/logstash).
3
+ This is a plugin for [Logstash](https://github.com/elastic/logstash).
4
4
 
5
5
  It is fully free and fully open source. The license is Apache 2.0, meaning you are pretty much free to use it however you want in whatever way.
6
6
 
7
7
  ## Documentation
8
8
 
9
- Logstash provides infrastructure to automatically generate documentation for this plugin. We use the asciidoc format to write documentation so any comments in the source code will be first converted into asciidoc and then into html. All plugin documentation are placed under one [central location](http://www.elasticsearch.org/guide/en/logstash/current/).
9
+ Logstash provides infrastructure to automatically generate documentation for this plugin. We use the asciidoc format to write documentation so any comments in the source code will be first converted into asciidoc and then into html. All plugin documentation are placed under one [central location](http://www.elastic.co/guide/en/logstash/current/).
10
10
 
11
11
  - For formatting code or config example, you can use the asciidoc `[source,ruby]` directive
12
- - For more asciidoc formatting tips, see the excellent reference here https://github.com/elasticsearch/docs#asciidoc-guide
12
+ - For more asciidoc formatting tips, see the excellent reference here https://github.com/elastic/docs#asciidoc-guide
13
13
 
14
14
  ## Need Help?
15
15
 
@@ -53,7 +53,7 @@ gem "logstash-filter-awesome", :path => "/your/local/logstash-filter-awesome"
53
53
  ```
54
54
  - Install plugin
55
55
  ```sh
56
- bin/plugin install --no-verify
56
+ bin/logstash-plugin install --no-verify
57
57
  ```
58
58
  - Run Logstash with your plugin
59
59
  ```sh
@@ -71,7 +71,7 @@ gem build logstash-filter-awesome.gemspec
71
71
  ```
72
72
  - Install the plugin from the Logstash home
73
73
  ```sh
74
- bin/plugin install /your/local/plugin/logstash-filter-awesome.gem
74
+ bin/logstash-plugin install /your/local/plugin/logstash-filter-awesome.gem
75
75
  ```
76
76
  - Start Logstash and proceed to test the plugin
77
77
 
@@ -83,4 +83,4 @@ Programming is not a required skill. Whatever you've seen about open source and
83
83
 
84
84
  It is more important to the community that you are able to contribute.
85
85
 
86
- For more information about contributing, see the [CONTRIBUTING](https://github.com/elasticsearch/logstash/blob/master/CONTRIBUTING.md) file.
86
+ For more information about contributing, see the [CONTRIBUTING](https://github.com/elastic/logstash/blob/master/CONTRIBUTING.md) file.
@@ -0,0 +1,17 @@
1
+ # encoding: utf-8
2
+ require "logstash/outputs/base"
3
+ require "logstash/namespace"
4
+
5
+ # An thetapoint output that does nothing.
6
+ class LogStash::Outputs::Thetapoint < LogStash::Outputs::Base
7
+ config_name "thetapoint"
8
+
9
+ public
10
+ def register
11
+ end # def register
12
+
13
+ public
14
+ def receive(event)
15
+ return "Event received"
16
+ end # def event
17
+ end # class LogStash::Outputs::Thetapoint
@@ -1,16 +1,16 @@
1
1
  Gem::Specification.new do |s|
2
- s.name = 'logstash-output-thetapoint'
3
- s.version = "0.2.0"
4
- s.licenses = ["Apache License (2.0)"]
5
- s.summary = "This thetapoint output does nothing."
6
- s.description = "This gem is a logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/plugin install gemname. This gem is not a stand-alone program"
7
- s.authors = ["ThetaPoint"]
8
- s.email = "info@theta-point.com"
9
- s.homepage = "http://www.theta-point.com"
10
- s.require_paths = ["lib"]
2
+ s.name = 'logstash-output-thetapoint'
3
+ s.version = '0.3.0'
4
+ s.licenses = ['Apache-2.0']
5
+ s.summary = 'Send data to ThetaPoint'
6
+ s.description = 'Send data to ThetaPoint using HTTPS to submit plain or compressed messages'
7
+ s.homepage = 'https://github.com/harryrh/logstash-output-thetapoint'
8
+ s.authors = ['Harry Halladay']
9
+ s.email = 'harry@theta-point.com'
10
+ s.require_paths = ['lib']
11
11
 
12
12
  # Files
13
- s.files = `git ls-files`.split($\)
13
+ s.files = Dir['lib/**/*','spec/**/*','vendor/**/*','*.gemspec','*.md','CONTRIBUTORS','Gemfile','LICENSE','NOTICE.TXT']
14
14
  # Tests
15
15
  s.test_files = s.files.grep(%r{^(test|spec|features)/})
16
16
 
@@ -18,7 +18,7 @@ Gem::Specification.new do |s|
18
18
  s.metadata = { "logstash_plugin" => "true", "logstash_group" => "output" }
19
19
 
20
20
  # Gem dependencies
21
- s.add_runtime_dependency "logstash-core", ">= 2.0.0", "< 3.0.0"
21
+ s.add_runtime_dependency "logstash-core-plugin-api", "~> 2.0"
22
22
  s.add_runtime_dependency "logstash-codec-plain"
23
23
  s.add_development_dependency "logstash-devutils"
24
24
  end
@@ -1,32 +1,22 @@
1
+ # encoding: utf-8
1
2
  require "logstash/devutils/rspec/spec_helper"
2
3
  require "logstash/outputs/thetapoint"
3
4
  require "logstash/codecs/plain"
4
5
  require "logstash/event"
5
6
 
6
- describe LogStash::Outputs::ThetaPoint do
7
- let(:config) { { 'key' => 'lksjdflskdjflskdjflskdj' } }
8
- let(:event) do
9
- LogStash::Outputs::ThetaPoint.new(
10
- 'message' => 'example message',
11
- 'type' => 'event',
12
- '@timestamp' => Logstash::Timestamp.now)
7
+ describe LogStash::Outputs::Thetapoint do
8
+ let(:sample_event) { LogStash::Event.new }
9
+ let(:output) { LogStash::Outputs::Thetapoint.new }
10
+
11
+ before do
12
+ output.register
13
13
  end
14
14
 
15
- context 'when initializing' do
16
- subject { LogStash::Outputs::ThetaPoint.new(config) }
17
-
18
- it 'should register' do
19
- expect { subject.register }.to_not raise_error
20
- end
15
+ describe "receive message" do
16
+ subject { output.receive(sample_event) }
21
17
 
22
- it 'should have default config values' do
23
- insist { subject.host } == 'api.theta-point.com'
24
- insist { subject.port } == 443
25
- insist { subject.proto } == 'https'
18
+ it "returns a string" do
19
+ expect(subject).to eq("Event received")
26
20
  end
27
-
28
21
  end
29
-
30
22
  end
31
-
32
- # vim: ts=2:sw=2:
metadata CHANGED
@@ -1,65 +1,59 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-output-thetapoint
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
- - ThetaPoint
7
+ - Harry Halladay
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-29 00:00:00.000000000 Z
11
+ date: 2018-06-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: logstash-core
15
- version_requirements: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: 2.0.0
20
- - - "<"
21
- - !ruby/object:Gem::Version
22
- version: 3.0.0
23
14
  requirement: !ruby/object:Gem::Requirement
24
15
  requirements:
25
- - - ">="
16
+ - - "~>"
26
17
  - !ruby/object:Gem::Version
27
- version: 2.0.0
28
- - - "<"
29
- - !ruby/object:Gem::Version
30
- version: 3.0.0
18
+ version: '2.0'
19
+ name: logstash-core-plugin-api
31
20
  prerelease: false
32
21
  type: :runtime
33
- - !ruby/object:Gem::Dependency
34
- name: logstash-codec-plain
35
22
  version_requirements: !ruby/object:Gem::Requirement
36
23
  requirements:
37
- - - ">="
24
+ - - "~>"
38
25
  - !ruby/object:Gem::Version
39
- version: '0'
26
+ version: '2.0'
27
+ - !ruby/object:Gem::Dependency
40
28
  requirement: !ruby/object:Gem::Requirement
41
29
  requirements:
42
30
  - - ">="
43
31
  - !ruby/object:Gem::Version
44
32
  version: '0'
33
+ name: logstash-codec-plain
45
34
  prerelease: false
46
35
  type: :runtime
47
- - !ruby/object:Gem::Dependency
48
- name: logstash-devutils
49
36
  version_requirements: !ruby/object:Gem::Requirement
50
37
  requirements:
51
38
  - - ">="
52
39
  - !ruby/object:Gem::Version
53
40
  version: '0'
41
+ - !ruby/object:Gem::Dependency
54
42
  requirement: !ruby/object:Gem::Requirement
55
43
  requirements:
56
44
  - - ">="
57
45
  - !ruby/object:Gem::Version
58
46
  version: '0'
47
+ name: logstash-devutils
59
48
  prerelease: false
60
49
  type: :development
61
- description: This gem is a logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/plugin install gemname. This gem is not a stand-alone program
62
- email: info@theta-point.com
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ description: Send data to ThetaPoint using HTTPS to submit plain or compressed messages
56
+ email: harry@theta-point.com
63
57
  executables: []
64
58
  extensions: []
65
59
  extra_rdoc_files: []
@@ -68,16 +62,15 @@ files:
68
62
  - CONTRIBUTORS
69
63
  - DEVELOPER.md
70
64
  - Gemfile
71
- - Gemfile.lock
72
65
  - LICENSE
73
66
  - README.md
74
- - Rakefile
75
67
  - lib/logstash/outputs/thetapoint.rb
68
+ - lib/logstash/outputs/thetapoint.rb.org
76
69
  - logstash-output-thetapoint.gemspec
77
70
  - spec/outputs/thetapoint_spec.rb
78
- homepage: http://www.theta-point.com
71
+ homepage: https://github.com/harryrh/logstash-output-thetapoint
79
72
  licenses:
80
- - Apache License (2.0)
73
+ - Apache-2.0
81
74
  metadata:
82
75
  logstash_plugin: 'true'
83
76
  logstash_group: output
@@ -97,9 +90,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
97
90
  version: '0'
98
91
  requirements: []
99
92
  rubyforge_project:
100
- rubygems_version: 2.4.8
93
+ rubygems_version: 2.7.6
101
94
  signing_key:
102
95
  specification_version: 4
103
- summary: This thetapoint output does nothing.
96
+ summary: Send data to ThetaPoint
104
97
  test_files:
105
98
  - spec/outputs/thetapoint_spec.rb
data/Gemfile.lock DELETED
@@ -1,84 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- logstash-output-thetapoint (0.2.0)
5
- logstash-codec-plain
6
- logstash-core (>= 2.0.0, < 3.0.0)
7
-
8
- GEM
9
- remote: https://rubygems.org/
10
- specs:
11
- cabin (0.7.1)
12
- clamp (0.6.5)
13
- coderay (1.1.0)
14
- concurrent-ruby (0.9.1-java)
15
- diff-lcs (1.2.5)
16
- ffi (1.9.10-java)
17
- filesize (0.0.4)
18
- gem_publisher (1.5.0)
19
- gems (0.8.3)
20
- i18n (0.6.9)
21
- insist (1.0.0)
22
- jrjackson (0.3.6)
23
- jruby-openssl (0.9.12-java)
24
- logstash-codec-plain (2.0.2)
25
- logstash-core (>= 2.0.0.beta2, < 3.0.0)
26
- logstash-core (2.0.0-java)
27
- cabin (~> 0.7.0)
28
- clamp (~> 0.6.5)
29
- concurrent-ruby (~> 0.9.1)
30
- filesize (= 0.0.4)
31
- gems (~> 0.8.3)
32
- i18n (= 0.6.9)
33
- jrjackson (~> 0.3.6)
34
- jruby-openssl (>= 0.9.11)
35
- minitar (~> 0.5.4)
36
- pry (~> 0.10.1)
37
- stud (~> 0.0.19)
38
- thread_safe (~> 0.3.5)
39
- treetop (< 1.5.0)
40
- logstash-devutils (0.0.14-java)
41
- gem_publisher
42
- insist (= 1.0.0)
43
- minitar
44
- rake
45
- rspec (~> 3.1.0)
46
- method_source (0.8.2)
47
- minitar (0.5.4)
48
- polyglot (0.3.5)
49
- pry (0.10.3-java)
50
- coderay (~> 1.1.0)
51
- method_source (~> 0.8.1)
52
- slop (~> 3.4)
53
- spoon (~> 0.0)
54
- rake (10.4.2)
55
- rspec (3.1.0)
56
- rspec-core (~> 3.1.0)
57
- rspec-expectations (~> 3.1.0)
58
- rspec-mocks (~> 3.1.0)
59
- rspec-core (3.1.7)
60
- rspec-support (~> 3.1.0)
61
- rspec-expectations (3.1.2)
62
- diff-lcs (>= 1.2.0, < 2.0)
63
- rspec-support (~> 3.1.0)
64
- rspec-mocks (3.1.3)
65
- rspec-support (~> 3.1.0)
66
- rspec-support (3.1.2)
67
- slop (3.6.0)
68
- spoon (0.0.4)
69
- ffi
70
- stud (0.0.22)
71
- thread_safe (0.3.5-java)
72
- treetop (1.4.15)
73
- polyglot
74
- polyglot (>= 0.3.1)
75
-
76
- PLATFORMS
77
- java
78
-
79
- DEPENDENCIES
80
- logstash-devutils
81
- logstash-output-thetapoint!
82
-
83
- BUNDLED WITH
84
- 1.10.6
data/Rakefile DELETED
@@ -1 +0,0 @@
1
- require "logstash/devutils/rake"