logstash-input-file 4.1.8 → 4.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a4cd574c914c10b7f4e538437e8f256bad1c98f3fc96bf9c959589e010586a36
|
4
|
+
data.tar.gz: bbe6366ab6f431c9491476b76b3c4dddac051fc7b3a474dd3964bdfd4e1a2afb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 81736925b4ecc298a76caff16a820d5be68961570dd5456496b5a9a03a80e03a65085abdeba76d1e63fc1f3d3ae15b4ad26f41f03061cae3620303758f1713bc
|
7
|
+
data.tar.gz: ce86be6801c71aa9863e61592a244f4cb6a8f4c25e3d7d21e29be8182e5709b54455cb339a183c86e987bec4fd4ea9c969265f3071793e0fa8d74a133c39a3a1
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
## 4.1.9
|
2
|
+
- Fixed issue where logs were being spammed with needless error messages [#224](https://github.com/logstash-plugins/logstash-input-file/pull/224)
|
3
|
+
|
1
4
|
## 4.1.8
|
2
5
|
- Fixed problem in tail and read modes where the read loop could get stuck if an IO error occurs in the loop.
|
3
6
|
The file appears to be being read but it is not, suspected with file truncation schemes.
|
@@ -41,7 +41,7 @@ module FileWatch module ReadMode module Handlers
|
|
41
41
|
# don't emit this message too often. if a file that we can't
|
42
42
|
# read is changing a lot, we'll try to open it more often, and spam the logs.
|
43
43
|
now = Time.now.to_i
|
44
|
-
logger.
|
44
|
+
logger.trace("opening OPEN_WARN_INTERVAL is '#{OPEN_WARN_INTERVAL}'")
|
45
45
|
if watched_file.last_open_warning_at.nil? || now - watched_file.last_open_warning_at > OPEN_WARN_INTERVAL
|
46
46
|
logger.warn("failed to open #{watched_file.path}: #{$!.inspect}, #{$!.backtrace.take(3)}")
|
47
47
|
watched_file.last_open_warning_at = now
|
@@ -85,7 +85,7 @@ module FileWatch module TailMode module Handlers
|
|
85
85
|
# don't emit this message too often. if a file that we can't
|
86
86
|
# read is changing a lot, we'll try to open it more often, and spam the logs.
|
87
87
|
now = Time.now.to_i
|
88
|
-
logger.
|
88
|
+
logger.trace("open_file OPEN_WARN_INTERVAL is '#{OPEN_WARN_INTERVAL}'")
|
89
89
|
if watched_file.last_open_warning_at.nil? || now - watched_file.last_open_warning_at > OPEN_WARN_INTERVAL
|
90
90
|
logger.warn("failed to open #{watched_file.path}: #{$!.inspect}, #{$!.backtrace.take(3)}")
|
91
91
|
watched_file.last_open_warning_at = now
|
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.1.
|
4
|
+
s.version = '4.1.9'
|
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.1.
|
4
|
+
version: 4.1.9
|
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-12-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|