logstash-output-websocket 3.0.1 → 3.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +10 -1
- data/docs/index.asciidoc +66 -0
- data/logstash-output-websocket.gemspec +3 -3
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: efc39ac1b309b5b95699f4d12bec809a7bf9108f
|
4
|
+
data.tar.gz: 4fb13229f61a6627948a0db54188886a9e451dae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 87f7e87abd45517672f48b34948b68f81365f21ae2cef7d007569c74ef32d4ba69b5f752ae61696ce37f8e889fe058c4f323c06c4b33e4cf57c2afe1eb3941c0
|
7
|
+
data.tar.gz: 8260b3af10a440d53254fa66577bfa6d284aec3a14d04e5d066678d3d785c2146842d2a9f49568a2bdf59bb7d2cd9d9b511a43eb828b5e2fd5a662816adf73c0
|
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,66 @@
|
|
1
|
+
:plugin: websocket
|
2
|
+
:type: output
|
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
|
+
=== Websocket output plugin
|
18
|
+
|
19
|
+
include::{include_path}/plugin_header.asciidoc[]
|
20
|
+
|
21
|
+
==== Description
|
22
|
+
|
23
|
+
This output runs a websocket server and publishes any
|
24
|
+
messages to all connected websocket clients.
|
25
|
+
|
26
|
+
You can connect to it with ws://<host\>:<port\>/
|
27
|
+
|
28
|
+
If no clients are connected, any messages received are ignored.
|
29
|
+
|
30
|
+
[id="plugins-{type}s-{plugin}-options"]
|
31
|
+
==== Websocket Output Configuration Options
|
32
|
+
|
33
|
+
This plugin supports the following configuration options plus the <<plugins-{type}s-{plugin}-common-options>> described later.
|
34
|
+
|
35
|
+
[cols="<,<,<",options="header",]
|
36
|
+
|=======================================================================
|
37
|
+
|Setting |Input type|Required
|
38
|
+
| <<plugins-{type}s-{plugin}-host>> |<<string,string>>|No
|
39
|
+
| <<plugins-{type}s-{plugin}-port>> |<<number,number>>|No
|
40
|
+
|=======================================================================
|
41
|
+
|
42
|
+
Also see <<plugins-{type}s-{plugin}-common-options>> for a list of options supported by all
|
43
|
+
output plugins.
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
[id="plugins-{type}s-{plugin}-host"]
|
48
|
+
===== `host`
|
49
|
+
|
50
|
+
* Value type is <<string,string>>
|
51
|
+
* Default value is `"0.0.0.0"`
|
52
|
+
|
53
|
+
The address to serve websocket data from
|
54
|
+
|
55
|
+
[id="plugins-{type}s-{plugin}-port"]
|
56
|
+
===== `port`
|
57
|
+
|
58
|
+
* Value type is <<number,number>>
|
59
|
+
* Default value is `3232`
|
60
|
+
|
61
|
+
The port to serve websocket data from
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
[id="plugins-{type}s-{plugin}-common-options"]
|
66
|
+
include::{include_path}/{type}.asciidoc[]
|
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
|
3
3
|
s.name = 'logstash-output-websocket'
|
4
|
-
s.version = '3.0.
|
4
|
+
s.version = '3.0.2'
|
5
5
|
s.licenses = ['Apache License (2.0)']
|
6
6
|
s.summary = "This output runs a websocket server and publishes any messages to all connected websocket clients."
|
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)/})
|
@@ -23,7 +23,7 @@ Gem::Specification.new do |s|
|
|
23
23
|
s.add_runtime_dependency "logstash-core-plugin-api", ">= 1.60", "<= 2.99"
|
24
24
|
s.add_runtime_dependency 'logstash-codec-plain'
|
25
25
|
s.add_runtime_dependency 'sinatra', '~> 1.4.6'
|
26
|
-
s.add_runtime_dependency 'ftw', ['~> 0.0.
|
26
|
+
s.add_runtime_dependency 'ftw', ['~> 0.0.46']
|
27
27
|
|
28
28
|
s.add_development_dependency 'logstash-devutils'
|
29
29
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-output-websocket
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elastic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
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
|
@@ -63,7 +63,7 @@ dependencies:
|
|
63
63
|
requirements:
|
64
64
|
- - "~>"
|
65
65
|
- !ruby/object:Gem::Version
|
66
|
-
version: 0.0.
|
66
|
+
version: 0.0.46
|
67
67
|
name: ftw
|
68
68
|
prerelease: false
|
69
69
|
type: :runtime
|
@@ -71,7 +71,7 @@ dependencies:
|
|
71
71
|
requirements:
|
72
72
|
- - "~>"
|
73
73
|
- !ruby/object:Gem::Version
|
74
|
-
version: 0.0.
|
74
|
+
version: 0.0.46
|
75
75
|
- !ruby/object:Gem::Dependency
|
76
76
|
requirement: !ruby/object:Gem::Requirement
|
77
77
|
requirements:
|
@@ -98,6 +98,7 @@ files:
|
|
98
98
|
- LICENSE
|
99
99
|
- NOTICE.TXT
|
100
100
|
- README.md
|
101
|
+
- docs/index.asciidoc
|
101
102
|
- lib/logstash/outputs/websocket.rb
|
102
103
|
- lib/logstash/outputs/websocket/app.rb
|
103
104
|
- lib/logstash/outputs/websocket/pubsub.rb
|
@@ -125,7 +126,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
125
126
|
version: '0'
|
126
127
|
requirements: []
|
127
128
|
rubyforge_project:
|
128
|
-
rubygems_version: 2.
|
129
|
+
rubygems_version: 2.4.8
|
129
130
|
signing_key:
|
130
131
|
specification_version: 4
|
131
132
|
summary: This output runs a websocket server and publishes any messages to all connected websocket clients.
|