logstash-input-github 3.0.2 → 3.0.3
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 +4 -4
- data/Gemfile +10 -1
- data/docs/index.asciidoc +81 -0
- data/logstash-input-github.gemspec +2 -2
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3eb037872bb91589dff3cac6d10dcdf57d519940
|
|
4
|
+
data.tar.gz: 06f9a59a5d9d9d173d3c822bc9a696785d0a943d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 97829727f30807f1f7c765068e735d9b510c14c16e7141f9a65735bad07ad9a491087286a042faf963a58938ad335f67cc95c0c2ebae3a64956373b41e9b784c
|
|
7
|
+
data.tar.gz: 4bbd867284680a79d7f72971b5278a796e022e1f0697598c29998d89cc61010395f542ac036df97c5ddc667a1f12f21ad195c8be9343ca89d204b656041d3ebe
|
data/Gemfile
CHANGED
|
@@ -1,2 +1,11 @@
|
|
|
1
1
|
source 'https://rubygems.org'
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
gemspec
|
|
4
|
+
|
|
5
|
+
logstash_path = ENV["LOGSTASH_PATH"] || "../../logstash"
|
|
6
|
+
use_logstash_source = ENV["LOGSTASH_SOURCE"] && ENV["LOGSTASH_SOURCE"].to_s == "1"
|
|
7
|
+
|
|
8
|
+
if Dir.exist?(logstash_path) && use_logstash_source
|
|
9
|
+
gem 'logstash-core', :path => "#{logstash_path}/logstash-core"
|
|
10
|
+
gem 'logstash-core-plugin-api', :path => "#{logstash_path}/logstash-core-plugin-api"
|
|
11
|
+
end
|
data/docs/index.asciidoc
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
:plugin: github
|
|
2
|
+
:type: input
|
|
3
|
+
|
|
4
|
+
///////////////////////////////////////////
|
|
5
|
+
START - GENERATED VARIABLES, DO NOT EDIT!
|
|
6
|
+
///////////////////////////////////////////
|
|
7
|
+
:version: %VERSION%
|
|
8
|
+
:release_date: %RELEASE_DATE%
|
|
9
|
+
:changelog_url: %CHANGELOG_URL%
|
|
10
|
+
:include_path: ../../../../logstash/docs/include
|
|
11
|
+
///////////////////////////////////////////
|
|
12
|
+
END - GENERATED VARIABLES, DO NOT EDIT!
|
|
13
|
+
///////////////////////////////////////////
|
|
14
|
+
|
|
15
|
+
[id="plugins-{type}-{plugin}"]
|
|
16
|
+
|
|
17
|
+
=== Github input plugin
|
|
18
|
+
|
|
19
|
+
include::{include_path}/plugin_header.asciidoc[]
|
|
20
|
+
|
|
21
|
+
==== Description
|
|
22
|
+
|
|
23
|
+
Read events from github webhooks
|
|
24
|
+
|
|
25
|
+
[id="plugins-{type}s-{plugin}-options"]
|
|
26
|
+
==== Github Input Configuration Options
|
|
27
|
+
|
|
28
|
+
This plugin supports the following configuration options plus the <<plugins-{type}s-{plugin}-common-options>> described later.
|
|
29
|
+
|
|
30
|
+
[cols="<,<,<",options="header",]
|
|
31
|
+
|=======================================================================
|
|
32
|
+
|Setting |Input type|Required
|
|
33
|
+
| <<plugins-{type}s-{plugin}-drop_invalid>> |<<boolean,boolean>>|No
|
|
34
|
+
| <<plugins-{type}s-{plugin}-ip>> |<<string,string>>|No
|
|
35
|
+
| <<plugins-{type}s-{plugin}-port>> |<<number,number>>|Yes
|
|
36
|
+
| <<plugins-{type}s-{plugin}-secret_token>> |<<string,string>>|No
|
|
37
|
+
|=======================================================================
|
|
38
|
+
|
|
39
|
+
Also see <<plugins-{type}s-{plugin}-common-options>> for a list of options supported by all
|
|
40
|
+
input plugins.
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
[id="plugins-{type}s-{plugin}-drop_invalid"]
|
|
45
|
+
===== `drop_invalid`
|
|
46
|
+
|
|
47
|
+
* Value type is <<boolean,boolean>>
|
|
48
|
+
* Default value is `false`
|
|
49
|
+
|
|
50
|
+
If Secret is defined, we drop the events that don't match.
|
|
51
|
+
Otherwise, we'll just add an invalid tag
|
|
52
|
+
|
|
53
|
+
[id="plugins-{type}s-{plugin}-ip"]
|
|
54
|
+
===== `ip`
|
|
55
|
+
|
|
56
|
+
* Value type is <<string,string>>
|
|
57
|
+
* Default value is `"0.0.0.0"`
|
|
58
|
+
|
|
59
|
+
The ip to listen on
|
|
60
|
+
|
|
61
|
+
[id="plugins-{type}s-{plugin}-port"]
|
|
62
|
+
===== `port`
|
|
63
|
+
|
|
64
|
+
* This is a required setting.
|
|
65
|
+
* Value type is <<number,number>>
|
|
66
|
+
* There is no default value for this setting.
|
|
67
|
+
|
|
68
|
+
The port to listen on
|
|
69
|
+
|
|
70
|
+
[id="plugins-{type}s-{plugin}-secret_token"]
|
|
71
|
+
===== `secret_token`
|
|
72
|
+
|
|
73
|
+
* Value type is <<string,string>>
|
|
74
|
+
* There is no default value for this setting.
|
|
75
|
+
|
|
76
|
+
Your GitHub Secret Token for the webhook
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
[id="plugins-{type}s-{plugin}-common-options"]
|
|
81
|
+
include::{include_path}/{type}.asciidoc[]
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Gem::Specification.new do |s|
|
|
2
2
|
|
|
3
3
|
s.name = 'logstash-input-github'
|
|
4
|
-
s.version = '3.0.
|
|
4
|
+
s.version = '3.0.3'
|
|
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/logstash-plugin install gemname. This gem is not a stand-alone program"
|
|
@@ -11,7 +11,7 @@ Gem::Specification.new do |s|
|
|
|
11
11
|
s.require_paths = ["lib"]
|
|
12
12
|
|
|
13
13
|
# Files
|
|
14
|
-
s.files = Dir[
|
|
14
|
+
s.files = Dir["lib/**/*","spec/**/*","*.gemspec","*.md","CONTRIBUTORS","Gemfile","LICENSE","NOTICE.TXT", "vendor/jar-dependencies/**/*.jar", "vendor/jar-dependencies/**/*.rb", "VERSION", "docs/**/*"]
|
|
15
15
|
|
|
16
16
|
# Tests
|
|
17
17
|
s.test_files = s.files.grep(%r{^(test|spec|features)/})
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: logstash-input-github
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.0.
|
|
4
|
+
version: 3.0.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Elastic
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-
|
|
11
|
+
date: 2017-06-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -99,6 +99,7 @@ files:
|
|
|
99
99
|
- LICENSE
|
|
100
100
|
- NOTICE.TXT
|
|
101
101
|
- README.md
|
|
102
|
+
- docs/index.asciidoc
|
|
102
103
|
- lib/logstash/inputs/github.rb
|
|
103
104
|
- logstash-input-github.gemspec
|
|
104
105
|
- spec/fixtures/event_create.json
|