logstash-output-jms 2.0.4 → 3.0.1
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 +5 -5
- data/CHANGELOG.md +5 -0
- data/Gemfile +10 -1
- data/README.md +7 -3
- data/docs/index.asciidoc +175 -0
- data/{logstash-input-jms.gemspec → logstash-output-jms.gemspec} +5 -5
- metadata +18 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: d29dd0e42f172b114c16ccddea37a69bcf172e1918164b7f8ff4713d3b72ba51
|
4
|
+
data.tar.gz: 6bf74a5605a63e53646fa1497af9ffcdfe008f59bffe6bf4b098d19f45ecbc37
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c0439f42162abed9e1cd8c05c5bc6b187915411750030c10b3e30c892ccd8e9a3486862e2ec2fa98bb8e16c2e6ed497ec42cbd478b6447b90306bd9afb839bac
|
7
|
+
data.tar.gz: 024b2924f0225757c7a69df9aed8b164b961b785b13b4595106092d744499b96100d32999707f6c941f7d8e7ea2e3511f3e217eb492528ab384ac889caac2f99
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
## 3.0.0
|
2
|
+
- Breaking: Updated plugin to use new Java Event APIs
|
3
|
+
- relax logstash-core-plugin-api constrains
|
4
|
+
- update .travis.yml
|
5
|
+
|
1
6
|
# 2.0.4
|
2
7
|
- Depend on logstash-core-plugin-api instead of logstash-core, removing the need to mass update plugins on major releases of logstash
|
3
8
|
# 2.0.3
|
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/README.md
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
# Logstash Plugin
|
2
2
|
|
3
|
-
[](http://build-eu-00.elastic.co/view/LS%20Plugins/view/LS%20Outputs/job/logstash-plugin-output-jms-unit/)
|
3
|
+
[](https://travis-ci.org/logstash-plugins/logstash-output-jms)
|
5
4
|
|
6
5
|
This is a plugin for [Logstash](https://github.com/elastic/logstash).
|
7
6
|
|
@@ -83,7 +82,12 @@ gem build logstash-filter-awesome.gemspec
|
|
83
82
|
```
|
84
83
|
- Install the plugin from the Logstash home
|
85
84
|
```sh
|
86
|
-
|
85
|
+
# Logstash 2.3 and higher
|
86
|
+
bin/logstash-plugin install --no-verify
|
87
|
+
|
88
|
+
# Prior to Logstash 2.3
|
89
|
+
bin/plugin install --no-verify
|
90
|
+
|
87
91
|
```
|
88
92
|
- Start Logstash and proceed to test the plugin
|
89
93
|
|
data/docs/index.asciidoc
ADDED
@@ -0,0 +1,175 @@
|
|
1
|
+
:plugin: jms
|
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
|
+
=== Jms output plugin
|
18
|
+
|
19
|
+
include::{include_path}/plugin_header.asciidoc[]
|
20
|
+
|
21
|
+
==== Description
|
22
|
+
|
23
|
+
Write events to a Jms Broker. Supports both Jms Queues and Topics.
|
24
|
+
|
25
|
+
For more information about Jms, see <http://docs.oracle.com/javaee/6/tutorial/doc/bncdq.html>
|
26
|
+
For more information about the Ruby Gem used, see <http://github.com/reidmorrison/jruby-jms>
|
27
|
+
Here is a config example :
|
28
|
+
jms {
|
29
|
+
include_header => false
|
30
|
+
include_properties => false
|
31
|
+
include_body => true
|
32
|
+
use_jms_timestamp => false
|
33
|
+
queue_name => "myqueue"
|
34
|
+
yaml_file => "~/jms.yml"
|
35
|
+
yaml_section => "mybroker"
|
36
|
+
}
|
37
|
+
|
38
|
+
|
39
|
+
|
40
|
+
[id="plugins-{type}s-{plugin}-options"]
|
41
|
+
==== Jms Output Configuration Options
|
42
|
+
|
43
|
+
This plugin supports the following configuration options plus the <<plugins-{type}s-{plugin}-common-options>> described later.
|
44
|
+
|
45
|
+
[cols="<,<,<",options="header",]
|
46
|
+
|=======================================================================
|
47
|
+
|Setting |Input type|Required
|
48
|
+
| <<plugins-{type}s-{plugin}-broker_url>> |<<string,string>>|No
|
49
|
+
| <<plugins-{type}s-{plugin}-delivery_mode>> |<<string,string>>|No
|
50
|
+
| <<plugins-{type}s-{plugin}-destination>> |<<string,string>>|No
|
51
|
+
| <<plugins-{type}s-{plugin}-factory>> |<<string,string>>|No
|
52
|
+
| <<plugins-{type}s-{plugin}-jndi_context>> |<<hash,hash>>|No
|
53
|
+
| <<plugins-{type}s-{plugin}-jndi_name>> |<<string,string>>|No
|
54
|
+
| <<plugins-{type}s-{plugin}-password>> |<<string,string>>|No
|
55
|
+
| <<plugins-{type}s-{plugin}-pub_sub>> |<<boolean,boolean>>|No
|
56
|
+
| <<plugins-{type}s-{plugin}-require_jars>> |<<array,array>>|No
|
57
|
+
| <<plugins-{type}s-{plugin}-username>> |<<string,string>>|No
|
58
|
+
| <<plugins-{type}s-{plugin}-yaml_file>> |<<string,string>>|No
|
59
|
+
| <<plugins-{type}s-{plugin}-yaml_section>> |<<string,string>>|No
|
60
|
+
|=======================================================================
|
61
|
+
|
62
|
+
Also see <<plugins-{type}s-{plugin}-common-options>> for a list of options supported by all
|
63
|
+
output plugins.
|
64
|
+
|
65
|
+
|
66
|
+
|
67
|
+
[id="plugins-{type}s-{plugin}-broker_url"]
|
68
|
+
===== `broker_url`
|
69
|
+
|
70
|
+
* Value type is <<string,string>>
|
71
|
+
* There is no default value for this setting.
|
72
|
+
|
73
|
+
Url to use when connecting to the JMS provider
|
74
|
+
|
75
|
+
[id="plugins-{type}s-{plugin}-delivery_mode"]
|
76
|
+
===== `delivery_mode`
|
77
|
+
|
78
|
+
* Value type is <<string,string>>
|
79
|
+
* Default value is `nil`
|
80
|
+
|
81
|
+
Name of delivery mode to use
|
82
|
+
Options are "persistent" and "non_persistent" if not defined nothing will be passed.
|
83
|
+
|
84
|
+
[id="plugins-{type}s-{plugin}-destination"]
|
85
|
+
===== `destination`
|
86
|
+
|
87
|
+
* Value type is <<string,string>>
|
88
|
+
* There is no default value for this setting.
|
89
|
+
|
90
|
+
Name of the destination queue or topic to use.
|
91
|
+
Mandatory
|
92
|
+
|
93
|
+
[id="plugins-{type}s-{plugin}-factory"]
|
94
|
+
===== `factory`
|
95
|
+
|
96
|
+
* Value type is <<string,string>>
|
97
|
+
* There is no default value for this setting.
|
98
|
+
|
99
|
+
Name of JMS Provider Factory class
|
100
|
+
|
101
|
+
[id="plugins-{type}s-{plugin}-jndi_context"]
|
102
|
+
===== `jndi_context`
|
103
|
+
|
104
|
+
* Value type is <<hash,hash>>
|
105
|
+
* There is no default value for this setting.
|
106
|
+
|
107
|
+
Mandatory if jndi lookup is being used,
|
108
|
+
contains details on how to connect to JNDI server
|
109
|
+
|
110
|
+
[id="plugins-{type}s-{plugin}-jndi_name"]
|
111
|
+
===== `jndi_name`
|
112
|
+
|
113
|
+
* Value type is <<string,string>>
|
114
|
+
* There is no default value for this setting.
|
115
|
+
|
116
|
+
Name of JNDI entry at which the Factory can be found
|
117
|
+
|
118
|
+
[id="plugins-{type}s-{plugin}-password"]
|
119
|
+
===== `password`
|
120
|
+
|
121
|
+
* Value type is <<string,string>>
|
122
|
+
* There is no default value for this setting.
|
123
|
+
|
124
|
+
Password to use when connecting to the JMS provider
|
125
|
+
|
126
|
+
[id="plugins-{type}s-{plugin}-pub_sub"]
|
127
|
+
===== `pub_sub`
|
128
|
+
|
129
|
+
* Value type is <<boolean,boolean>>
|
130
|
+
* Default value is `false`
|
131
|
+
|
132
|
+
If pub-sub (topic) style should be used or not.
|
133
|
+
Mandatory
|
134
|
+
|
135
|
+
[id="plugins-{type}s-{plugin}-require_jars"]
|
136
|
+
===== `require_jars`
|
137
|
+
|
138
|
+
* Value type is <<array,array>>
|
139
|
+
* There is no default value for this setting.
|
140
|
+
|
141
|
+
If you do not use an yaml configuration use either the factory or jndi_name.
|
142
|
+
An optional array of Jar file names to load for the specified
|
143
|
+
JMS provider. By using this option it is not necessary
|
144
|
+
to put all the JMS Provider specific jar files into the
|
145
|
+
java CLASSPATH prior to starting Logstash.
|
146
|
+
|
147
|
+
[id="plugins-{type}s-{plugin}-username"]
|
148
|
+
===== `username`
|
149
|
+
|
150
|
+
* Value type is <<string,string>>
|
151
|
+
* There is no default value for this setting.
|
152
|
+
|
153
|
+
Username to connect to JMS provider with
|
154
|
+
|
155
|
+
[id="plugins-{type}s-{plugin}-yaml_file"]
|
156
|
+
===== `yaml_file`
|
157
|
+
|
158
|
+
* Value type is <<string,string>>
|
159
|
+
* There is no default value for this setting.
|
160
|
+
|
161
|
+
Yaml config file
|
162
|
+
|
163
|
+
[id="plugins-{type}s-{plugin}-yaml_section"]
|
164
|
+
===== `yaml_section`
|
165
|
+
|
166
|
+
* Value type is <<string,string>>
|
167
|
+
* There is no default value for this setting.
|
168
|
+
|
169
|
+
Yaml config file section name
|
170
|
+
For some known examples, see: [Example jms.yml](https://github.com/reidmorrison/jruby-jms/blob/master/examples/jms.yml)
|
171
|
+
|
172
|
+
|
173
|
+
|
174
|
+
[id="plugins-{type}s-{plugin}-common-options"]
|
175
|
+
include::{include_path}/{type}.asciidoc[]
|
@@ -1,17 +1,17 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
|
3
3
|
s.name = 'logstash-output-jms'
|
4
|
-
s.version = '
|
4
|
+
s.version = '3.0.1'
|
5
5
|
s.licenses = ['Apache License (2.0)']
|
6
6
|
s.summary = "Push events to a JMS topic or queue."
|
7
|
-
s.description = "This gem is a
|
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"
|
8
8
|
s.authors = ["Elasticsearch"]
|
9
9
|
s.email = 'info@elasticsearch.com'
|
10
10
|
s.homepage = "http://www.elasticsearch.org/guide/en/logstash/current/index.html"
|
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)/})
|
@@ -19,11 +19,11 @@ Gem::Specification.new do |s|
|
|
19
19
|
# Special flag to let us know this is actually a logstash plugin
|
20
20
|
s.metadata = { "logstash_plugin" => "true", "logstash_group" => "output" }
|
21
21
|
|
22
|
-
s.add_runtime_dependency "logstash-core-plugin-api", "
|
22
|
+
s.add_runtime_dependency "logstash-core-plugin-api", ">= 1.60", "<= 2.99"
|
23
23
|
|
24
24
|
s.add_runtime_dependency 'logstash-codec-plain'
|
25
25
|
s.add_runtime_dependency 'logstash-codec-json'
|
26
26
|
|
27
|
-
|
27
|
+
s.add_runtime_dependency "jruby-jms" #(Apache 2.0 license)
|
28
28
|
s.add_development_dependency 'logstash-devutils'
|
29
29
|
end
|
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-output-jms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elasticsearch
|
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
|
15
15
|
requirements:
|
16
|
-
- - "
|
16
|
+
- - ">="
|
17
|
+
- !ruby/object:Gem::Version
|
18
|
+
version: '1.60'
|
19
|
+
- - "<="
|
17
20
|
- !ruby/object:Gem::Version
|
18
|
-
version: '
|
21
|
+
version: '2.99'
|
19
22
|
name: logstash-core-plugin-api
|
20
23
|
prerelease: false
|
21
24
|
type: :runtime
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '1.60'
|
30
|
+
- - "<="
|
25
31
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
32
|
+
version: '2.99'
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
requirement: !ruby/object:Gem::Requirement
|
29
35
|
requirements:
|
@@ -80,7 +86,9 @@ dependencies:
|
|
80
86
|
- - ">="
|
81
87
|
- !ruby/object:Gem::Version
|
82
88
|
version: '0'
|
83
|
-
description: This gem is a
|
89
|
+
description: This gem is a Logstash plugin required to be installed on top of the
|
90
|
+
Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This
|
91
|
+
gem is not a stand-alone program
|
84
92
|
email: info@elasticsearch.com
|
85
93
|
executables: []
|
86
94
|
extensions: []
|
@@ -90,8 +98,9 @@ files:
|
|
90
98
|
- Gemfile
|
91
99
|
- NOTICE.TXT
|
92
100
|
- README.md
|
101
|
+
- docs/index.asciidoc
|
93
102
|
- lib/logstash/outputs/jms.rb
|
94
|
-
- logstash-
|
103
|
+
- logstash-output-jms.gemspec
|
95
104
|
- spec/outputs/jms.yml
|
96
105
|
- spec/outputs/jms_spec.rb
|
97
106
|
homepage: http://www.elasticsearch.org/guide/en/logstash/current/index.html
|
@@ -116,7 +125,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
116
125
|
version: '0'
|
117
126
|
requirements: []
|
118
127
|
rubyforge_project:
|
119
|
-
rubygems_version: 2.
|
128
|
+
rubygems_version: 2.6.11
|
120
129
|
signing_key:
|
121
130
|
specification_version: 4
|
122
131
|
summary: Push events to a JMS topic or queue.
|