logstash-input-http 0.0.1 → 1.0.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 032fe90380dce11dd20661a8aac9084aeaf1d98c
4
- data.tar.gz: 4d54c4885e13df803bb65be27fadab2ffce058dc
3
+ metadata.gz: e3ef94ce2c9c91d5297661dfc7a45bc14460519f
4
+ data.tar.gz: e32e3fc140f3c393ee4706478cd7a01d989877a3
5
5
  SHA512:
6
- metadata.gz: bc1a5f6af20ffee231471deb4f3f424c60891053acdb89d9b6c88e53c5775874af31451322f812631e1ec7d1a8522692a51647b9ab34a4dc349b20a4972a073b
7
- data.tar.gz: d6f67bf01ae8bc102de7eb14bb877a03daacb99d27367e4805343540d5f8ad8d778ac1bfc74b45982a68c5fe3f5ffe8916ebd4f9e95591583c3e193cda6472eb
6
+ metadata.gz: d4631608a1130879d51dcc9a0a579524615231e1b9c8eb47dcd5ff5b1d0377703bda0efd2f88310825222194246652659641cb77cfa1b2f857793330bfb1e32c
7
+ data.tar.gz: 6a45315540c7908de5e106c49f35ee236abfa0f55fb0e7eccdaa67d64007eaa133b438fe60925e62f39f89b2d2be0bd8cbccdc96eff808a6528fd7bd95dd2b12
data/CHANGELOG.md CHANGED
@@ -0,0 +1,4 @@
1
+ ## 1.0.0 (July 1, 2015)
2
+
3
+ * First version: New input to receive HTTP requests
4
+ * Added basic authentication and SSL support
data/NOTICE.TXT ADDED
@@ -0,0 +1,5 @@
1
+ Elasticsearch
2
+ Copyright 2012-2015 Elasticsearch
3
+
4
+ This product includes software developed by The Apache Software
5
+ Foundation (http://www.apache.org/).
@@ -11,26 +11,47 @@ class Puma::Server
11
11
  def normalize_env(env, client); end
12
12
  end
13
13
 
14
- # This output opens a web server and listens to HTTP requests,
15
- # converting them to LogStash::Event instances.
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
- # If undefined, Logstash will complain, even if codec is unused.
39
+ # Codec used to decode the incoming data.
21
40
  default :codec, "plain"
22
41
 
23
- # Which host or ip to bind to
42
+ # The host or ip to bind
24
43
  config :host, :validate => :string, :default => "0.0.0.0"
25
44
 
26
- # Which TCP port to bind to
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
- # Basic Auth
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
- # here you can describe how to decode specific content-types
50
- # by default the default codec will be used
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
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-input-http'
3
- s.version = '0.0.1'
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.1
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-17 00:00:00.000000000 Z
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.4.5
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