logstash-input-redis 3.1.2 → 3.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b777765f982735709cf2e67c4ce6b642b92045d7
4
- data.tar.gz: e042d3bacd003fb5ae8b8390bda58323a5d1a299
3
+ metadata.gz: cfca6b0f0f11a2f8a9358151512f9ff1830d534c
4
+ data.tar.gz: 988dda4996b8ae84755b476df3eebe9d71f63d48
5
5
  SHA512:
6
- metadata.gz: 03ce249dd39dd6d5511fee10405ff570b2f8ed366fde799d7f46f4764beb9cb49f643dd8fb113adcdadd8c4c1071e091271e33ddb2c49cb4631406316a425fca
7
- data.tar.gz: ef362960660c9ea2f8cba4db88186887db2372ee91b1ef8d6beba94c83190caad8548bd0e264f6525990d0b92b479b6809c58a23f346bd2f85bdb2d245bf1be6
6
+ metadata.gz: d36d9b28013495dda8cd3b8108df7fec1acb365171f8c1a9abda45dbf9b714666d1217d42bf667e3eabdfbb59c6a67da52ea8a112d825f5d19ddec494d768942
7
+ data.tar.gz: d14bcba0762d21b36e2ff562b5695d50f2fba2ea189b70e49385f5499ae9d61bd3161ff15b63e1cc71fc08e9c31f0e83ec73a3b11c4632111449789983fe1670
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
@@ -0,0 +1,139 @@
1
+ :plugin: redis
2
+ :type: input
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
+ === Redis input plugin
18
+
19
+ include::{include_path}/plugin_header.asciidoc[]
20
+
21
+ ==== Description
22
+
23
+ This input will read events from a Redis instance; it supports both Redis channels and lists.
24
+ The list command (BLPOP) used by Logstash is supported in Redis v1.3.1+, and
25
+ the channel commands used by Logstash are found in Redis v1.3.8+.
26
+ While you may be able to make these Redis versions work, the best performance
27
+ and stability will be found in more recent stable versions. Versions 2.6.0+
28
+ are recommended.
29
+
30
+ For more information about Redis, see <http://redis.io/>
31
+
32
+ `batch_count` note: If you use the `batch_count` setting, you *must* use a Redis version 2.6.0 or
33
+ newer. Anything older does not support the operations used by batching.
34
+
35
+
36
+ [id="plugins-{type}s-{plugin}-options"]
37
+ ==== Redis Input Configuration Options
38
+
39
+ This plugin supports the following configuration options plus the <<plugins-{type}s-{plugin}-common-options>> described later.
40
+
41
+ [cols="<,<,<",options="header",]
42
+ |=======================================================================
43
+ |Setting |Input type|Required
44
+ | <<plugins-{type}s-{plugin}-batch_count>> |<<number,number>>|No
45
+ | <<plugins-{type}s-{plugin}-data_type>> |<<string,string>>, one of `["list", "channel", "pattern_channel"]`|Yes
46
+ | <<plugins-{type}s-{plugin}-db>> |<<number,number>>|No
47
+ | <<plugins-{type}s-{plugin}-host>> |<<string,string>>|No
48
+ | <<plugins-{type}s-{plugin}-key>> |<<string,string>>|Yes
49
+ | <<plugins-{type}s-{plugin}-password>> |<<password,password>>|No
50
+ | <<plugins-{type}s-{plugin}-port>> |<<number,number>>|No
51
+ | <<plugins-{type}s-{plugin}-threads>> |<<number,number>>|No
52
+ | <<plugins-{type}s-{plugin}-timeout>> |<<number,number>>|No
53
+ |=======================================================================
54
+
55
+ Also see <<plugins-{type}s-{plugin}-common-options>> for a list of options supported by all
56
+ input plugins.
57
+
58
+ &nbsp;
59
+
60
+ [id="plugins-{type}s-{plugin}-batch_count"]
61
+ ===== `batch_count`
62
+
63
+ * Value type is <<number,number>>
64
+ * Default value is `125`
65
+
66
+ The number of events to return from Redis using EVAL.
67
+
68
+ [id="plugins-{type}s-{plugin}-data_type"]
69
+ ===== `data_type`
70
+
71
+ * This is a required setting.
72
+ * Value can be any of: `list`, `channel`, `pattern_channel`
73
+ * There is no default value for this setting.
74
+
75
+ Specify either list or channel. If `redis\_type` is `list`, then we will BLPOP the
76
+ key. If `redis\_type` is `channel`, then we will SUBSCRIBE to the key.
77
+ If `redis\_type` is `pattern_channel`, then we will PSUBSCRIBE to the key.
78
+
79
+ [id="plugins-{type}s-{plugin}-db"]
80
+ ===== `db`
81
+
82
+ * Value type is <<number,number>>
83
+ * Default value is `0`
84
+
85
+ The Redis database number.
86
+
87
+ [id="plugins-{type}s-{plugin}-host"]
88
+ ===== `host`
89
+
90
+ * Value type is <<string,string>>
91
+ * Default value is `"127.0.0.1"`
92
+
93
+ The hostname of your Redis server.
94
+
95
+ [id="plugins-{type}s-{plugin}-key"]
96
+ ===== `key`
97
+
98
+ * This is a required setting.
99
+ * Value type is <<string,string>>
100
+ * There is no default value for this setting.
101
+
102
+ The name of a Redis list or channel.
103
+
104
+ [id="plugins-{type}s-{plugin}-password"]
105
+ ===== `password`
106
+
107
+ * Value type is <<password,password>>
108
+ * There is no default value for this setting.
109
+
110
+ Password to authenticate with. There is no authentication by default.
111
+
112
+ [id="plugins-{type}s-{plugin}-port"]
113
+ ===== `port`
114
+
115
+ * Value type is <<number,number>>
116
+ * Default value is `6379`
117
+
118
+ The port to connect on.
119
+
120
+ [id="plugins-{type}s-{plugin}-threads"]
121
+ ===== `threads`
122
+
123
+ * Value type is <<number,number>>
124
+ * Default value is `1`
125
+
126
+
127
+
128
+ [id="plugins-{type}s-{plugin}-timeout"]
129
+ ===== `timeout`
130
+
131
+ * Value type is <<number,number>>
132
+ * Default value is `5`
133
+
134
+ Initial connection timeout in seconds.
135
+
136
+
137
+
138
+ [id="plugins-{type}s-{plugin}-common-options"]
139
+ include::{include_path}/{type}.asciidoc[]
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-input-redis'
4
- s.version = '3.1.2'
4
+ s.version = '3.1.3'
5
5
  s.licenses = ['Apache License (2.0)']
6
6
  s.summary = "This input will read events from a Redis instance"
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['lib/**/*','spec/**/*','vendor/**/*','*.gemspec','*.md','CONTRIBUTORS','Gemfile','LICENSE','NOTICE.TXT']
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-input-redis
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.2
4
+ version: 3.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-01 00:00:00.000000000 Z
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
@@ -84,6 +84,7 @@ files:
84
84
  - LICENSE
85
85
  - NOTICE.TXT
86
86
  - README.md
87
+ - docs/index.asciidoc
87
88
  - lib/logstash/inputs/redis.rb
88
89
  - logstash-input-redis.gemspec
89
90
  - spec/inputs/redis_spec.rb