logstash-output-juggernaut 3.0.2 → 3.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +8 -1
- data/docs/index.asciidoc +115 -0
- data/logstash-output-juggernaut.gemspec +2 -2
- 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: f45ab2826dfaa37c497f97bc3bff76d79fb304e5
|
4
|
+
data.tar.gz: 8c095b68958ba0b53808fdce889426fb7cb709d2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 008a80677e88cb000f4a609def08776286e9ac436ff726dd7ddd1609692f719b39f152f363eba66d25d427e5ee8c47cce2d35d589f4521dabd71b76e0245494e
|
7
|
+
data.tar.gz: b01bcb96fb96cf115904bf5560717403cbef1a08543e0ab274c5dfff5f097813bd84f61a758898386406f8544e8a6e56502b232c3bf52e3739b645980e015d4d
|
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,115 @@
|
|
1
|
+
:plugin: juggernaut
|
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
|
+
=== Juggernaut output plugin
|
18
|
+
|
19
|
+
include::{include_path}/plugin_header.asciidoc[]
|
20
|
+
|
21
|
+
==== Description
|
22
|
+
|
23
|
+
Push messages to the juggernaut websockets server:
|
24
|
+
|
25
|
+
* https://github.com/maccman/juggernaut
|
26
|
+
|
27
|
+
Wraps Websockets and supports other methods (including xhr longpolling) This
|
28
|
+
is basically, just an extension of the redis output (Juggernaut pulls
|
29
|
+
messages from redis). But it pushes messages to a particular channel and
|
30
|
+
formats the messages in the way juggernaut expects.
|
31
|
+
|
32
|
+
[id="plugins-{type}s-{plugin}-options"]
|
33
|
+
==== Juggernaut Output Configuration Options
|
34
|
+
|
35
|
+
This plugin supports the following configuration options plus the <<plugins-{type}s-{plugin}-common-options>> described later.
|
36
|
+
|
37
|
+
[cols="<,<,<",options="header",]
|
38
|
+
|=======================================================================
|
39
|
+
|Setting |Input type|Required
|
40
|
+
| <<plugins-{type}s-{plugin}-channels>> |<<array,array>>|Yes
|
41
|
+
| <<plugins-{type}s-{plugin}-db>> |<<number,number>>|No
|
42
|
+
| <<plugins-{type}s-{plugin}-host>> |<<string,string>>|No
|
43
|
+
| <<plugins-{type}s-{plugin}-message_format>> |<<string,string>>|No
|
44
|
+
| <<plugins-{type}s-{plugin}-password>> |<<password,password>>|No
|
45
|
+
| <<plugins-{type}s-{plugin}-port>> |<<number,number>>|No
|
46
|
+
| <<plugins-{type}s-{plugin}-timeout>> |<<number,number>>|No
|
47
|
+
|=======================================================================
|
48
|
+
|
49
|
+
Also see <<plugins-{type}s-{plugin}-common-options>> for a list of options supported by all
|
50
|
+
output plugins.
|
51
|
+
|
52
|
+
|
53
|
+
|
54
|
+
[id="plugins-{type}s-{plugin}-channels"]
|
55
|
+
===== `channels`
|
56
|
+
|
57
|
+
* This is a required setting.
|
58
|
+
* Value type is <<array,array>>
|
59
|
+
* There is no default value for this setting.
|
60
|
+
|
61
|
+
List of channels to which to publish. Dynamic names are
|
62
|
+
valid here, for example `logstash-%{type}`.
|
63
|
+
|
64
|
+
[id="plugins-{type}s-{plugin}-db"]
|
65
|
+
===== `db`
|
66
|
+
|
67
|
+
* Value type is <<number,number>>
|
68
|
+
* Default value is `0`
|
69
|
+
|
70
|
+
The redis database number.
|
71
|
+
|
72
|
+
[id="plugins-{type}s-{plugin}-host"]
|
73
|
+
===== `host`
|
74
|
+
|
75
|
+
* Value type is <<string,string>>
|
76
|
+
* Default value is `"127.0.0.1"`
|
77
|
+
|
78
|
+
The hostname of the redis server to which juggernaut is listening.
|
79
|
+
|
80
|
+
[id="plugins-{type}s-{plugin}-message_format"]
|
81
|
+
===== `message_format`
|
82
|
+
|
83
|
+
* Value type is <<string,string>>
|
84
|
+
* There is no default value for this setting.
|
85
|
+
|
86
|
+
How should the message be formatted before pushing to the websocket.
|
87
|
+
|
88
|
+
[id="plugins-{type}s-{plugin}-password"]
|
89
|
+
===== `password`
|
90
|
+
|
91
|
+
* Value type is <<password,password>>
|
92
|
+
* There is no default value for this setting.
|
93
|
+
|
94
|
+
Password to authenticate with. There is no authentication by default.
|
95
|
+
|
96
|
+
[id="plugins-{type}s-{plugin}-port"]
|
97
|
+
===== `port`
|
98
|
+
|
99
|
+
* Value type is <<number,number>>
|
100
|
+
* Default value is `6379`
|
101
|
+
|
102
|
+
The port to connect on.
|
103
|
+
|
104
|
+
[id="plugins-{type}s-{plugin}-timeout"]
|
105
|
+
===== `timeout`
|
106
|
+
|
107
|
+
* Value type is <<number,number>>
|
108
|
+
* Default value is `5`
|
109
|
+
|
110
|
+
Redis initial connection timeout in seconds.
|
111
|
+
|
112
|
+
|
113
|
+
|
114
|
+
[id="plugins-{type}s-{plugin}-common-options"]
|
115
|
+
include::{include_path}/{type}.asciidoc[]
|
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
|
3
3
|
s.name = 'logstash-output-juggernaut'
|
4
|
-
s.version = '3.0.
|
4
|
+
s.version = '3.0.3'
|
5
5
|
s.licenses = ['Apache License (2.0)']
|
6
6
|
s.summary = "Push messages to the juggernaut websockets server"
|
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-output-juggernaut
|
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:
|
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
|
@@ -70,6 +70,7 @@ files:
|
|
70
70
|
- LICENSE
|
71
71
|
- NOTICE.TXT
|
72
72
|
- README.md
|
73
|
+
- docs/index.asciidoc
|
73
74
|
- lib/logstash/outputs/juggernaut.rb
|
74
75
|
- logstash-output-juggernaut.gemspec
|
75
76
|
- spec/outputs/juggernaut_spec.rb
|
@@ -95,7 +96,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
95
96
|
version: '0'
|
96
97
|
requirements: []
|
97
98
|
rubyforge_project:
|
98
|
-
rubygems_version: 2.
|
99
|
+
rubygems_version: 2.4.8
|
99
100
|
signing_key:
|
100
101
|
specification_version: 4
|
101
102
|
summary: Push messages to the juggernaut websockets server
|