logstash-input-redis 2.0.6 → 3.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 +2 -0
- data/Gemfile +3 -1
- data/LICENSE +1 -1
- data/README.md +12 -3
- data/lib/logstash/inputs/redis.rb +0 -3
- data/logstash-input-redis.gemspec +3 -3
- data/spec/inputs/redis_spec.rb +1 -1
- metadata +36 -34
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4e417ecc1961ad5694ab12f935201d9952095791
|
4
|
+
data.tar.gz: 0ac2e594f2e93529782ea2df46ae70c605ea2d11
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d78dbfd1320088368f7eeeedaf3128d334e77e1024bbc7fafde659d2f8db4c917b13251774ea2778989b8781be197291f9636bcfc5dbbafb1b2c417ecbc3b5a9
|
7
|
+
data.tar.gz: 4467ed3eb1a1a66471a10fea4bddd43678e126bf133b72e01b50e2674280b0d1932ca48e77637d7d9e887fe24a76c25fb8daba53b0fe79f231ef7b3c1d89ea23
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
## 3.0.0
|
2
|
+
- Update the plugin to the version 2.0 of the plugin api, this change is required for Logstash 5.0 compatibility. See https://github.com/elastic/logstash/issues/5141
|
1
3
|
# 2.0.6
|
2
4
|
- make integration tests more reliable because of occasional travis failures
|
3
5
|
# 2.0.5
|
data/Gemfile
CHANGED
data/LICENSE
CHANGED
data/README.md
CHANGED
@@ -4,8 +4,7 @@ Travis Build
|
|
4
4
|
[![Travis Build Status](https://travis-ci.org/logstash-plugins/logstash-input-redis.svg)](https://travis-ci.org/logstash-plugins/logstash-input-redis)
|
5
5
|
|
6
6
|
Jenkins Build
|
7
|
-
[![Build
|
8
|
-
Status](http://build-eu-00.elastic.co/view/LS%20Plugins/view/LS%20Inputs/job/logstash-plugin-input-redis-unit/badge/icon)](http://build-eu-00.elastic.co/view/LS%20Plugins/view/LS%20Inputs/job/logstash-plugin-input-redis-unit/)
|
7
|
+
[![Travis Build Status](https://travis-ci.org/logstash-plugins/logstash-input-redis.svg)](https://travis-ci.org/logstash-plugins/logstash-input-redis)
|
9
8
|
|
10
9
|
This is a plugin for [Logstash](https://github.com/elastic/logstash).
|
11
10
|
|
@@ -60,7 +59,12 @@ gem "logstash-filter-awesome", :path => "/your/local/logstash-filter-awesome"
|
|
60
59
|
```
|
61
60
|
- Install plugin
|
62
61
|
```sh
|
62
|
+
# Logstash 2.3 and higher
|
63
|
+
bin/logstash-plugin install --no-verify
|
64
|
+
|
65
|
+
# Prior to Logstash 2.3
|
63
66
|
bin/plugin install --no-verify
|
67
|
+
|
64
68
|
```
|
65
69
|
- Run Logstash with your plugin
|
66
70
|
```sh
|
@@ -78,7 +82,12 @@ gem build logstash-filter-awesome.gemspec
|
|
78
82
|
```
|
79
83
|
- Install the plugin from the Logstash home
|
80
84
|
```sh
|
81
|
-
|
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
|
+
|
82
91
|
```
|
83
92
|
- Start Logstash and proceed to test the plugin
|
84
93
|
|
@@ -43,17 +43,14 @@ module LogStash module Inputs class Redis < LogStash::Inputs::Threadable
|
|
43
43
|
config :password, :validate => :password
|
44
44
|
|
45
45
|
# The name of the Redis queue (we'll use BLPOP against this).
|
46
|
-
# TODO: remove soon.
|
47
46
|
config :queue, :validate => :string, :deprecated => true
|
48
47
|
|
49
48
|
# The name of a Redis list or channel.
|
50
|
-
# TODO: change required to true
|
51
49
|
config :key, :validate => :string, :required => false
|
52
50
|
|
53
51
|
# Specify either list or channel. If `redis\_type` is `list`, then we will BLPOP the
|
54
52
|
# key. If `redis\_type` is `channel`, then we will SUBSCRIBE to the key.
|
55
53
|
# If `redis\_type` is `pattern_channel`, then we will PSUBSCRIBE to the key.
|
56
|
-
# TODO: change required to true
|
57
54
|
config :data_type, :validate => [ "list", "channel", "pattern_channel" ], :required => false
|
58
55
|
|
59
56
|
# The number of events to return from Redis using EVAL.
|
@@ -1,10 +1,10 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
|
3
3
|
s.name = 'logstash-input-redis'
|
4
|
-
s.version = '
|
4
|
+
s.version = '3.0.0'
|
5
5
|
s.licenses = ['Apache License (2.0)']
|
6
6
|
s.summary = "This input will read events from a Redis instance"
|
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 = ["Elastic"]
|
9
9
|
s.email = 'info@elastic.co'
|
10
10
|
s.homepage = "http://www.elastic.co/guide/en/logstash/current/index.html"
|
@@ -20,7 +20,7 @@ Gem::Specification.new do |s|
|
|
20
20
|
s.metadata = { "logstash_plugin" => "true", "logstash_group" => "input" }
|
21
21
|
|
22
22
|
# Gem dependencies
|
23
|
-
s.add_runtime_dependency "logstash-core-plugin-api", "~>
|
23
|
+
s.add_runtime_dependency "logstash-core-plugin-api", "~> 2.0"
|
24
24
|
|
25
25
|
s.add_runtime_dependency 'logstash-codec-json'
|
26
26
|
s.add_runtime_dependency 'redis'
|
data/spec/inputs/redis_spec.rb
CHANGED
@@ -20,7 +20,7 @@ def process(conf, event_count)
|
|
20
20
|
event_count.times.map{queue.pop}
|
21
21
|
end
|
22
22
|
|
23
|
-
expect(events.map{|evt| evt
|
23
|
+
expect(events.map{|evt| evt.get("sequence")}).to eq((0..event_count.pred).to_a)
|
24
24
|
end
|
25
25
|
|
26
26
|
# integration tests ---------------------
|
metadata
CHANGED
@@ -1,72 +1,74 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-input-redis
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elastic
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-05-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: logstash-core-plugin-api
|
15
|
-
version_requirements: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - ~>
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '1.0'
|
20
15
|
requirement: !ruby/object:Gem::Requirement
|
21
16
|
requirements:
|
22
|
-
- - ~>
|
17
|
+
- - "~>"
|
23
18
|
- !ruby/object:Gem::Version
|
24
|
-
version: '
|
25
|
-
prerelease: false
|
19
|
+
version: '2.0'
|
26
20
|
type: :runtime
|
27
|
-
|
28
|
-
name: logstash-codec-json
|
21
|
+
prerelease: false
|
29
22
|
version_requirements: !ruby/object:Gem::Requirement
|
30
23
|
requirements:
|
31
|
-
- -
|
24
|
+
- - "~>"
|
32
25
|
- !ruby/object:Gem::Version
|
33
|
-
version: '0'
|
26
|
+
version: '2.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: logstash-codec-json
|
34
29
|
requirement: !ruby/object:Gem::Requirement
|
35
30
|
requirements:
|
36
|
-
- -
|
31
|
+
- - ">="
|
37
32
|
- !ruby/object:Gem::Version
|
38
33
|
version: '0'
|
39
|
-
prerelease: false
|
40
34
|
type: :runtime
|
41
|
-
|
42
|
-
name: redis
|
35
|
+
prerelease: false
|
43
36
|
version_requirements: !ruby/object:Gem::Requirement
|
44
37
|
requirements:
|
45
|
-
- -
|
38
|
+
- - ">="
|
46
39
|
- !ruby/object:Gem::Version
|
47
40
|
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: redis
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
44
|
requirements:
|
50
|
-
- -
|
45
|
+
- - ">="
|
51
46
|
- !ruby/object:Gem::Version
|
52
47
|
version: '0'
|
53
|
-
prerelease: false
|
54
48
|
type: :runtime
|
55
|
-
|
56
|
-
name: logstash-devutils
|
49
|
+
prerelease: false
|
57
50
|
version_requirements: !ruby/object:Gem::Requirement
|
58
51
|
requirements:
|
59
|
-
- -
|
52
|
+
- - ">="
|
60
53
|
- !ruby/object:Gem::Version
|
61
54
|
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: logstash-devutils
|
62
57
|
requirement: !ruby/object:Gem::Requirement
|
63
58
|
requirements:
|
64
|
-
- -
|
59
|
+
- - ">="
|
65
60
|
- !ruby/object:Gem::Version
|
66
61
|
version: '0'
|
67
|
-
prerelease: false
|
68
62
|
type: :development
|
69
|
-
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
description: This gem is a Logstash plugin required to be installed on top of the
|
70
|
+
Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This
|
71
|
+
gem is not a stand-alone program
|
70
72
|
email: info@elastic.co
|
71
73
|
executables: []
|
72
74
|
extensions: []
|
@@ -87,24 +89,24 @@ licenses:
|
|
87
89
|
metadata:
|
88
90
|
logstash_plugin: 'true'
|
89
91
|
logstash_group: input
|
90
|
-
post_install_message:
|
92
|
+
post_install_message:
|
91
93
|
rdoc_options: []
|
92
94
|
require_paths:
|
93
95
|
- lib
|
94
96
|
required_ruby_version: !ruby/object:Gem::Requirement
|
95
97
|
requirements:
|
96
|
-
- -
|
98
|
+
- - ">="
|
97
99
|
- !ruby/object:Gem::Version
|
98
100
|
version: '0'
|
99
101
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
100
102
|
requirements:
|
101
|
-
- -
|
103
|
+
- - ">="
|
102
104
|
- !ruby/object:Gem::Version
|
103
105
|
version: '0'
|
104
106
|
requirements: []
|
105
|
-
rubyforge_project:
|
106
|
-
rubygems_version: 2.
|
107
|
-
signing_key:
|
107
|
+
rubyforge_project:
|
108
|
+
rubygems_version: 2.5.1
|
109
|
+
signing_key:
|
108
110
|
specification_version: 4
|
109
111
|
summary: This input will read events from a Redis instance
|
110
112
|
test_files:
|