logstash-input-github 0.1.1 → 0.1.2

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
2
  SHA1:
3
- metadata.gz: cf160ba21f59728088732f05133fb4eae72a12c7
4
- data.tar.gz: bdf4ce1d331a87ac66c71d40c6c86e426ed17195
3
+ metadata.gz: 191c502d49792c7c96082837b9dbf5765b52a10a
4
+ data.tar.gz: 57e1fec008bea6423bdd38fa3413cc27b6e57952
5
5
  SHA512:
6
- metadata.gz: 7498d2b950ebc1df425e1026a299f18103e7c65036d4cb76e2885f98ced5ec5138e088b4a182609475fbd5adeb710a87590fa10852552dfb345014458dad2f3d
7
- data.tar.gz: 4611f1b6acf3f195c3f1bd434b90a9d0f54952c6c4fb6b90038deb6675d39da259f0fc0dfd13a65fd75978c362eb95f77a95faaeb8a9438429b8f74ab2dc1374
6
+ metadata.gz: ca72bab22c03df6631f838e93e3f116d99cc3360967fe5aafc4398e683039191180bc09161bd320adbc1a609586a7546cfba057ec7e57e3cc17c069fc0ad91b4
7
+ data.tar.gz: a190dc000faf954ce3e897b1e86fad77620f228f9ef7808feee28db83cdc216fec374359234ac9451fc1898208d85305a6048d11f613a19f61866a52db21a792
@@ -0,0 +1,11 @@
1
+ The following is a list of people who have contributed ideas, code, bug
2
+ reports, or in general have helped logstash along its way.
3
+
4
+ Contributors:
5
+ * Jason Kendall (coolacid)
6
+ * Pier-Hugues Pellerin (ph)
7
+
8
+ Note: If you've sent us patches, bug reports, or otherwise contributed to
9
+ Logstash, and you aren't on the list above and want to be, please let us know
10
+ and we'll make sure you're here. Contributions from folks like you are what make
11
+ open source awesome.
@@ -0,0 +1,35 @@
1
+ logstash-github
2
+ ===================
3
+
4
+ This plugin accepts github webhook connections and passes the data into the logstash pipeline.
5
+
6
+ Usage
7
+ =====
8
+
9
+ Example config:
10
+
11
+ input {
12
+ stdin {}
13
+ github {
14
+ port => 8080
15
+ }
16
+ }
17
+
18
+ output {
19
+ stdout {
20
+ codec => rubydebug
21
+ }
22
+ }
23
+
24
+ Example Test Case using Curl:
25
+
26
+ curl -H "Content-Type: application/json" -d '{"Something":"xyz","somethingelse":"xyz"}' http://localhost:8080/api/login
27
+
28
+ Configuration
29
+ =============
30
+
31
+ * ip - The IP you want to listen on (Default: 0.0.0.0)
32
+ * port - The port you want to listen on
33
+ * secret_token - The shared secret set for github webhook
34
+ * drop_invalid - Drop events that don't match the secret_token
35
+
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2012-2014 Elasticsearch <http://www.elasticsearch.org>
1
+ Copyright (c) 2012-2015 Elasticsearch <http://www.elasticsearch.org>
2
2
 
3
3
  Licensed under the Apache License, Version 2.0 (the "License");
4
4
  you may not use this file except in compliance with the License.
data/README.md CHANGED
@@ -1,35 +1,95 @@
1
- logstash-github
2
- ===================
1
+ # Logstash Plugin
3
2
 
4
- This plugin accepts github webhook connections and passes the data into the logstash pipeline.
3
+ This is a plugin for [Logstash](https://github.com/elasticsearch/logstash).
5
4
 
6
- Usage
7
- =====
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.
8
6
 
9
- Example config:
7
+ ## Documentation
10
8
 
11
- input {
12
- stdin {}
13
- github {
14
- port => 8080
15
- }
16
- }
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/).
17
10
 
18
- output {
19
- stdout {
20
- codec => rubydebug
21
- }
22
- }
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
23
13
 
24
- Example Test Case using Curl:
14
+ ## Need Help?
25
15
 
26
- curl -H "Content-Type: application/json" -d '{"Something":"xyz","somethingelse":"xyz"}' http://localhost:8080/api/login
16
+ Need help? Try #logstash on freenode IRC or the logstash-users@googlegroups.com mailing list.
27
17
 
28
- Configuration
29
- =============
18
+ ## Developing
30
19
 
31
- * ip - The IP you want to listen on (Default: 0.0.0.0)
32
- * port - The port you want to listen on
33
- * secret_token - The shared secret set for github webhook
34
- * drop_invalid - Drop events that don't match the secret_token
20
+ ### 1. Plugin Developement and Testing
35
21
 
22
+ #### Code
23
+ - To get started, you'll need JRuby with the Bundler gem installed.
24
+
25
+ - Create a new plugin or clone and existing from the GitHub [logstash-plugins](https://github.com/logstash-plugins) organization.
26
+
27
+ - Install dependencies
28
+ ```sh
29
+ bundle install
30
+ ```
31
+
32
+ #### Test
33
+
34
+ ```sh
35
+ bundle exec rspec
36
+ ```
37
+
38
+ The Logstash code required to run the tests/specs is specified in the `Gemfile` by the line similar to:
39
+ ```ruby
40
+ gem "logstash", :github => "elasticsearch/logstash", :branch => "1.5"
41
+ ```
42
+ To test against another version or a local Logstash, edit the `Gemfile` to specify an alternative location, for example:
43
+ ```ruby
44
+ gem "logstash", :github => "elasticsearch/logstash", :ref => "master"
45
+ ```
46
+ ```ruby
47
+ gem "logstash", :path => "/your/local/logstash"
48
+ ```
49
+
50
+ Then update your dependencies and run your tests:
51
+
52
+ ```sh
53
+ bundle install
54
+ bundle exec rspec
55
+ ```
56
+
57
+ ### 2. Running your unpublished Plugin in Logstash
58
+
59
+ #### 2.1 Run in a local Logstash clone
60
+
61
+ - Edit Logstash `tools/Gemfile` and add the local plugin path, for example:
62
+ ```ruby
63
+ gem "logstash-filter-awesome", :path => "/your/local/logstash-filter-awesome"
64
+ ```
65
+ - Update Logstash dependencies
66
+ ```sh
67
+ rake vendor:gems
68
+ ```
69
+ - Run Logstash with your plugin
70
+ ```sh
71
+ bin/logstash -e 'filter {awesome {}}'
72
+ ```
73
+ At this point any modifications to the plugin code will be applied to this local Logstash setup. After modifying the plugin, simply rerun Logstash.
74
+
75
+ #### 2.2 Run in an installed Logstash
76
+
77
+ - Build your plugin gem
78
+ ```sh
79
+ gem build logstash-filter-awesome.gemspec
80
+ ```
81
+ - Install the plugin from the Logstash home
82
+ ```sh
83
+ bin/plugin install /your/local/plugin/logstash-filter-awesome.gem
84
+ ```
85
+ - Start Logstash and proceed to test the plugin
86
+
87
+ ## Contributing
88
+
89
+ All contributions are welcome: ideas, patches, documentation, bug reports, complaints, and even something you drew up on a napkin.
90
+
91
+ Programming is not a required skill. Whatever you've seen about open source and maintainers or community members saying "send patches or die" - you will not see that here.
92
+
93
+ It is more important to me that you are able to contribute.
94
+
95
+ For more information about contributing, see the [CONTRIBUTING](https://github.com/elasticsearch/logstash/blob/master/CONTRIBUTING.md) file.
@@ -9,7 +9,6 @@ require "rack"
9
9
  # Read events from github webhooks
10
10
  class LogStash::Inputs::GitHub < LogStash::Inputs::Base
11
11
  config_name "github"
12
- milestone 1
13
12
 
14
13
  # The ip to listen on
15
14
  config :ip, :validate => :string, :default => "0.0.0.0"
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-input-github'
4
- s.version = '0.1.1'
4
+ s.version = '0.1.2'
5
5
  s.licenses = ['Apache License (2.0)']
6
6
  s.summary = "Accept events from github webhooks."
7
7
  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"
metadata CHANGED
@@ -1,18 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-input-github
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elasticsearch
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-19 00:00:00.000000000 Z
11
+ date: 2015-01-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: logstash
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.0.0
23
- requirement: !ruby/object:Gem::Requirement
22
+ name: logstash
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,42 +30,42 @@ dependencies:
28
30
  - - <
29
31
  - !ruby/object:Gem::Version
30
32
  version: 2.0.0
31
- prerelease: false
32
- type: :runtime
33
33
  - !ruby/object:Gem::Dependency
34
- name: addressable
35
- version_requirements: !ruby/object:Gem::Requirement
36
- requirements:
37
- - - '>='
38
- - !ruby/object:Gem::Version
39
- version: '0'
40
34
  requirement: !ruby/object:Gem::Requirement
41
35
  requirements:
42
36
  - - '>='
43
37
  - !ruby/object:Gem::Version
44
38
  version: '0'
39
+ name: addressable
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
46
  version: '0'
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 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
62
  email: jason.kendall@elasticsearch.com
63
63
  executables: []
64
64
  extensions: []
65
65
  extra_rdoc_files: []
66
66
  files:
67
+ - CONTRIBUTORS
68
+ - DEVELOPER.md
67
69
  - Gemfile
68
70
  - LICENSE
69
71
  - README.md
@@ -93,7 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
93
95
  version: '0'
94
96
  requirements: []
95
97
  rubyforge_project:
96
- rubygems_version: 2.2.2
98
+ rubygems_version: 2.1.9
97
99
  signing_key:
98
100
  specification_version: 4
99
101
  summary: Accept events from github webhooks.