logstash-input-file 4.2.0 → 4.2.1
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a3a31addcd028920e2e1206d56c6fbab1b5492ebfeef0d688a431c88685ec8b9
|
4
|
+
data.tar.gz: 0c07d4dd1c1c821c5ef9fcbbac68375ba04ea4dd399116c6ce016ad1c102b076
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a1d95cd6b07d0076c3917e816c97ae832d3085b4ccc1029eb3325249a287b3f80e7ed41bfa5870ce9edb5af6ef5c98f8217a918fd0d3088e6ec25f985da1096a
|
7
|
+
data.tar.gz: 2fafafe12fc3dbab4921029ae02e0e0949f4254f8fc50810de0c80cd49ab4158cacff9028d90c8d34dc28e17eabd7e6bc437ba2f28f0566f8bca9250b5733330
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
## 4.2.1
|
2
|
+
- Fix: skip sincedb eviction if read mode completion deletes file during flush [#273](https://github.com/logstash-plugins/logstash-input-file/pull/273)
|
3
|
+
|
1
4
|
## 4.2.0
|
2
5
|
- Fix: watched files performance with huge filesets [#268](https://github.com/logstash-plugins/logstash-input-file/pull/268)
|
3
6
|
- Updated logging to include full traces in debug (and trace) levels
|
@@ -19,8 +19,10 @@ module FileWatch module ReadMode module Handlers
|
|
19
19
|
watched_file.listener.eof
|
20
20
|
watched_file.file_close
|
21
21
|
key = watched_file.sincedb_key
|
22
|
-
sincedb_collection.
|
23
|
-
|
22
|
+
if sincedb_collection.get(key)
|
23
|
+
sincedb_collection.reading_completed(key)
|
24
|
+
sincedb_collection.clear_watched_file(key)
|
25
|
+
end
|
24
26
|
watched_file.listener.deleted
|
25
27
|
# NOTE: on top of un-watching we should also remove from the watched files collection
|
26
28
|
# if the file is getting deleted (on completion), that part currently resides in
|
data/lib/filewatch/settings.rb
CHANGED
@@ -6,7 +6,7 @@ module FileWatch
|
|
6
6
|
attr_reader :max_active, :max_warn_msg, :lastwarn_max_files
|
7
7
|
attr_reader :sincedb_write_interval, :stat_interval, :discover_interval
|
8
8
|
attr_reader :exclude, :start_new_files_at, :file_chunk_count, :file_chunk_size
|
9
|
-
attr_reader :sincedb_path, :
|
9
|
+
attr_reader :sincedb_path, :sincedb_expiry_duration
|
10
10
|
attr_reader :file_sort_by, :file_sort_direction
|
11
11
|
attr_reader :exit_after_read
|
12
12
|
attr_reader :check_archive_validity
|
@@ -41,7 +41,6 @@ module FileWatch
|
|
41
41
|
@file_chunk_size = @opts[:file_chunk_size]
|
42
42
|
@close_older = @opts[:close_older]
|
43
43
|
@ignore_older = @opts[:ignore_older]
|
44
|
-
@sincedb_write_interval = @opts[:sincedb_write_interval]
|
45
44
|
@stat_interval = @opts[:stat_interval]
|
46
45
|
@discover_interval = @opts[:discover_interval]
|
47
46
|
@exclude = Array(@opts[:exclude])
|
@@ -216,7 +216,7 @@ module FileWatch
|
|
216
216
|
@write_method.call
|
217
217
|
@serializer.expired_keys.each do |key|
|
218
218
|
@sincedb[key].unset_watched_file
|
219
|
-
delete(key)
|
219
|
+
delete(key)
|
220
220
|
logger.trace? && logger.trace("sincedb_write: cleaned", :key => key)
|
221
221
|
end
|
222
222
|
@sincedb_last_write = time
|
Binary file
|
data/logstash-input-file.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
|
3
3
|
s.name = 'logstash-input-file'
|
4
|
-
s.version = '4.2.
|
4
|
+
s.version = '4.2.1'
|
5
5
|
s.licenses = ['Apache-2.0']
|
6
6
|
s.summary = "Streams events from files"
|
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"
|
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.2.
|
4
|
+
version: 4.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elastic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-05-
|
11
|
+
date: 2020-05-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|