logstash-input-couchdb_changes 3.1.1 → 3.1.2

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: 0153e41c5e8055b052c7e9df86cb80ce90e3d1da
4
- data.tar.gz: 919a3ab0f89655e581c54ced25387868cadd2278
3
+ metadata.gz: 01a4f83f36f2e4573dfe46b7570fad4ae3813c27
4
+ data.tar.gz: 8e3fa464f42ada27c32d43e9b9c148d8363b1bec
5
5
  SHA512:
6
- metadata.gz: a71d15df742fade2d8e4f81d39a86b47b7db686cb9e884b8c97a2a47531808f908be5b5d43af789fa5e962f55403c9117b7daa7560795c9da12f3707e9eaf5d0
7
- data.tar.gz: 761760ca08110af46d709230d17bf627b674b4a19932c3c587315b494bfb8b136676321f6048d4b6db222fcc420c1d9bb322252f298d08df5ec2413ea6c84d59
6
+ metadata.gz: 43365ef85c7e03b310b00da96def8fb9d72f9a593fe6ffde31073ac208ca23d7a4fffe455e8c72d2317adde3f8fcbb25dfe5d4a923bb803484754ee3751778ba
7
+ data.tar.gz: 6c05da85068a064a89bee77365edf6343525c984992733f91752c01d39da48a0380b3c6043702f9676a96006641a7231e6ec4c06bf35b9bc5a676de0da910390
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,220 @@
1
+ :plugin: couchdb_changes
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
+ === Couchdb_changes input plugin
18
+
19
+ include::{include_path}/plugin_header.asciidoc[]
20
+
21
+ ==== Description
22
+
23
+ This CouchDB input allows you to automatically stream events from the
24
+ CouchDB http://guide.couchdb.org/draft/notifications.html[_changes] URI.
25
+ Moreover, any "future" changes will automatically be streamed as well making it easy to synchronize
26
+ your CouchDB data with any target destination
27
+
28
+ ### Upsert and delete
29
+ You can use event metadata to allow for document deletion.
30
+ All non-delete operations are treated as upserts
31
+
32
+ ### Starting at a Specific Sequence
33
+ The CouchDB input stores the last sequence number value in location defined by `sequence_path`.
34
+ You can use this fact to start or resume the stream at a particular sequence.
35
+
36
+ [id="plugins-{type}s-{plugin}-options"]
37
+ ==== Couchdb_changes 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}-always_reconnect>> |<<boolean,boolean>>|No
45
+ | <<plugins-{type}s-{plugin}-ca_file>> |a valid filesystem path|No
46
+ | <<plugins-{type}s-{plugin}-db>> |<<string,string>>|Yes
47
+ | <<plugins-{type}s-{plugin}-heartbeat>> |<<number,number>>|No
48
+ | <<plugins-{type}s-{plugin}-host>> |<<string,string>>|No
49
+ | <<plugins-{type}s-{plugin}-ignore_attachments>> |<<boolean,boolean>>|No
50
+ | <<plugins-{type}s-{plugin}-initial_sequence>> |<<number,number>>|No
51
+ | <<plugins-{type}s-{plugin}-keep_id>> |<<boolean,boolean>>|No
52
+ | <<plugins-{type}s-{plugin}-keep_revision>> |<<boolean,boolean>>|No
53
+ | <<plugins-{type}s-{plugin}-password>> |<<password,password>>|No
54
+ | <<plugins-{type}s-{plugin}-port>> |<<number,number>>|No
55
+ | <<plugins-{type}s-{plugin}-reconnect_delay>> |<<number,number>>|No
56
+ | <<plugins-{type}s-{plugin}-secure>> |<<boolean,boolean>>|No
57
+ | <<plugins-{type}s-{plugin}-sequence_path>> |<<string,string>>|No
58
+ | <<plugins-{type}s-{plugin}-timeout>> |<<number,number>>|No
59
+ | <<plugins-{type}s-{plugin}-username>> |<<string,string>>|No
60
+ |=======================================================================
61
+
62
+ Also see <<plugins-{type}s-{plugin}-common-options>> for a list of options supported by all
63
+ input plugins.
64
+
65
+ &nbsp;
66
+
67
+ [id="plugins-{type}s-{plugin}-always_reconnect"]
68
+ ===== `always_reconnect`
69
+
70
+ * Value type is <<boolean,boolean>>
71
+ * Default value is `true`
72
+
73
+ Reconnect flag. When true, always try to reconnect after a failure
74
+
75
+ [id="plugins-{type}s-{plugin}-ca_file"]
76
+ ===== `ca_file`
77
+
78
+ * Value type is <<path,path>>
79
+ * There is no default value for this setting.
80
+
81
+ Path to a CA certificate file, used to validate certificates
82
+
83
+ [id="plugins-{type}s-{plugin}-db"]
84
+ ===== `db`
85
+
86
+ * This is a required setting.
87
+ * Value type is <<string,string>>
88
+ * There is no default value for this setting.
89
+
90
+ The CouchDB db to connect to.
91
+ Required parameter.
92
+
93
+ [id="plugins-{type}s-{plugin}-heartbeat"]
94
+ ===== `heartbeat`
95
+
96
+ * Value type is <<number,number>>
97
+ * Default value is `1000`
98
+
99
+ Logstash connects to CouchDB's _changes with feed=continuous
100
+ The heartbeat is how often (in milliseconds) Logstash will ping
101
+ CouchDB to ensure the connection is maintained. Changing this
102
+ setting is not recommended unless you know what you are doing.
103
+
104
+ [id="plugins-{type}s-{plugin}-host"]
105
+ ===== `host`
106
+
107
+ * Value type is <<string,string>>
108
+ * Default value is `"localhost"`
109
+
110
+ IP or hostname of your CouchDB instance
111
+
112
+ [id="plugins-{type}s-{plugin}-ignore_attachments"]
113
+ ===== `ignore_attachments`
114
+
115
+ * Value type is <<boolean,boolean>>
116
+ * Default value is `true`
117
+
118
+ Future feature! Until implemented, changing this from the default
119
+ will not do anything.
120
+
121
+ Ignore attachments associated with CouchDB documents.
122
+
123
+ [id="plugins-{type}s-{plugin}-initial_sequence"]
124
+ ===== `initial_sequence`
125
+
126
+ * Value type is <<number,number>>
127
+ * There is no default value for this setting.
128
+
129
+ If unspecified, Logstash will attempt to read the last sequence number
130
+ from the `sequence_path` file. If that is empty or non-existent, it will
131
+ begin with 0 (the beginning).
132
+
133
+ If you specify this value, it is anticipated that you will
134
+ only be doing so for an initial read under special circumstances
135
+ and that you will unset this value afterwards.
136
+
137
+ [id="plugins-{type}s-{plugin}-keep_id"]
138
+ ===== `keep_id`
139
+
140
+ * Value type is <<boolean,boolean>>
141
+ * Default value is `false`
142
+
143
+ Preserve the CouchDB document id "_id" value in the
144
+ output.
145
+
146
+ [id="plugins-{type}s-{plugin}-keep_revision"]
147
+ ===== `keep_revision`
148
+
149
+ * Value type is <<boolean,boolean>>
150
+ * Default value is `false`
151
+
152
+ Preserve the CouchDB document revision "_rev" value in the
153
+ output.
154
+
155
+ [id="plugins-{type}s-{plugin}-password"]
156
+ ===== `password`
157
+
158
+ * Value type is <<password,password>>
159
+ * Default value is `nil`
160
+
161
+ Password, if authentication is needed to connect to
162
+ CouchDB
163
+
164
+ [id="plugins-{type}s-{plugin}-port"]
165
+ ===== `port`
166
+
167
+ * Value type is <<number,number>>
168
+ * Default value is `5984`
169
+
170
+ Port of your CouchDB instance.
171
+
172
+ [id="plugins-{type}s-{plugin}-reconnect_delay"]
173
+ ===== `reconnect_delay`
174
+
175
+ * Value type is <<number,number>>
176
+ * Default value is `10`
177
+
178
+ Reconnect delay: time between reconnect attempts, in seconds.
179
+
180
+ [id="plugins-{type}s-{plugin}-secure"]
181
+ ===== `secure`
182
+
183
+ * Value type is <<boolean,boolean>>
184
+ * Default value is `false`
185
+
186
+ Connect to CouchDB's _changes feed securely (via https)
187
+ Default: false (via http)
188
+
189
+ [id="plugins-{type}s-{plugin}-sequence_path"]
190
+ ===== `sequence_path`
191
+
192
+ * Value type is <<string,string>>
193
+ * There is no default value for this setting.
194
+
195
+ File path where the last sequence number in the _changes
196
+ stream is stored. If unset it will write to `$HOME/.couchdb_seq`
197
+
198
+ [id="plugins-{type}s-{plugin}-timeout"]
199
+ ===== `timeout`
200
+
201
+ * Value type is <<number,number>>
202
+ * There is no default value for this setting.
203
+
204
+ Timeout: Number of milliseconds to wait for new data before
205
+ terminating the connection. If a timeout is set it will disable
206
+ the heartbeat configuration option.
207
+
208
+ [id="plugins-{type}s-{plugin}-username"]
209
+ ===== `username`
210
+
211
+ * Value type is <<string,string>>
212
+ * Default value is `nil`
213
+
214
+ Username, if authentication is needed to connect to
215
+ CouchDB
216
+
217
+
218
+
219
+ [id="plugins-{type}s-{plugin}-common-options"]
220
+ include::{include_path}/{type}.asciidoc[]
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-input-couchdb_changes'
4
- s.version = '3.1.1'
4
+ s.version = '3.1.2'
5
5
  s.licenses = ['Apache License (2.0)']
6
6
  s.summary = "This input captures the _changes stream from a CouchDB 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-couchdb_changes
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.1
4
+ version: 3.1.2
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-20 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
@@ -127,6 +127,7 @@ files:
127
127
  - LICENSE
128
128
  - NOTICE.TXT
129
129
  - README.md
130
+ - docs/index.asciidoc
130
131
  - lib/logstash/inputs/couchdb_changes.rb
131
132
  - logstash-input-couchdb_changes.gemspec
132
133
  - spec/inputs/ca_cert.pem