logstash-input-http 3.0.4 → 3.0.5
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 +8 -1
- data/docs/index.asciidoc +168 -0
- data/logstash-input-http.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: 2fe5805c70b550e5f0018dcc3a44d1d91cb2dde1
|
4
|
+
data.tar.gz: 34e1fd4ae0d574677120dadaa5060083162c4a2c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1965ab1d8ae107db85b805671e979829918025b6812192dd75088b74208ccbd5a0c2a35d85704d0325c96fbafad525b255ef724224b47fc77aa6cc09d3c0aac6
|
7
|
+
data.tar.gz: b27b81102449ae08abe240073f9e200c8649c37f615291ebb77a940cfc5da1045dddf4743aefc11a91b7bd5ba4195f3e2d6d8aed43763c8ddc3123b21aa0d11b
|
data/Gemfile
CHANGED
@@ -1,4 +1,11 @@
|
|
1
1
|
source 'https://rubygems.org'
|
2
2
|
|
3
|
-
# Specify your gem's dependencies in logstash-mass_effect.gemspec
|
4
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,168 @@
|
|
1
|
+
:plugin: http
|
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
|
+
=== Http input plugin
|
18
|
+
|
19
|
+
include::{include_path}/plugin_header.asciidoc[]
|
20
|
+
|
21
|
+
==== Description
|
22
|
+
|
23
|
+
Using this input you can receive single or multiline events over http(s).
|
24
|
+
Applications can send an HTTP POST request with a body to the endpoint started by this
|
25
|
+
input and Logstash will convert it into an event for subsequent processing. Users
|
26
|
+
can pass plain text, JSON, or any formatted data and use a corresponding codec with this
|
27
|
+
input. For Content-Type `application/json` the `json` codec is used, but for all other
|
28
|
+
data formats, `plain` codec is used.
|
29
|
+
|
30
|
+
This input can also be used to receive webhook requests to integrate with other services
|
31
|
+
and applications. By taking advantage of the vast plugin ecosystem available in Logstash
|
32
|
+
you can trigger actionable events right from your application.
|
33
|
+
|
34
|
+
==== Security
|
35
|
+
This plugin supports standard HTTP basic authentication headers to identify the requester.
|
36
|
+
You can pass in a username, password combination while sending data to this input
|
37
|
+
|
38
|
+
You can also setup SSL and send data securely over https, with an option of validating
|
39
|
+
the client's certificate. Currently, the certificate setup is through
|
40
|
+
https://docs.oracle.com/cd/E19509-01/820-3503/ggfen/index.html[Java Keystore
|
41
|
+
format]
|
42
|
+
|
43
|
+
|
44
|
+
[id="plugins-{type}s-{plugin}-options"]
|
45
|
+
==== Http Input Configuration Options
|
46
|
+
|
47
|
+
This plugin supports the following configuration options plus the <<plugins-{type}s-{plugin}-common-options>> described later.
|
48
|
+
|
49
|
+
[cols="<,<,<",options="header",]
|
50
|
+
|=======================================================================
|
51
|
+
|Setting |Input type|Required
|
52
|
+
| <<plugins-{type}s-{plugin}-additional_codecs>> |<<hash,hash>>|No
|
53
|
+
| <<plugins-{type}s-{plugin}-host>> |<<string,string>>|No
|
54
|
+
| <<plugins-{type}s-{plugin}-keystore>> |a valid filesystem path|No
|
55
|
+
| <<plugins-{type}s-{plugin}-keystore_password>> |<<password,password>>|No
|
56
|
+
| <<plugins-{type}s-{plugin}-password>> |<<password,password>>|No
|
57
|
+
| <<plugins-{type}s-{plugin}-port>> |<<number,number>>|No
|
58
|
+
| <<plugins-{type}s-{plugin}-response_headers>> |<<hash,hash>>|No
|
59
|
+
| <<plugins-{type}s-{plugin}-ssl>> |<<boolean,boolean>>|No
|
60
|
+
| <<plugins-{type}s-{plugin}-threads>> |<<number,number>>|No
|
61
|
+
| <<plugins-{type}s-{plugin}-user>> |<<string,string>>|No
|
62
|
+
| <<plugins-{type}s-{plugin}-verify_mode>> |<<string,string>>, one of `["none", "peer", "force_peer"]`|No
|
63
|
+
|=======================================================================
|
64
|
+
|
65
|
+
Also see <<plugins-{type}s-{plugin}-common-options>> for a list of options supported by all
|
66
|
+
input plugins.
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
[id="plugins-{type}s-{plugin}-additional_codecs"]
|
71
|
+
===== `additional_codecs`
|
72
|
+
|
73
|
+
* Value type is <<hash,hash>>
|
74
|
+
* Default value is `{"application/json"=>"json"}`
|
75
|
+
|
76
|
+
Apply specific codecs for specific content types.
|
77
|
+
The default codec will be applied only after this list is checked
|
78
|
+
and no codec for the request's content-type is found
|
79
|
+
|
80
|
+
[id="plugins-{type}s-{plugin}-host"]
|
81
|
+
===== `host`
|
82
|
+
|
83
|
+
* Value type is <<string,string>>
|
84
|
+
* Default value is `"0.0.0.0"`
|
85
|
+
|
86
|
+
Codec used to decode the incoming data.
|
87
|
+
This codec will be used as a fall-back if the content-type
|
88
|
+
is not found in the "additional_codecs" hash
|
89
|
+
The host or ip to bind
|
90
|
+
|
91
|
+
[id="plugins-{type}s-{plugin}-keystore"]
|
92
|
+
===== `keystore`
|
93
|
+
|
94
|
+
* Value type is <<path,path>>
|
95
|
+
* There is no default value for this setting.
|
96
|
+
|
97
|
+
The JKS keystore to validate the client's certificates
|
98
|
+
|
99
|
+
[id="plugins-{type}s-{plugin}-keystore_password"]
|
100
|
+
===== `keystore_password`
|
101
|
+
|
102
|
+
* Value type is <<password,password>>
|
103
|
+
* There is no default value for this setting.
|
104
|
+
|
105
|
+
Set the truststore password
|
106
|
+
|
107
|
+
[id="plugins-{type}s-{plugin}-password"]
|
108
|
+
===== `password`
|
109
|
+
|
110
|
+
* Value type is <<password,password>>
|
111
|
+
* There is no default value for this setting.
|
112
|
+
|
113
|
+
Password for basic authorization
|
114
|
+
|
115
|
+
[id="plugins-{type}s-{plugin}-port"]
|
116
|
+
===== `port`
|
117
|
+
|
118
|
+
* Value type is <<number,number>>
|
119
|
+
* Default value is `8080`
|
120
|
+
|
121
|
+
The TCP port to bind to
|
122
|
+
|
123
|
+
[id="plugins-{type}s-{plugin}-response_headers"]
|
124
|
+
===== `response_headers`
|
125
|
+
|
126
|
+
* Value type is <<hash,hash>>
|
127
|
+
* Default value is `{"Content-Type"=>"text/plain"}`
|
128
|
+
|
129
|
+
specify a custom set of response headers
|
130
|
+
|
131
|
+
[id="plugins-{type}s-{plugin}-ssl"]
|
132
|
+
===== `ssl`
|
133
|
+
|
134
|
+
* Value type is <<boolean,boolean>>
|
135
|
+
* Default value is `false`
|
136
|
+
|
137
|
+
SSL Configurations
|
138
|
+
|
139
|
+
Enable SSL
|
140
|
+
|
141
|
+
[id="plugins-{type}s-{plugin}-threads"]
|
142
|
+
===== `threads`
|
143
|
+
|
144
|
+
* Value type is <<number,number>>
|
145
|
+
* Default value is `4`
|
146
|
+
|
147
|
+
Maximum number of threads to use
|
148
|
+
|
149
|
+
[id="plugins-{type}s-{plugin}-user"]
|
150
|
+
===== `user`
|
151
|
+
|
152
|
+
* Value type is <<string,string>>
|
153
|
+
* There is no default value for this setting.
|
154
|
+
|
155
|
+
Username for basic authorization
|
156
|
+
|
157
|
+
[id="plugins-{type}s-{plugin}-verify_mode"]
|
158
|
+
===== `verify_mode`
|
159
|
+
|
160
|
+
* Value can be any of: `none`, `peer`, `force_peer`
|
161
|
+
* Default value is `"none"`
|
162
|
+
|
163
|
+
Set the client certificate verification method. Valid methods: none, peer, force_peer
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
[id="plugins-{type}s-{plugin}-common-options"]
|
168
|
+
include::{include_path}/{type}.asciidoc[]
|
data/logstash-input-http.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'logstash-input-http'
|
3
|
-
s.version = '3.0.
|
3
|
+
s.version = '3.0.5'
|
4
4
|
s.licenses = ['Apache License (2.0)']
|
5
5
|
s.summary = "Logstash Input plugin that receives HTTP requests"
|
6
6
|
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"
|
@@ -10,7 +10,7 @@ Gem::Specification.new do |s|
|
|
10
10
|
s.require_paths = ["lib"]
|
11
11
|
|
12
12
|
# Files
|
13
|
-
s.files = Dir[
|
13
|
+
s.files = Dir["lib/**/*","spec/**/*","*.gemspec","*.md","CONTRIBUTORS","Gemfile","LICENSE","NOTICE.TXT", "vendor/jar-dependencies/**/*.jar", "vendor/jar-dependencies/**/*.rb", "VERSION", "docs/**/*"]
|
14
14
|
# Tests
|
15
15
|
s.test_files = s.files.grep(%r{^(test|spec|features)/})
|
16
16
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-input-http
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.5
|
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
|
@@ -146,6 +146,7 @@ files:
|
|
146
146
|
- LICENSE
|
147
147
|
- NOTICE.TXT
|
148
148
|
- README.md
|
149
|
+
- docs/index.asciidoc
|
149
150
|
- lib/logstash/inputs/http.rb
|
150
151
|
- lib/logstash/util/http_compressed_requests.rb
|
151
152
|
- logstash-input-http.gemspec
|