logstash-input-file 4.1.3 → 4.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/JAR_VERSION +1 -1
- data/README.md +0 -3
- data/docs/index.asciidoc +26 -16
- data/lib/filewatch/bootstrap.rb +10 -21
- data/lib/filewatch/discoverer.rb +35 -28
- data/lib/filewatch/observing_base.rb +2 -1
- data/lib/filewatch/read_mode/handlers/base.rb +19 -6
- data/lib/filewatch/read_mode/handlers/read_file.rb +43 -32
- data/lib/filewatch/read_mode/handlers/read_zip_file.rb +8 -3
- data/lib/filewatch/read_mode/processor.rb +8 -8
- data/lib/filewatch/settings.rb +3 -3
- data/lib/filewatch/sincedb_collection.rb +56 -42
- data/lib/filewatch/sincedb_value.rb +6 -0
- data/lib/filewatch/stat/generic.rb +34 -0
- data/lib/filewatch/stat/windows_path.rb +32 -0
- data/lib/filewatch/tail_mode/handlers/base.rb +40 -22
- data/lib/filewatch/tail_mode/handlers/create.rb +1 -2
- data/lib/filewatch/tail_mode/handlers/create_initial.rb +2 -1
- data/lib/filewatch/tail_mode/handlers/delete.rb +13 -1
- data/lib/filewatch/tail_mode/handlers/grow.rb +5 -2
- data/lib/filewatch/tail_mode/handlers/shrink.rb +7 -4
- data/lib/filewatch/tail_mode/handlers/unignore.rb +4 -2
- data/lib/filewatch/tail_mode/processor.rb +147 -58
- data/lib/filewatch/watch.rb +15 -35
- data/lib/filewatch/watched_file.rb +237 -41
- data/lib/filewatch/watched_files_collection.rb +2 -2
- data/lib/filewatch/winhelper.rb +167 -25
- data/lib/jars/filewatch-1.0.1.jar +0 -0
- data/lib/logstash/inputs/file.rb +9 -2
- data/logstash-input-file.gemspec +9 -2
- data/spec/file_ext/file_ext_windows_spec.rb +36 -0
- data/spec/filewatch/read_mode_handlers_read_file_spec.rb +2 -2
- data/spec/filewatch/reading_spec.rb +100 -57
- data/spec/filewatch/rotate_spec.rb +451 -0
- data/spec/filewatch/spec_helper.rb +33 -10
- data/spec/filewatch/tailing_spec.rb +273 -153
- data/spec/filewatch/watched_file_spec.rb +3 -3
- data/spec/filewatch/watched_files_collection_spec.rb +3 -3
- data/spec/filewatch/winhelper_spec.rb +4 -5
- data/spec/helpers/logging_level_helper.rb +8 -0
- data/spec/helpers/rspec_wait_handler_helper.rb +38 -0
- data/spec/helpers/spec_helper.rb +7 -1
- data/spec/inputs/file_read_spec.rb +54 -24
- data/spec/inputs/file_tail_spec.rb +244 -284
- metadata +13 -3
- data/lib/jars/filewatch-1.0.0.jar +0 -0
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-input-file
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.1.
|
4
|
+
version: 4.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elastic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-07-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
@@ -186,6 +186,8 @@ files:
|
|
186
186
|
- lib/filewatch/sincedb_collection.rb
|
187
187
|
- lib/filewatch/sincedb_record_serializer.rb
|
188
188
|
- lib/filewatch/sincedb_value.rb
|
189
|
+
- lib/filewatch/stat/generic.rb
|
190
|
+
- lib/filewatch/stat/windows_path.rb
|
189
191
|
- lib/filewatch/tail_mode/handlers/base.rb
|
190
192
|
- lib/filewatch/tail_mode/handlers/create.rb
|
191
193
|
- lib/filewatch/tail_mode/handlers/create_initial.rb
|
@@ -199,7 +201,7 @@ files:
|
|
199
201
|
- lib/filewatch/watched_file.rb
|
200
202
|
- lib/filewatch/watched_files_collection.rb
|
201
203
|
- lib/filewatch/winhelper.rb
|
202
|
-
- lib/jars/filewatch-1.0.
|
204
|
+
- lib/jars/filewatch-1.0.1.jar
|
203
205
|
- lib/logstash/inputs/delete_completed_file_handler.rb
|
204
206
|
- lib/logstash/inputs/file.rb
|
205
207
|
- lib/logstash/inputs/file/patch.rb
|
@@ -207,9 +209,11 @@ files:
|
|
207
209
|
- lib/logstash/inputs/friendly_durations.rb
|
208
210
|
- lib/logstash/inputs/log_completed_file_handler.rb
|
209
211
|
- logstash-input-file.gemspec
|
212
|
+
- spec/file_ext/file_ext_windows_spec.rb
|
210
213
|
- spec/filewatch/buftok_spec.rb
|
211
214
|
- spec/filewatch/read_mode_handlers_read_file_spec.rb
|
212
215
|
- spec/filewatch/reading_spec.rb
|
216
|
+
- spec/filewatch/rotate_spec.rb
|
213
217
|
- spec/filewatch/sincedb_record_serializer_spec.rb
|
214
218
|
- spec/filewatch/spec_helper.rb
|
215
219
|
- spec/filewatch/tailing_spec.rb
|
@@ -221,6 +225,8 @@ files:
|
|
221
225
|
- spec/fixtures/invalid_utf8.gbk.log
|
222
226
|
- spec/fixtures/no-final-newline.log
|
223
227
|
- spec/fixtures/uncompressed.log
|
228
|
+
- spec/helpers/logging_level_helper.rb
|
229
|
+
- spec/helpers/rspec_wait_handler_helper.rb
|
224
230
|
- spec/helpers/spec_helper.rb
|
225
231
|
- spec/inputs/file_read_spec.rb
|
226
232
|
- spec/inputs/file_tail_spec.rb
|
@@ -252,9 +258,11 @@ signing_key:
|
|
252
258
|
specification_version: 4
|
253
259
|
summary: Streams events from files
|
254
260
|
test_files:
|
261
|
+
- spec/file_ext/file_ext_windows_spec.rb
|
255
262
|
- spec/filewatch/buftok_spec.rb
|
256
263
|
- spec/filewatch/read_mode_handlers_read_file_spec.rb
|
257
264
|
- spec/filewatch/reading_spec.rb
|
265
|
+
- spec/filewatch/rotate_spec.rb
|
258
266
|
- spec/filewatch/sincedb_record_serializer_spec.rb
|
259
267
|
- spec/filewatch/spec_helper.rb
|
260
268
|
- spec/filewatch/tailing_spec.rb
|
@@ -266,6 +274,8 @@ test_files:
|
|
266
274
|
- spec/fixtures/invalid_utf8.gbk.log
|
267
275
|
- spec/fixtures/no-final-newline.log
|
268
276
|
- spec/fixtures/uncompressed.log
|
277
|
+
- spec/helpers/logging_level_helper.rb
|
278
|
+
- spec/helpers/rspec_wait_handler_helper.rb
|
269
279
|
- spec/helpers/spec_helper.rb
|
270
280
|
- spec/inputs/file_read_spec.rb
|
271
281
|
- spec/inputs/file_tail_spec.rb
|
Binary file
|