logstash-input-http 0.0.1 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/NOTICE.TXT +5 -0
- data/lib/logstash/inputs/http.rb +29 -10
- data/logstash-input-http.gemspec +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e3ef94ce2c9c91d5297661dfc7a45bc14460519f
|
4
|
+
data.tar.gz: e32e3fc140f3c393ee4706478cd7a01d989877a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d4631608a1130879d51dcc9a0a579524615231e1b9c8eb47dcd5ff5b1d0377703bda0efd2f88310825222194246652659641cb77cfa1b2f857793330bfb1e32c
|
7
|
+
data.tar.gz: 6a45315540c7908de5e106c49f35ee236abfa0f55fb0e7eccdaa67d64007eaa133b438fe60925e62f39f89b2d2be0bd8cbccdc96eff808a6528fd7bd95dd2b12
|
data/CHANGELOG.md
CHANGED
data/NOTICE.TXT
ADDED
data/lib/logstash/inputs/http.rb
CHANGED
@@ -11,26 +11,47 @@ class Puma::Server
|
|
11
11
|
def normalize_env(env, client); end
|
12
12
|
end
|
13
13
|
|
14
|
-
#
|
15
|
-
#
|
14
|
+
# Using this input you can receive single or multiline events over http(s).
|
15
|
+
# Applications can send a HTTP POST request with a body to the endpoint started by this
|
16
|
+
# input and Logstash will convert it into an event for subsequent processing. Users
|
17
|
+
# can pass plain text, JSON, or any formatted data and use a corresponding codec with this
|
18
|
+
# input. For Content-Type `application/json` the `json` codec is used, but for all other
|
19
|
+
# data formats, `plain` codec is used.
|
20
|
+
#
|
21
|
+
# This input can also be used to receive webhook requests to integrate with other services
|
22
|
+
# and applications. By taking advantage of the vast plugin ecosystem available in Logstash
|
23
|
+
# you can trigger actionable events right from your application.
|
24
|
+
#
|
25
|
+
# ==== Security
|
26
|
+
# This plugin supports standard HTTP basic authentication headers to identify the requester.
|
27
|
+
# You can pass in an username, password combination while sending data to this input
|
28
|
+
#
|
29
|
+
# You can also setup SSL and send data securely over https, with an option of validating
|
30
|
+
# the client's certificate. Currently, the certificate setup is through
|
31
|
+
# https://docs.oracle.com/cd/E19509-01/820-3503/ggfen/index.html[Java Keystore
|
32
|
+
# format]
|
16
33
|
#
|
17
34
|
class LogStash::Inputs::Http < LogStash::Inputs::Base
|
35
|
+
#TODO: config :cacert, :validate => :path
|
36
|
+
|
18
37
|
config_name "http"
|
19
38
|
|
20
|
-
#
|
39
|
+
# Codec used to decode the incoming data.
|
21
40
|
default :codec, "plain"
|
22
41
|
|
23
|
-
#
|
42
|
+
# The host or ip to bind
|
24
43
|
config :host, :validate => :string, :default => "0.0.0.0"
|
25
44
|
|
26
|
-
#
|
45
|
+
# The TCP port to bind to
|
27
46
|
config :port, :validate => :number, :default => 8080
|
28
47
|
|
29
48
|
# Maximum number of threads to use
|
30
49
|
config :threads, :validate => :number, :default => 4
|
31
50
|
|
32
|
-
#
|
51
|
+
# Username for basic authorization
|
33
52
|
config :user, :validate => :string, :required => false
|
53
|
+
|
54
|
+
# Password for basic authorization
|
34
55
|
config :password, :validate => :password, :required => false
|
35
56
|
|
36
57
|
# SSL Configurations
|
@@ -41,13 +62,11 @@ class LogStash::Inputs::Http < LogStash::Inputs::Base
|
|
41
62
|
# The JKS keystore to validate the client's certificates
|
42
63
|
config :keystore, :validate => :path
|
43
64
|
|
44
|
-
#TODO: config :cacert, :validate => :path
|
45
|
-
|
46
65
|
# Set the truststore password
|
47
66
|
config :keystore_password, :validate => :password
|
48
67
|
|
49
|
-
#
|
50
|
-
#
|
68
|
+
# Here you can set how to decode specific content-types in the body of the request.
|
69
|
+
# By default, the plain codec will be used
|
51
70
|
config :additional_codecs, :validate => :hash, :default => { "application/json" => "json" }
|
52
71
|
|
53
72
|
# useless headers puma adds to the requests
|
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 = '0.0
|
3
|
+
s.version = '1.0.0'
|
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/plugin install gemname. This gem is not a stand-alone program"
|
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: 0.0
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elastic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-06-
|
11
|
+
date: 2015-06-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: logstash-core
|
@@ -125,6 +125,7 @@ files:
|
|
125
125
|
- DEVELOPER.md
|
126
126
|
- Gemfile
|
127
127
|
- LICENSE
|
128
|
+
- NOTICE.TXT
|
128
129
|
- README.md
|
129
130
|
- Rakefile
|
130
131
|
- lib/logstash/inputs/http.rb
|
@@ -152,7 +153,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
152
153
|
version: '0'
|
153
154
|
requirements: []
|
154
155
|
rubyforge_project:
|
155
|
-
rubygems_version: 2.
|
156
|
+
rubygems_version: 2.2.2
|
156
157
|
signing_key:
|
157
158
|
specification_version: 4
|
158
159
|
summary: Logstash Input plugin that receives HTTP requests
|